Mesa (master): panfrost: Specify stack_shift on SFBD
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jul 2 19:11:40 UTC 2020
Module: Mesa
Branch: master
Commit: 78df3b037573ab8d3231a7fc01a4e458a2049cba
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=78df3b037573ab8d3231a7fc01a4e458a2049cba
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Tue Jun 30 13:20:56 2020 -0400
panfrost: Specify stack_shift on SFBD
Fixes spilling on T720.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5513>
---
src/gallium/drivers/panfrost/pan_sfbd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/gallium/drivers/panfrost/pan_sfbd.c b/src/gallium/drivers/panfrost/pan_sfbd.c
index a163fa9b6a6..7579c4608f9 100644
--- a/src/gallium/drivers/panfrost/pan_sfbd.c
+++ b/src/gallium/drivers/panfrost/pan_sfbd.c
@@ -204,12 +204,11 @@ panfrost_emit_sfbd(struct panfrost_batch *batch, unsigned vertex_count)
/* TODO: Why do we need to make the stack bigger than other platforms? */
unsigned shift = panfrost_get_stack_shift(MAX2(batch->stack_size, 512));
- /* TODO: where do we specify the shift? */
-
struct mali_single_framebuffer framebuffer = {
.width = MALI_POSITIVE(width),
.height = MALI_POSITIVE(height),
.shared_memory = {
+ .stack_shift = shift,
.shared_workgroup_count = ~0,
.scratchpad = panfrost_batch_get_scratchpad(batch, shift, dev->thread_tls_alloc, dev->core_count)->gpu,
},
More information about the mesa-commit
mailing list