mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
radeonsi: set bo_size for user memory allocations
Otherwise the assert in si_set_shader_buffer could trigger for blits through clear_buffer on user resources. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29867>
This commit is contained in:
parent
617291d2d9
commit
a7ad53d550
1 changed files with 1 additions and 0 deletions
|
|
@ -641,6 +641,7 @@ static struct pipe_resource *si_buffer_from_user_memory(struct pipe_screen *scre
|
|||
}
|
||||
|
||||
buf->gpu_address = ws->buffer_get_virtual_address(buf->buf);
|
||||
buf->bo_size = templ->width0;
|
||||
return &buf->b.b;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue