zink: more converts
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 11 Jul 2019 14:25:25 +0000 (16:25 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:46 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c

index 563421a93c09fe642f93c08c65d5c07a365a4b69..8f96393154b3fca4037419de6f4e606bcf1dc0fe 100644 (file)
@@ -789,6 +789,8 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
    UNOP(nir_op_fddy, SpvOpDPdy)
    UNOP(nir_op_f2i32, SpvOpConvertFToS)
    UNOP(nir_op_f2u32, SpvOpConvertFToU)
+   UNOP(nir_op_i2f32, SpvOpConvertSToF)
+   UNOP(nir_op_u2f32, SpvOpConvertUToF)
 #undef UNOP
 
 #define BUILTIN_UNOP(nir_op, spirv_op) \