agx: Ensure we don't overallocate registers

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11751>
This commit is contained in:
Alyssa Rosenzweig
2021-07-06 22:11:31 -04:00
committed by Marge Bot
parent 7e65e47d19
commit 1d0008734c
3 changed files with 9 additions and 5 deletions

View File

@@ -363,6 +363,9 @@ typedef struct {
* driver. YOLO the mapping of nir_register to fixed hardware registers */
unsigned *nir_regalloc;
/* We reserve the top (XXX: that hurts thread count) */
unsigned max_register;
/* Place to start pushing new values */
unsigned push_base;