Module: Mesa
Branch: master
Commit: 5e76cf153c980d5c4719376e6653729bcf2db512
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e76cf153c980d5c4719376e6653729bcf2db512

Author: Matt Turner <[email protected]>
Date:   Fri Sep  1 15:21:48 2017 -0700

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 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")
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to