[Mesa-dev] [PATCH] tgsi/exec: fix LDEXP in softpipe

Brian Paul brianp at vmware.com
Wed Nov 15 20:14:32 UTC 2017


Reviewed-by: Brian Paul <brianp at vmware.com>


On 11/15/2017 11:35 AM, Nicolai Hähnle wrote:
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
> Bugzilla: https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.freedesktop.org_show-5Fbug.cgi-3Fid-3D103128&d=DwIGaQ&c=uilaK90D4TOVoH58JNXRgQ&r=Ie7_encNUsqxbSRbqbNgofw0ITcfE8JKfaUjIQhncGA&m=xmgFaDIVj7aLD3q4rCR_QYavBqvQH6DsYgtLGUXvpcQ&s=reW4GkhIDPr33R7C6PMnrgFtF-JCGUQl6oc89AqDDM4&e=
> Fixes: cad959d90145 ("gallium: add LDEXP TGSI instruction and corresponding cap")
> ---
>   src/gallium/auxiliary/tgsi/tgsi_exec.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
> index afed96c9b1d..793c0da39ab 100644
> --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
> +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
> @@ -5123,21 +5123,21 @@ exec_instruction(
>
>      case TGSI_OPCODE_LG2:
>         exec_scalar_unary(mach, inst, micro_lg2, TGSI_EXEC_DATA_FLOAT, TGSI_EXEC_DATA_FLOAT);
>         break;
>
>      case TGSI_OPCODE_POW:
>         exec_scalar_binary(mach, inst, micro_pow, TGSI_EXEC_DATA_FLOAT, TGSI_EXEC_DATA_FLOAT);
>         break;
>
>      case TGSI_OPCODE_LDEXP:
> -      exec_scalar_binary(mach, inst, micro_ldexp, TGSI_EXEC_DATA_FLOAT, TGSI_EXEC_DATA_INT);
> +      exec_vector_binary(mach, inst, micro_ldexp, TGSI_EXEC_DATA_FLOAT, TGSI_EXEC_DATA_FLOAT);
>         break;
>
>      case TGSI_OPCODE_COS:
>         exec_scalar_unary(mach, inst, micro_cos, TGSI_EXEC_DATA_FLOAT, TGSI_EXEC_DATA_FLOAT);
>         break;
>
>      case TGSI_OPCODE_DDX:
>         exec_vector_unary(mach, inst, micro_ddx, TGSI_EXEC_DATA_FLOAT, TGSI_EXEC_DATA_FLOAT);
>         break;
>
>



More information about the mesa-dev mailing list