[Mesa-dev] [PATCH 3/3] nine: Drop use of TGSI_OPCODE_CND.

Jose Fonseca jfonseca at vmware.com
Thu Nov 20 14:52:12 PST 2014


Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

for the series.

Jose

On 20/11/14 22:31, Eric Anholt wrote:
> From: Jose Fonseca <jfonseca at vmware.com>
>
> This was the only state tracker emitting it, and hardware was just having
> to lower it anyway (or failing to lower it at all).
>
> v2: Extracted from a larger patch by Jose (which also dropped DP2A), fixed
>      to actually not reference TGSI_OPCODE_CND.  Change by anholt.
> ---
>   src/gallium/state_trackers/nine/nine_shader.c | 10 +---------
>   1 file changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c
> index 85cc190..268612e 100644
> --- a/src/gallium/state_trackers/nine/nine_shader.c
> +++ b/src/gallium/state_trackers/nine/nine_shader.c
> @@ -1374,7 +1374,6 @@ DECL_SPECIAL(CND)
>       }
>
>       cnd = tx_src_param(tx, &tx->insn.src[0]);
> -#ifdef NINE_TGSI_LAZY_R600
>       cgt = tx_scratch(tx);
>
>       if (tx->version.major == 1 && tx->version.minor < 4) {
> @@ -1387,13 +1386,6 @@ DECL_SPECIAL(CND)
>       ureg_CMP(tx->ureg, dst,
>                tx_src_param(tx, &tx->insn.src[1]),
>                tx_src_param(tx, &tx->insn.src[2]), ureg_negate(cnd));
> -#else
> -    if (tx->version.major == 1 && tx->version.minor < 4)
> -        cnd = ureg_scalar(cnd, TGSI_SWIZZLE_W);
> -    ureg_CND(tx->ureg, dst,
> -             tx_src_param(tx, &tx->insn.src[1]),
> -             tx_src_param(tx, &tx->insn.src[2]), cnd);
> -#endif
>       return D3D_OK;
>   }
>
> @@ -2356,7 +2348,7 @@ struct sm1_op_info inst_table[] =
>       _OPI(EXPP, EXP, V(0,0), V(1,1), V(0,0), V(0,0), 1, 1, NULL),
>       _OPI(EXPP, EX2, V(2,0), V(3,0), V(0,0), V(0,0), 1, 1, NULL),
>       _OPI(LOGP, LG2, V(0,0), V(3,0), V(0,0), V(0,0), 1, 1, NULL),
> -    _OPI(CND,  CND, V(0,0), V(0,0), V(0,0), V(1,4), 1, 3, SPECIAL(CND)),
> +    _OPI(CND,  NOP, V(0,0), V(0,0), V(0,0), V(1,4), 1, 3, SPECIAL(CND)),
>
>       _OPI(DEF, NOP, V(0,0), V(3,0), V(0,0), V(3,0), 1, 0, SPECIAL(DEF)),
>
>



More information about the mesa-dev mailing list