Module: Mesa Branch: main Commit: c577655f8c4742cfcbef2a9761028fda71a1fe63 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c577655f8c4742cfcbef2a9761028fda71a1fe63
Author: Pavel Ondračka <[email protected]> Date: Fri Jul 14 12:22:15 2023 +0200 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24154> --- 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 {
