mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
r600: fix r600_buffer_from_user_memory for rusticl
Not entirely sure if it's actually required, but this makes it consistence
with r600_resource_create also calling r600_compute_global_buffer_create
for global memory buffers.
Cc: mesa-stable
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Patrick Lerda <patrick9876@free.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34623>
(cherry picked from commit f6e3c967d9)
This commit is contained in:
parent
d67267695a
commit
493e844793
2 changed files with 2 additions and 3 deletions
|
|
@ -5464,7 +5464,7 @@
|
|||
"description": "r600: fix r600_buffer_from_user_memory for rusticl",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -600,8 +600,7 @@ r600_buffer_from_user_memory(struct pipe_screen *screen,
|
|||
struct radeon_winsys *ws = rscreen->ws;
|
||||
struct r600_resource *rbuffer;
|
||||
|
||||
if ((templ->bind & PIPE_BIND_GLOBAL) &&
|
||||
(templ->bind & PIPE_BIND_COMPUTE_RESOURCE)) {
|
||||
if (templ->bind & PIPE_BIND_GLOBAL) {
|
||||
rbuffer = r600_resource(r600_compute_global_buffer_create(screen, templ));
|
||||
((struct r600_resource_global *)rbuffer)->chunk->real_buffer = rbuffer;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue