From: Dave Airlie Date: Wed, 15 Feb 2017 08:25:52 +0000 (+1000) Subject: spirv: handle SpvOpUConvert in proper place. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14167080e2aaee0289e39b22a09d459c4a383a99;p=mesa.git 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 --- 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: