summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima
diff options
context:
space:
mode:
authorVasily Khoruzhick <[email protected]>2019-10-18 18:06:56 -0700
committerVasily Khoruzhick <[email protected]>2019-10-19 18:15:18 -0700
commit7ceafa4b40743f447998915deb83d42939d6faa6 (patch)
tree60021cbb458e61c7f838fea1778cd603b213dd4e /src/gallium/drivers/lima
parent224b26728296b09ad7a21dddf8a358c8cb2db2b2 (diff)
lima: fix PP stack size
PP stack size should be set to maximum PP stack size, not to stack size of last shader. Fixes: 27e7603c344a ("lima: fix ppir spill stack allocation") Tested-by: Icenowy Zheng <[email protected]> Reviewed-by: Erico Nunes <[email protected]> Signed-off-by: Vasily Khoruzhick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima')
-rw-r--r--src/gallium/drivers/lima/lima_draw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/lima/lima_draw.c b/src/gallium/drivers/lima/lima_draw.c
index 3d22ae92781..e4db471fe30 100644
--- a/src/gallium/drivers/lima/lima_draw.c
+++ b/src/gallium/drivers/lima/lima_draw.c
@@ -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;