From: Matt Turner Date: Fri, 1 Sep 2017 22:21:48 +0000 (-0700) Subject: i965: Avoid validation error when src1 is not present X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e76cf153c980d5c4719376e6653729bcf2db512;p=mesa.git i965: Avoid validation error when src1 is not present There can be no violation of the restriction that source offsets are aligned if there is only one source offset. --- diff --git a/src/intel/compiler/brw_eu_validate.c b/src/intel/compiler/brw_eu_validate.c index ff10b83d780..99abc6b4f9e 100644 --- a/src/intel/compiler/brw_eu_validate.c +++ b/src/intel/compiler/brw_eu_validate.c @@ -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")