assembler: fix condition for printing a warning

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Thomas Wood 2014-02-07 17:03:38 +00:00 committed by Daniel Vetter
parent 49aa4b0df5
commit e6737b8a4e

View File

@ -351,7 +351,7 @@ static bool validate_src_reg(struct brw_program_instruction *insn,
/* B. If ExecSize = Width and HorzStride ≠ 0, VertStride must be set to
* Width * HorzStride. */
if (execsize == width && hstride != 0) {
if (vstride != -1 && vstride != width * hstride);
if (vstride != -1 && vstride != width * hstride)
warn(ALL, location, "execution size == width and hstride != 0 but "
"vstride is not width * hstride\n");
}