Skip to content

Instantly share code, notes, and snippets.

@anarsoul
Created October 18, 2019 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anarsoul/fa8c59d4be808d83a72b0ff56f659253 to your computer and use it in GitHub Desktop.
Save anarsoul/fa8c59d4be808d83a72b0ff56f659253 to your computer and use it in GitHub Desktop.
diff --git a/src/gallium/drivers/lima/lima_draw.c b/src/gallium/drivers/lima/lima_draw.c
index 33f4c2ce59..7f6235be07 100644
--- a/src/gallium/drivers/lima/lima_draw.c
+++ b/src/gallium/drivers/lima/lima_draw.c
@@ -1499,7 +1499,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;
+ uint32_t fs_stack_size = ctx->fs ? ctx->pp_max_stack_size : 0;
frame->fragment_stack_size = fs_stack_size << 16 | fs_stack_size;
/* related with MSAA and different value when r4p0/r7p0 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment