[Mesa-dev] [PATCH 09/12] i965: Avoid validation error when src1 is not present
Matt Turner
mattst88 at gmail.com
Fri Sep 29 06:05:21 UTC 2017
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 ff10b83d78..99abc6b4f9 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.13.6
More information about the mesa-dev
mailing list