aco/spill: Make sure that offset stays in bounds
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Tue, 15 Aug 2023 12:55:10 +0000 (14:55 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 22 Sep 2023 06:30:01 +0000 (06:30 +0000)
commit24555cdbbd93cd0eb56d7da7cc60dc43adc9b9f1
treef81fbd6df793ec3786729d6f5f4c1bd1c5141ca9
parent9510af0f603f2c9843e6f8f1e882e99c925e3149
aco/spill: Make sure that offset stays in bounds

If a shader spills a lot, the offset can be above the HW limit.

cc: mesa-stable

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24652>
src/amd/compiler/aco_spill.cpp