assembler: fix condition for printing a warning
authorThomas Wood <thomas.wood@intel.com>
Fri, 7 Feb 2014 17:03:38 +0000 (17:03 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 11 Feb 2014 13:35:09 +0000 (14:35 +0100)
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
assembler/gram.y

index ad4cb29..f4145bd 100644 (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");
     }