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 ff10b83d780924e40152ece11fcb74aa84f57385..99abc6b4f9ed3d5621272a50a8a81a6f52ca8893 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")