aco: disable zero offset optimization for strict WQM coords
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 29 Sep 2023 15:12:09 +0000 (16:12 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 2 Oct 2023 10:11:37 +0000 (10:11 +0000)
commitc3a894fb47597ad7295f65072497b3b2ffb7d812
tree667633805f3fbeecf329cf69f1563faa7a587ffc
parent305db1af11453fed670ebec46e776472211e0ac0
aco: disable zero offset optimization for strict WQM coords

If we try to do this, we end up using {undef,coordx} as the coordinates
for an image_sample instruction, because we can't shrink the linear VGPR.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9767
Fixes: 859e059aa912 ("radv: use fix_derivs_in_divergent_cf")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25477>
src/amd/compiler/aco_instruction_selection.cpp