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:
committed by
Tomeu Vizoso
parent
373a204bdd
commit
3df90c7c27
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user