From c577655f8c4742cfcbef2a9761028fda71a1fe63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Fri, 14 Jul 2023 12:22:15 +0200 Subject: [PATCH] r300: bump the RC_MAX_INDEX_BITS 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 Part-of: --- src/gallium/drivers/r300/compiler/radeon_program_constants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r300/compiler/radeon_program_constants.h b/src/gallium/drivers/r300/compiler/radeon_program_constants.h index 6a8cbe333bf..4c12c5f2e67 100644 --- a/src/gallium/drivers/r300/compiler/radeon_program_constants.h +++ b/src/gallium/drivers/r300/compiler/radeon_program_constants.h @@ -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 {