mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 02:10:12 +01: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>
This commit is contained in:
parent
7addf551f3
commit
f6e3c967d9
1 changed files with 1 additions and 2 deletions
|
|
@ -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