mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 09:00:10 +01:00
r600/sfn: Filter lowering of b2f32(comp(x,y)) for 64 bit sources
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:
parent
99cd6ffd1f
commit
b26c68e40a
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue