[Mesa-dev] [PATCH] i965: Handle BRW_OPCODE_DO on Gen6+ in brw_instruction_name().

Kenneth Graunke kenneth at whitecape.org
Mon May 9 23:27:05 UTC 2016


On Monday, May 9, 2016 3:59:01 PM PDT Matt Turner wrote:
> This became a problem after the recent disassembler changes.
> ---
>  src/mesa/drivers/dri/i965/brw_shader.cpp | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/
dri/i965/brw_shader.cpp
> index f3d7c77..75536dd 100644
> --- a/src/mesa/drivers/dri/i965/brw_shader.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp
> @@ -167,6 +167,12 @@ brw_instruction_name(const struct brw_device_info 
*devinfo, enum opcode op)
>  {
>     switch (op) {
>     case BRW_OPCODE_ILLEGAL ... BRW_OPCODE_NOP:
> +      /* The DO instruction doesn't exist on Gen6+, but we use it to mark 
the
> +       * start of a loop in the IR.
> +       */
> +      if (devinfo->gen >= 6 && op == BRW_OPCODE_DO)
> +         return "do";
> +
>        assert(brw_opcode_desc(devinfo, op)->name);
>        return brw_opcode_desc(devinfo, op)->name;
>     case FS_OPCODE_FB_WRITE:
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160509/7f212be0/attachment.sig>


More information about the mesa-dev mailing list