From 2159aa0c49e1935438b96ff5c56bcce3e292dfad Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 8 Jun 2020 13:59:02 -0400 Subject: [PATCH] zink: handle signed and unsigned min/max ops in ntv fixes a number of piglit amd_shader_trinary_minmax tests Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 4 ++++ 1 file changed, 4 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 dfe8a6e0d4e..2460b479db1 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 @@ -1317,6 +1317,10 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) BUILTIN_BINOP(nir_op_fmin, GLSLstd450FMin) BUILTIN_BINOP(nir_op_fmax, GLSLstd450FMax) + BUILTIN_BINOP(nir_op_imin, GLSLstd450SMin) + BUILTIN_BINOP(nir_op_imax, GLSLstd450SMax) + BUILTIN_BINOP(nir_op_umin, GLSLstd450UMin) + BUILTIN_BINOP(nir_op_umax, GLSLstd450UMax) #undef BUILTIN_BINOP case nir_op_fdot2: -- 2.30.2