From 52952f51cd53029087f3d82fdd2f25e15bacb013 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 6 May 2022 11:16:31 +0200 Subject: [PATCH] aco: do not align VGPRS to 8 or 16 on GFX11 Signed-off-by: Samuel Pitoiset Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_ir.cpp b/src/amd/compiler/aco_ir.cpp index be31b95e3a2..2510495e126 100644 --- a/src/amd/compiler/aco_ir.cpp +++ b/src/amd/compiler/aco_ir.cpp @@ -105,7 +105,7 @@ init_program(Program* program, Stage stage, const struct aco_shader_info* info, program->dev.sgpr_alloc_granule = 128; program->dev.sgpr_limit = 108; /* includes VCC, which can be treated as s[106-107] on GFX10+ */ - if (chip_class >= GFX10_3) + if (chip_class == GFX10_3) program->dev.vgpr_alloc_granule = program->wave_size == 32 ? 16 : 8; else program->dev.vgpr_alloc_granule = program->wave_size == 32 ? 8 : 4;