diff --git a/.pick_status.json b/.pick_status.json index 19b371e6767..856b48b07fe 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3454,7 +3454,7 @@ "description": "aco: Fix parameter stack size calculation", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/amd/compiler/instruction_selection/aco_isel_helpers.cpp b/src/amd/compiler/instruction_selection/aco_isel_helpers.cpp index c0393e2db0a..f9bff68dce2 100644 --- a/src/amd/compiler/instruction_selection/aco_isel_helpers.cpp +++ b/src/amd/compiler/instruction_selection/aco_isel_helpers.cpp @@ -672,7 +672,7 @@ build_end_with_regs(isel_context* ctx, std::vector& regs) Instruction* add_startpgm(struct isel_context* ctx, bool is_callee) { - ctx->program->scratch_arg_size += ctx->callee_info.scratch_param_size; + ctx->program->scratch_arg_size += ctx->callee_info.scratch_param_size * ctx->program->wave_size; unsigned def_count = 0; for (unsigned i = 0; i < ctx->args->arg_count; i++) {