aco: limit GFX11 to 128 VGPRs for now

See https://reviews.llvm.org/D128054

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17333>
This commit is contained in:
Rhys Perry 2022-08-09 19:29:34 +01:00 committed by Marge Bot
parent 4e55b5b851
commit a7a9aad14d
2 changed files with 2 additions and 1 deletions

View file

@ -12107,6 +12107,7 @@ select_vs_prolog(Program* program, const struct aco_vs_prolog_key* key, ac_shade
init_program(program, compute_cs, info, options->gfx_level, options->family, options->wgp_mode,
config);
program->dev.vgpr_limit = 256;
Block* block = program->create_and_insert_block();
block->kind = block_kind_top_level;

View file

@ -95,7 +95,7 @@ init_program(Program* program, Stage stage, const struct aco_shader_info* info,
/* apparently gfx702 also has 16-bank LDS but I can't find a family for that */
program->dev.has_16bank_lds = family == CHIP_KABINI || family == CHIP_STONEY;
program->dev.vgpr_limit = 256;
program->dev.vgpr_limit = gfx_level >= GFX11 ? 128 : 256; //TODO: fix encoding for 16-bit v128+
program->dev.physical_vgprs = 256;
program->dev.vgpr_alloc_granule = 4;