[Mesa-dev] [PATCH 07/23] i965/disasm: Mark ELSE as having UIP on Gen8+.
Kenneth Graunke
kenneth at whitecape.org
Sat Jun 28 21:33:46 PDT 2014
This makes brw_disasm.c able to disassemble ELSE instructions correctly
on Broadwell. (gen8_disasm.c already handles this correctly.)
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_disasm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index 7773ad9..e40938a 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -119,6 +119,7 @@ has_uip(struct brw_context *brw, enum opcode opcode)
return false;
return (brw->gen >= 7 && opcode == BRW_OPCODE_IF) ||
+ (brw->gen >= 8 && opcode == BRW_OPCODE_ELSE) ||
opcode == BRW_OPCODE_BREAK ||
opcode == BRW_OPCODE_CONTINUE ||
opcode == BRW_OPCODE_HALT;
--
2.0.0
More information about the mesa-dev
mailing list