[Mesa-dev] [PATCH v4 18/28] i965/vec4: fix assert to detect SIMD lowered DF instructions in IVB
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Mon Mar 20 09:17:15 UTC 2017
On IVB, DF instructions have lowered the SIMD width to 4 but the
exec_size will be later doubled. Fix the assert to avoid crashing in
this case.
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
---
src/intel/compiler/brw_vec4_generator.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/intel/compiler/brw_vec4_generator.cpp b/src/intel/compiler/brw_vec4_generator.cpp
index d0fd694901f..eab039093d0 100644
--- a/src/intel/compiler/brw_vec4_generator.cpp
+++ b/src/intel/compiler/brw_vec4_generator.cpp
@@ -1532,6 +1532,7 @@ generate_code(struct brw_codegen *p,
is_ivb_df);
assert(inst->group % 8 == 0 ||
+ (inst->exec_size == 4 && inst->group % 4 == 0) ||
inst->dst.type == BRW_REGISTER_TYPE_DF ||
inst->src[0].type == BRW_REGISTER_TYPE_DF ||
inst->src[1].type == BRW_REGISTER_TYPE_DF ||
--
2.11.0
More information about the mesa-dev
mailing list