From 60bfee1f31745a4d6241a0e9f9f99b97b77b2ce8 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 11 Jul 2019 14:31:42 +0200 Subject: zink: add some opcodes Acked-by: Jordan Justen --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index 074bc007504..775b68116f0 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -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) \ -- cgit v1.2.3