From 14167080e2aaee0289e39b22a09d459c4a383a99 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 15 Feb 2017 18:25:52 +1000 Subject: [PATCH] spirv: handle SpvOpUConvert in proper place. This was falling into the quantizetof16 path. Reviewed-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand Signed-off-by: Dave Airlie --- 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 55f7f2ea42f..0738fe0cf99 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: -- 2.30.2