r300: bump the RC_MAX_INDEX_BITS
authorPavel Ondračka <pavel.ondracka@gmail.com>
Fri, 14 Jul 2023 10:22:15 +0000 (12:22 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jul 2023 06:22:03 +0000 (06:22 +0000)
We skip ntt regalloc for vertex shaders and we have 1024 instruction
limit for R500 vs, so in theory we could run some shaders with more that
1024 ssa registers (if we can optimize the number of instruction in the
backend). So add one more bit.

Reviewed-by: Filip Gawin <filip.gawin@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24154>

src/gallium/drivers/r300/compiler/radeon_program_constants.h

index 6a8cbe3..4c12c5f 100644 (file)
@@ -101,7 +101,7 @@ enum {
        RC_NUM_SPECIAL_REGISTERS
 };
 
-#define RC_REGISTER_INDEX_BITS 10
+#define RC_REGISTER_INDEX_BITS 11
 #define RC_REGISTER_MAX_INDEX (1 << RC_REGISTER_INDEX_BITS)
 
 typedef enum {