mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
brw: Skip unnecessary UNDEFs for comparisons
For example, SIMD16 W/UW fills an entire REG_SIZE so UNDEF isn't needed. No change in fossil-db. Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31833>
This commit is contained in:
parent
771e65b0db
commit
2e108afb8c
1 changed files with 2 additions and 2 deletions
|
|
@ -1346,7 +1346,7 @@ brw_from_nir_emit_alu(nir_to_brw_state &ntb, nir_alu_instr *instr,
|
|||
const uint32_t bit_size = nir_src_bit_size(instr->src[0].src);
|
||||
if (bit_size != 32) {
|
||||
dest = bld.vgrf(op[0].type);
|
||||
bld.UNDEF(dest);
|
||||
bld.emit_undef_for_partial_reg(dest);
|
||||
}
|
||||
|
||||
bld.CMP(dest, op[0], op[1], brw_cmod_for_nir_comparison(instr->op));
|
||||
|
|
@ -1382,7 +1382,7 @@ brw_from_nir_emit_alu(nir_to_brw_state &ntb, nir_alu_instr *instr,
|
|||
const uint32_t bit_size = brw_type_size_bits(op[0].type);
|
||||
if (bit_size != 32) {
|
||||
dest = bld.vgrf(op[0].type);
|
||||
bld.UNDEF(dest);
|
||||
bld.emit_undef_for_partial_reg(dest);
|
||||
}
|
||||
|
||||
bld.CMP(dest, op[0], op[1],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue