iris: change stream uploader default size to 2MB

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: 0b6693a3a1 ("iris: Align fresh BO allocations to 2MB in size")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10863
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28974>
This commit is contained in:
Tapani Pälli 2024-04-24 09:38:18 +03:00 committed by Marge Bot
parent 2d575034f2
commit cbe2630f19

View file

@ -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;