aco: remove zero offset optimization

This is done in nir_opt_constant_folding now.

No fossil-db changes on navi31.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25477>
This commit is contained in:
Rhys Perry
2023-09-29 16:35:20 +01:00
committed by Marge Bot
parent 7139a78959
commit 558738e3c5

View File

@@ -9343,10 +9343,8 @@ visit_tex(isel_context* ctx, nir_tex_instr* instr)
if (pack_const && pack != Temp())
pack = bld.vop2(aco_opcode::v_or_b32, bld.def(v1), Operand::c32(pack_const), pack);
}
if ((pack_const || has_wqm_coord) && pack == Temp())
if (pack == Temp())
offset = bld.copy(bld.def(v1), Operand::c32(pack_const));
else if (pack == Temp())
has_offset = false;
else
offset = pack;
}