mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
r300: set PIPE_BIND_CONSTANT_BUFFER for const_uploader
Fixes constant uploads with nine.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5966
CC: mesa-stable
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16125>
(cherry picked from commit e01f86c67b)
This commit is contained in:
parent
5634be6cb8
commit
100360a307
2 changed files with 4 additions and 2 deletions
|
|
@ -409,7 +409,7 @@
|
|||
"description": "r300: set PIPE_BIND_CONSTANT_BUFFER for const_uploader",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -442,7 +442,9 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
|
|||
PIPE_BIND_CUSTOM, PIPE_USAGE_STREAM, 0);
|
||||
r300->context.stream_uploader = u_upload_create(&r300->context, 1024 * 1024,
|
||||
0, PIPE_USAGE_STREAM, 0);
|
||||
r300->context.const_uploader = r300->context.stream_uploader;
|
||||
r300->context.const_uploader = u_upload_create(&r300->context, 1024 * 1024,
|
||||
PIPE_BIND_CONSTANT_BUFFER,
|
||||
PIPE_USAGE_STREAM, 0);
|
||||
|
||||
r300->blitter = util_blitter_create(&r300->context);
|
||||
if (r300->blitter == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue