i965: Avoid validation error when src1 is not present
authorMatt Turner <mattst88@gmail.com>
Fri, 1 Sep 2017 22:21:48 +0000 (15:21 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 4 Oct 2017 21:08:54 +0000 (14:08 -0700)
There can be no violation of the restriction that source offsets are
aligned if there is only one source offset.

src/intel/compiler/brw_eu_validate.c

index ff10b83..99abc6b 100644 (file)
@@ -941,7 +941,7 @@ region_alignment_rules(const struct gen_device_info *devinfo,
             }                                                                 \
          }                                                                    \
                                                                               \
-         ERROR_IF(offset_0 != offset_1,                                       \
+         ERROR_IF(num_sources == 2 && offset_0 != offset_1,                   \
                   "The offset from the two source registers "                 \
                   "must be the same")