From 691cfe40fa76dc63d65fb9e9aca764e703faf9cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ADra=20Canal?= Date: Wed, 18 Mar 2026 17:57:03 -0300 Subject: [PATCH] v3d: use devinfo->page_size for state uploader default size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The state uploader was hardcoded to 4096 bytes, which doesn't fill the full page on systems with 16KB pages. Use devinfo->page_size instead so the uploader default matches the actual allocation granularity. Reviewed-by: Iago Toral Quiroga Signed-off-by: MaĆ­ra Canal Part-of: --- src/gallium/drivers/v3d/v3d_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/v3d/v3d_context.c b/src/gallium/drivers/v3d/v3d_context.c index 369a9d8afd6..a75d1a6e145 100644 --- a/src/gallium/drivers/v3d/v3d_context.c +++ b/src/gallium/drivers/v3d/v3d_context.c @@ -476,7 +476,7 @@ v3d_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) v3d->base.stream_uploader = v3d->uploader; v3d->base.const_uploader = v3d->uploader; v3d->state_uploader = u_upload_create(&v3d->base, - 4096, + devinfo->page_size, PIPE_BIND_CONSTANT_BUFFER, PIPE_USAGE_STREAM, 0);