diff options
author | Dave Airlie <[email protected]> | 2017-02-15 18:25:52 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-02-16 14:11:59 +1000 |
commit | 14167080e2aaee0289e39b22a09d459c4a383a99 (patch) | |
tree | d7d87c900c195024a36ad3e684e0d0ef616cfc5e /src/compiler | |
parent | 2d0b14590226bbe8780dfce98a00d35e10919cc9 (diff) |
spirv: handle SpvOpUConvert in proper place.
This was falling into the quantizetof16 path.
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/spirv/vtn_alu.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |