On Sat, Jun 28, 2014 at 09:33:46PM -0700, Kenneth Graunke wrote:
> 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 <kenn...@whitecape.org>

Looks correct, the spec agrees.

Reviewed-by: Kristian Høgsberg <k...@bitplanet.net>

> ---
>  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
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to