Mesa (master): nir/prog: Use nir_bany in kill handling
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Oct 26 16:46:00 UTC 2018
Module: Mesa
Branch: master
Commit: 1d2ed694c16b6b4d0b096039c8f61808ba7c624d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d2ed694c16b6b4d0b096039c8f61808ba7c624d
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Fri Oct 19 12:12:28 2018 -0500
nir/prog: Use nir_bany in kill handling
We have a helper that does exactly what the bany_inequal was doing. It
emits the same code but is a bit higher level and is designed to operate
on a bvec4.
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
src/mesa/program/prog_to_nir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
index 1f0607542e..47103306ad 100644
--- a/src/mesa/program/prog_to_nir.c
+++ b/src/mesa/program/prog_to_nir.c
@@ -475,7 +475,7 @@ static void
ptn_kil(nir_builder *b, nir_ssa_def **src)
{
nir_ssa_def *cmp = b->shader->options->native_integers ?
- nir_bany_inequal4(b, nir_flt(b, src[0], nir_imm_float(b, 0.0)), nir_imm_int(b, 0)) :
+ nir_bany(b, nir_flt(b, src[0], nir_imm_float(b, 0.0))) :
nir_fany_nequal4(b, nir_slt(b, src[0], nir_imm_float(b, 0.0)), nir_imm_float(b, 0.0));
nir_intrinsic_instr *discard =
More information about the mesa-commit
mailing list