From: Kenneth Graunke Date: Sun, 29 Jun 2014 00:54:47 +0000 (-0700) Subject: i965/disasm: Mark ELSE as having UIP on Gen8+. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=707c42cb9601c64aa8dc7ac8d277b56d0a6b34a4;p=mesa.git 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 Reviewed-by: Matt Turner Reviewed-by: Kristian Høgsberg --- 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;