zink: add some opcodes
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 11 Jul 2019 12:31:42 +0000 (14:31 +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 074bc00750438fcd5a74369ef7c7e443ba23f2c7..775b68116f046b8cc68a3b1056cdcd47a39d4af9 100644 (file)
@@ -786,6 +786,8 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
    UNOP(nir_op_fneg, SpvOpFNegate)
    UNOP(nir_op_fddx, SpvOpDPdx)
    UNOP(nir_op_fddy, SpvOpDPdy)
+   UNOP(nir_op_f2i32, SpvOpConvertFToS)
+   UNOP(nir_op_f2u32, SpvOpConvertFToU)
 #undef UNOP
 
 #define BUILTIN_UNOP(nir_op, spirv_op) \