On Monday, August 29, 2016, Marek Olšák <<a href="mailto:maraeo@gmail.com">maraeo@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For the series:<br>
<br>
Reviewed-by: Marek Olšák <<a href="javascript:;" onclick="_e(event, 'cvml', 'marek.olsak@amd.com')">marek.olsak@amd.com</a>><br>
<br>
Marek</blockquote><div><br></div><div>Thanks Marek.</div><div><br></div><div>As I don't have commit access, when you have a moment I would appreciate if you could please push to master.</div><div><br></div><div>Regards,</div><div>Rhys</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Sat, Aug 27, 2016 at 6:05 PM, Rhys Kidd <<a href="javascript:;" onclick="_e(event, 'cvml', 'rhyskidd@gmail.com')">rhyskidd@gmail.com</a>> wrote:<br>
> Small code clean up that removes magic numbers where a TGSI<br>
> opcode has been defined.<br>
><br>
> No functional change expected as each opcode is unsupported on<br>
> the respective hardware.<br>
><br>
> Signed-off-by: Rhys Kidd <<a href="javascript:;" onclick="_e(event, 'cvml', 'rhyskidd@gmail.com')">rhyskidd@gmail.com</a>><br>
> ---<br>
>  src/gallium/drivers/r600/r600_<wbr>shader.c     | 14 +++++++-------<br>
>  src/gallium/include/pipe/p_<wbr>shader_tokens.h |  1 +<br>
>  2 files changed, 8 insertions(+), 7 deletions(-)<br>
><br>
> diff --git a/src/gallium/drivers/r600/<wbr>r600_shader.c b/src/gallium/drivers/r600/<wbr>r600_shader.c<br>
> index a39301f..f7b8495 100644<br>
> --- a/src/gallium/drivers/r600/<wbr>r600_shader.c<br>
> +++ b/src/gallium/drivers/r600/<wbr>r600_shader.c<br>
> @@ -8998,20 +8998,20 @@ static const struct r600_shader_tgsi_instruction r600_shader_tgsi_instruction[]<br>
>         [TGSI_OPCODE_ENDSUB]    = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_TXQ_LZ]    = { FETCH_OP_GET_TEXTURE_RESINFO, tgsi_tex},<br>
>         [TGSI_OPCODE_TXQS]      = { FETCH_OP_GET_NUMBER_OF_<wbr>SAMPLES, tgsi_tex},<br>
> -       [105]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
> +       [TGSI_OPCODE_RESQ]      = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [106]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_NOP]       = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_FSEQ]      = { ALU_OP2_SETE_DX10, tgsi_op2},<br>
>         [TGSI_OPCODE_FSGE]      = { ALU_OP2_SETGE_DX10, tgsi_op2},<br>
>         [TGSI_OPCODE_FSLT]      = { ALU_OP2_SETGT_DX10, tgsi_op2_swap},<br>
>         [TGSI_OPCODE_FSNE]      = { ALU_OP2_SETNE_DX10, tgsi_op2_swap},<br>
> -       [112]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
> +       [TGSI_OPCODE_MEMBAR]    = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_CALLNZ]    = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [114]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_BREAKC]    = { ALU_OP0_NOP, tgsi_loop_breakc},<br>
>         [TGSI_OPCODE_KILL_IF]   = { ALU_OP2_KILLGT, tgsi_kill},  /* conditional kill */<br>
>         [TGSI_OPCODE_END]       = { ALU_OP0_NOP, tgsi_end},  /* aka HALT */<br>
> -       [118]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
> +       [TGSI_OPCODE_DFMA]      = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_F2I]       = { ALU_OP1_FLT_TO_INT, tgsi_op2_trans},<br>
>         [TGSI_OPCODE_IDIV]      = { ALU_OP0_NOP, tgsi_idiv},<br>
>         [TGSI_OPCODE_IMAX]      = { ALU_OP2_MAX_INT, tgsi_op2},<br>
> @@ -9197,14 +9197,14 @@ static const struct r600_shader_tgsi_instruction eg_shader_tgsi_instruction[] =<br>
>         [TGSI_OPCODE_ENDSUB]    = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_TXQ_LZ]    = { FETCH_OP_GET_TEXTURE_RESINFO, tgsi_tex},<br>
>         [TGSI_OPCODE_TXQS]      = { FETCH_OP_GET_NUMBER_OF_<wbr>SAMPLES, tgsi_tex},<br>
> -       [105]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
> +       [TGSI_OPCODE_RESQ]      = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [106]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_NOP]       = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_FSEQ]      = { ALU_OP2_SETE_DX10, tgsi_op2},<br>
>         [TGSI_OPCODE_FSGE]      = { ALU_OP2_SETGE_DX10, tgsi_op2},<br>
>         [TGSI_OPCODE_FSLT]      = { ALU_OP2_SETGT_DX10, tgsi_op2_swap},<br>
>         [TGSI_OPCODE_FSNE]      = { ALU_OP2_SETNE_DX10, tgsi_op2_swap},<br>
> -       [112]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
> +       [TGSI_OPCODE_MEMBAR]    = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_CALLNZ]    = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [114]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_BREAKC]    = { ALU_OP0_NOP, tgsi_unsupported},<br>
> @@ -9420,14 +9420,14 @@ static const struct r600_shader_tgsi_instruction cm_shader_tgsi_instruction[] =<br>
>         [TGSI_OPCODE_ENDSUB]    = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_TXQ_LZ]    = { FETCH_OP_GET_TEXTURE_RESINFO, tgsi_tex},<br>
>         [TGSI_OPCODE_TXQS]      = { FETCH_OP_GET_NUMBER_OF_<wbr>SAMPLES, tgsi_tex},<br>
> -       [105]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
> +       [TGSI_OPCODE_RESQ]      = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [106]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_NOP]       = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_FSEQ]      = { ALU_OP2_SETE_DX10, tgsi_op2},<br>
>         [TGSI_OPCODE_FSGE]      = { ALU_OP2_SETGE_DX10, tgsi_op2},<br>
>         [TGSI_OPCODE_FSLT]      = { ALU_OP2_SETGT_DX10, tgsi_op2_swap},<br>
>         [TGSI_OPCODE_FSNE]      = { ALU_OP2_SETNE_DX10, tgsi_op2_swap},<br>
> -       [112]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
> +       [TGSI_OPCODE_MEMBAR]    = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_CALLNZ]    = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [114]                   = { ALU_OP0_NOP, tgsi_unsupported},<br>
>         [TGSI_OPCODE_BREAKC]    = { ALU_OP0_NOP, tgsi_unsupported},<br>
> diff --git a/src/gallium/include/pipe/p_<wbr>shader_tokens.h b/src/gallium/include/pipe/p_<wbr>shader_tokens.h<br>
> index 7621ab9..39ce9ea 100644<br>
> --- a/src/gallium/include/pipe/p_<wbr>shader_tokens.h<br>
> +++ b/src/gallium/include/pipe/p_<wbr>shader_tokens.h<br>
> @@ -397,6 +397,7 @@ struct tgsi_property_data {<br>
>  #define TGSI_OPCODE_BRK                 73<br>
>  #define TGSI_OPCODE_IF                  74<br>
>  #define TGSI_OPCODE_UIF                 75<br>
> +                                /* gap */<br>
>  #define TGSI_OPCODE_ELSE                77<br>
>  #define TGSI_OPCODE_ENDIF               78<br>
><br>
> --<br>
> 2.7.4<br>
><br>
> ______________________________<wbr>_________________<br>
> mesa-dev mailing list<br>
> <a href="javascript:;" onclick="_e(event, 'cvml', 'mesa-dev@lists.freedesktop.org')">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote>