X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Famd%2Fcompiler%2Faco_ir.cpp;h=c028e1788c1cdb559a5823a4192c121d4859bb2c;hp=75ca80cf2acd0a25643c30c22c7b2371cc43cba3;hb=a5303a3cbea1b32788fad296df2e99500d616a43;hpb=37988b5b8ed05a7425d615d38dcc6243cf47036e diff --git a/src/amd/compiler/aco_ir.cpp b/src/amd/compiler/aco_ir.cpp index 75ca80cf2ac..c028e1788c1 100644 --- a/src/amd/compiler/aco_ir.cpp +++ b/src/amd/compiler/aco_ir.cpp @@ -101,7 +101,10 @@ void init_program(Program *program, Stage stage, struct radv_shader_info *info, program->physical_sgprs = 2560; /* doesn't matter as long as it's at least 128 * 20 */ program->sgpr_alloc_granule = 127; program->sgpr_limit = 106; - program->vgpr_alloc_granule = program->wave_size == 32 ? 7 : 3; + if (chip_class >= GFX10_3) + program->vgpr_alloc_granule = program->wave_size == 32 ? 15 : 7; + else + program->vgpr_alloc_granule = program->wave_size == 32 ? 7 : 3; } else if (program->chip_class >= GFX8) { program->physical_sgprs = 800; program->sgpr_alloc_granule = 15;