Since
2d6233d0 ("nir: Check all sizes in nir_alu_instr_is_comparison"),
nir_alu_instr_is_comparison already returns true for comparisons with 32bit
result.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23287>
}
static bool
-alu_instr_is_comparison(const nir_alu_instr *alu)
-{
- switch (alu->op) {
- case nir_op_flt32:
- case nir_op_fge32:
- case nir_op_feq32:
- case nir_op_fneu32:
- case nir_op_ilt32:
- case nir_op_ult32:
- case nir_op_ige32:
- case nir_op_uge32:
- case nir_op_ieq32:
- case nir_op_ine32:
- return true;
- default:
- return nir_alu_instr_is_comparison(alu);
- }
-}
-
-static bool
alu_instr_is_type_conversion(const nir_alu_instr *alu)
{
return nir_op_infos[alu->op].num_inputs == 1 &&
* conversions also lead to regressions.
*/
if (nir_op_is_vec(alu->op) ||
- alu_instr_is_comparison(alu) ||
+ nir_alu_instr_is_comparison(alu) ||
alu_instr_is_type_conversion(alu))
continue;