mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
panfrost: Fix attribute buffer underallocation
Breaks on the pathological where everything is NPOT.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fixes: e646c861fc ("panfrost: Use packs for vertex attribute buffers")
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6373>
This commit is contained in:
parent
373a204bdd
commit
3df90c7c27
1 changed files with 2 additions and 2 deletions
|
|
@ -1333,8 +1333,8 @@ panfrost_emit_vertex_data(struct panfrost_batch *batch,
|
|||
/* Worst case: everything is NPOT */
|
||||
|
||||
struct panfrost_transfer S = panfrost_pool_alloc_aligned(&batch->pool,
|
||||
MALI_ATTRIBUTE_LENGTH * PIPE_MAX_ATTRIBS * 2,
|
||||
MALI_ATTRIBUTE_LENGTH);
|
||||
MALI_ATTRIBUTE_BUFFER_LENGTH * PIPE_MAX_ATTRIBS * 2,
|
||||
MALI_ATTRIBUTE_BUFFER_LENGTH);
|
||||
|
||||
struct panfrost_transfer T = panfrost_pool_alloc_aligned(&batch->pool,
|
||||
MALI_ATTRIBUTE_LENGTH * (PAN_INSTANCE_ID + 1),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue