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>
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;
/* 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;