[Mesa-dev] [PATCH 04/14] i965/compaction: Don't set UIP on ELSE on Gen < 8.
Matt Turner
mattst88 at gmail.com
Thu Aug 28 20:10:34 PDT 2014
---
src/mesa/drivers/dri/i965/brw_eu_compact.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_eu_compact.c b/src/mesa/drivers/dri/i965/brw_eu_compact.c
index 8c30809..5617947 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_compact.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_compact.c
@@ -1038,7 +1038,8 @@ update_uip_jip(struct brw_context *brw, brw_inst *insn,
brw_inst_set_jip(brw, insn, jip * scale);
if (brw_inst_opcode(brw, insn) == BRW_OPCODE_ENDIF ||
- brw_inst_opcode(brw, insn) == BRW_OPCODE_WHILE)
+ brw_inst_opcode(brw, insn) == BRW_OPCODE_WHILE ||
+ (brw_inst_opcode(brw, insn) == BRW_OPCODE_ELSE && brw->gen <= 7))
return;
int32_t uip = brw_inst_uip(brw, insn) / scale;
--
1.8.5.5
More information about the mesa-dev
mailing list