agx: fix shuffling with large reserved region

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
This commit is contained in:
Alyssa Rosenzweig
2024-09-25 14:53:44 -04:00
committed by Marge Bot
parent f14d5b5fd8
commit eff48b9826
+1 -1
View File
@@ -389,7 +389,7 @@ find_best_region_to_evict(struct ra_ctx *rctx, enum ra_class cls, unsigned size,
* descending. So, we do not need extra registers to handle "single
* region" unevictability.
*/
if (base == 0 && reserved_size(rctx->shader) > 0)
if (base < reserved_size(rctx->shader))
continue;
/* Do not evict the same register multiple times. It's not necessary since