mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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> (cherry picked from commitcbe2630f19)
This commit is contained in:
parent
eb8f6e9617
commit
c849ee432d
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue