mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-24 03:00:30 +01:00
panfrost: Specify stack_shift on SFBD
Fixes spilling on T720. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5513>
This commit is contained in:
parent
64cdc1311b
commit
78df3b0375
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue