From 6199651e9185fd309e0d1db1034e0cee75b7013e Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Sun, 10 Jan 2021 13:52:41 +0100 Subject: [PATCH] zink: add missing opcodes This fixes a bunch of conversion-tests in the arb_gpu_shader_int64 piglit test-suite for me. Fixes: 55e2d836f37 ("zink: enable 64bit pipe caps") Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 2 ++ 1 file changed, 2 insertions(+) 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 15f861274f1..8789a5db20c 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 @@ -1275,6 +1275,8 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) UNOP(nir_op_u2f32, SpvOpConvertUToF) UNOP(nir_op_u2u32, SpvOpUConvert) UNOP(nir_op_f2f32, SpvOpFConvert) + UNOP(nir_op_f2i64, SpvOpConvertFToS) + UNOP(nir_op_f2u64, SpvOpConvertFToU) UNOP(nir_op_u2f64, SpvOpConvertUToF) UNOP(nir_op_i2f64, SpvOpConvertSToF) UNOP(nir_op_u2u64, SpvOpUConvert)