i965/disasm: Mark ELSE as having UIP on Gen8+.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 29 Jun 2014 00:54:47 +0000 (17:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Jun 2014 21:05:27 +0000 (14:05 -0700)
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@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_disasm.c

index 7773ad9be45535cef7693ec9faff6b01aa2fb24e..e40938ab9e8fa38cf6be8914b399a5a7b9e56d04 100644 (file)
@@ -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;