summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-09-01 15:21:48 -0700
committerMatt Turner <[email protected]>2017-10-04 14:08:54 -0700
commit5e76cf153c980d5c4719376e6653729bcf2db512 (patch)
treefeb719876d42f4f38ffe730e1d4b5109eca3810b /src/intel
parentcacc229ba0fdd245fa14231f7c34f6ae84a7fd3d (diff)
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.
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/compiler/brw_eu_validate.c2
1 files changed, 1 insertions, 1 deletions
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")