radv: fix number of physical SGPRs on GFX10+

This change has no effect.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26521>
This commit is contained in:
Daniel Schürmann 2023-12-06 10:38:25 +01:00 committed by Marge Bot
parent 5ebba87772
commit dd7b6898e6
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ init_program(Program* program, Stage stage, const struct aco_shader_info* info,
program->dev.vgpr_alloc_granule = 4;
if (gfx_level >= GFX10) {
program->dev.physical_sgprs = 5120; /* doesn't matter as long as it's at least 128 * 40 */
program->dev.physical_sgprs = 128 * 20; /* enough for max waves */
program->dev.sgpr_alloc_granule = 128;
program->dev.sgpr_limit =
108; /* includes VCC, which can be treated as s[106-107] on GFX10+ */

View file

@ -123,7 +123,7 @@ radv_null_winsys_query_info(struct radeon_winsys *rws, struct radeon_info *info)
info->max_waves_per_simd = 10;
if (info->gfx_level >= GFX10)
info->num_physical_sgprs_per_simd = 128 * info->max_waves_per_simd * 2;
info->num_physical_sgprs_per_simd = 128 * info->max_waves_per_simd;
else if (info->gfx_level >= GFX8)
info->num_physical_sgprs_per_simd = 800;
else