r600/sfn: Filter lowering of b2f32(comp(x,y)) for 64 bit sources
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Instead of skipping later, we can filter these instructions right away.

Fixes: 51d8ca2dff ("r600/sfn: optimize comparison results")

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37298>
This commit is contained in:
Gert Wollny 2025-09-11 15:10:40 +02:00 committed by Marge Bot
parent 99cd6ffd1f
commit b26c68e40a

View file

@ -184,6 +184,8 @@ OptNotFromComparison::filter(const nir_instr *instr) const
return false; return false;
} }
case nir_op_b2f32: case nir_op_b2f32:
if (p->src[0].src.ssa->bit_size != 32)
return false;
switch (p->op) { switch (p->op) {
case nir_op_fge: case nir_op_fge:
case nir_op_flt: case nir_op_flt:
@ -241,8 +243,6 @@ OptNotFromComparison::lower(nir_instr *instr)
return 0; return 0;
} }
case nir_op_b2f32: case nir_op_b2f32:
if (p->src[0].src.ssa->bit_size != 32)
return 0;
switch (p->op) { switch (p->op) {
case nir_op_fge: case nir_op_fge:
return nir_sge(b, src0, src1); return nir_sge(b, src0, src1);