From a9a5743cd9fe4e2365ee5479745eec6b3d35f34f Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Tue, 3 May 2022 12:13:55 +0100 Subject: [PATCH] aco/ra: fix vgpr_limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Timur Kristóf Fixes: b98a4d4dd7e ("aco: refactor GPR limit calculation") Part-of: (cherry picked from commit 1b639a0ce5b239ff06f1dfc8256f6512cb260144) --- .pick_status.json | 2 +- src/amd/compiler/aco_register_allocation.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 95cf5d10f3d..d9e8aa73272 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -476,7 +476,7 @@ "description": "aco/ra: fix vgpr_limit", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "because_sha": "b98a4d4dd7eaf1f299a0e8cbf5c52d8f2a93da0d" }, { diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 459e232be99..5a84f046ce9 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -87,7 +87,7 @@ struct ra_ctx { pseudo_dummy.reset( create_instruction(aco_opcode::p_parallelcopy, Format::PSEUDO, 0, 0)); sgpr_limit = get_addr_sgpr_from_waves(program, program->min_waves); - vgpr_limit = get_addr_sgpr_from_waves(program, program->min_waves); + vgpr_limit = get_addr_vgpr_from_waves(program, program->min_waves); } };