Mesa (master): zink: handle signed and unsigned min/max ops in ntv
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 26 14:21:26 UTC 2020
Module: Mesa
Branch: master
Commit: 2159aa0c49e1935438b96ff5c56bcce3e292dfad
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2159aa0c49e1935438b96ff5c56bcce3e292dfad
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Jun 8 13:59:02 2020 -0400
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 <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5562>
---
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:
More information about the mesa-commit
mailing list