Commit 7ceafa4b authored by Vasily Khoruzhick's avatar Vasily Khoruzhick
Browse files

lima: fix PP stack size

PP stack size should be set to maximum PP stack size, not to stack size of
last shader.

Fixes: 27e7603c

 ("lima: fix ppir spill stack allocation")
Tested-by: Icenowy Zheng's avatarIcenowy Zheng <icenowy@aosc.io>
Reviewed-by: Erico Nunes's avatarErico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick's avatarVasily Khoruzhick <anarsoul@gmail.com>
parent 224b2672
Pipeline #71833 passed with stages
in 26 minutes and 44 seconds
......@@ -1438,8 +1438,7 @@ lima_pack_pp_frame_reg(struct lima_context *ctx, uint32_t *frame_reg,
/* These are "stack size" and "stack offset" shifted,
* here they are assumed to be always the same. */
uint32_t fs_stack_size = ctx->fs ? ctx->fs->stack_size : 0;
frame->fragment_stack_size = fs_stack_size << 16 | fs_stack_size;
frame->fragment_stack_size = ctx->pp_max_stack_size << 16 | ctx->pp_max_stack_size;
/* related with MSAA and different value when r4p0/r7p0 */
frame->supersampled_height = fb->base.height * 2 - 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment