[Mesa-dev] [PATCH] spirv: handle SpvOpUConvert in proper place.
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Wed Feb 15 10:46:25 UTC 2017
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
On 15/02/17 08:26, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This was falling into the quantizetof16 path.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> src/compiler/spirv/vtn_alu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/compiler/spirv/vtn_alu.c b/src/compiler/spirv/vtn_alu.c
> index 55f7f2e..0738fe0 100644
> --- a/src/compiler/spirv/vtn_alu.c
> +++ b/src/compiler/spirv/vtn_alu.c
> @@ -286,8 +286,8 @@ vtn_nir_alu_op_for_spirv_opcode(SpvOp opcode, bool *swap,
>
> /* Conversions: */
> case SpvOpBitcast: return nir_op_imov;
> - case SpvOpUConvert:
> case SpvOpQuantizeToF16: return nir_op_fquantize2f16;
> + case SpvOpUConvert:
> case SpvOpConvertFToU:
> case SpvOpConvertFToS:
> case SpvOpConvertSToF:
More information about the mesa-dev
mailing list