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@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
2fe3031440
commit
1d2ed694c1
|
@ -475,7 +475,7 @@ static void
|
||||||
ptn_kil(nir_builder *b, nir_ssa_def **src)
|
ptn_kil(nir_builder *b, nir_ssa_def **src)
|
||||||
{
|
{
|
||||||
nir_ssa_def *cmp = b->shader->options->native_integers ?
|
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_fany_nequal4(b, nir_slt(b, src[0], nir_imm_float(b, 0.0)), nir_imm_float(b, 0.0));
|
||||||
|
|
||||||
nir_intrinsic_instr *discard =
|
nir_intrinsic_instr *discard =
|
||||||
|
|
Loading…
Reference in New Issue