From cbe2630f19e86638229f65fb1ee1992f71889c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Wed, 24 Apr 2024 09:38:18 +0300 Subject: [PATCH] iris: change stream uploader default size to 2MB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch bumps up the size to the 2MB alignment, this fixes rendering issues with Star Wars KOTOR when VBO's are not used (which is the default setting). Fixes: 0b6693a3a14 ("iris: Align fresh BO allocations to 2MB in size") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10863 Signed-off-by: Tapani Pälli Reviewed-by: Kenneth Graunke Part-of: --- src/gallium/drivers/iris/iris_context.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index 2468279428f..adb4da3dcc4 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -299,7 +299,11 @@ iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags) ctx->screen = pscreen; ctx->priv = priv; - ctx->stream_uploader = u_upload_create_default(ctx); + ctx->stream_uploader = u_upload_create(ctx, 1024 * 1024 * 2, + PIPE_BIND_VERTEX_BUFFER | + PIPE_BIND_INDEX_BUFFER | + PIPE_BIND_CONSTANT_BUFFER, + PIPE_USAGE_STREAM, 0); if (!ctx->stream_uploader) { ralloc_free(ice); return NULL;