From 5e76cf153c980d5c4719376e6653729bcf2db512 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 1 Sep 2017 15:21:48 -0700 Subject: [PATCH] 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. --- src/intel/compiler/brw_eu_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.30.2