commit | 2159aa0c49e1935438b96ff5c56bcce3e292dfad | [log] [tgz] |
---|---|---|
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | Mon Jun 08 13:59:02 2020 -0400 |
committer | Marge Bot <eric+marge@anholt.net> | Fri Jun 26 14:07:35 2020 +0000 |
tree | fcd100b98718cf6b6965ec20fd0647e38dc2a2b1 | |
parent | f13d79f519db446df616347138cb0e897758c1d1 [diff] |
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@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5562>
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 dfe8a6e..2460b47 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 @@ 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: