From: Mike Blumenkrantz Date: Mon, 8 Jun 2020 17:59:02 +0000 (-0400) Subject: zink: handle signed and unsigned min/max ops in ntv X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2159aa0c49e1935438b96ff5c56bcce3e292dfad;p=mesa.git 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: --- 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: