Module: Mesa Branch: main Commit: 1b639a0ce5b239ff06f1dfc8256f6512cb260144 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b639a0ce5b239ff06f1dfc8256f6512cb260144
Author: Rhys Perry <[email protected]> Date: Tue May 3 12:13:55 2022 +0100 aco/ra: fix vgpr_limit Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Timur Kristóf <[email protected]> Fixes: b98a4d4dd7e ("aco: refactor GPR limit calculation") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16297> --- src/amd/compiler/aco_register_allocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index a6867af82be..61e384dbdaa 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -96,7 +96,7 @@ struct ra_ctx { phi_dummy.reset( create_instruction<Instruction>(aco_opcode::p_linear_phi, 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); } };
