[Mesa-dev] [PATCH 07/23] i965/disasm: Mark ELSE as having UIP on Gen8+.
Kristian Høgsberg
hoegsberg at gmail.com
Mon Jun 30 09:55:11 PDT 2014
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 <kenneth at whitecape.org>
Looks correct, the spec agrees.
Reviewed-by: Kristian Høgsberg <krh at 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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list