[Mesa-dev] [PATCH] spirv: handle SpvOpUConvert in proper place.

Dave Airlie airlied at gmail.com
Wed Feb 15 08:26:36 UTC 2017


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:
-- 
2.9.3



More information about the mesa-dev mailing list