From c849ee432d8007274dd187d11c029ffdac50ce75 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: (cherry picked from commit cbe2630f19e86638229f65fb1ee1992f71889c2a) --- .pick_status.json | 2 +- src/gallium/drivers/iris/iris_context.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 09093aacbf4..3e4bedf18ac 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -134,7 +134,7 @@ "description": "iris: change stream uploader default size to 2MB", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "0b6693a3a14029c31db2ee8576baa78fc914b9e5", "notes": null diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index 82cdd54f365..016bc849ee3 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -298,7 +298,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;