summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-06-28 17:54:47 -0700
committerKenneth Graunke <[email protected]>2014-06-30 14:05:27 -0700
commit707c42cb9601c64aa8dc7ac8d277b56d0a6b34a4 (patch)
tree83aaded442f2c4e3e8887bec5914b3699001e321 /src/mesa
parentdf4eeed0befc39385f3baa40b4f38183b9c76363 (diff)
i965/disasm: Mark ELSE as having UIP on Gen8+.
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_disasm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index 7773ad9be45..e40938ab9e8 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;