mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
radeonsi: fail creating textures from user memory
Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19151>
This commit is contained in:
parent
b9e08f2fe1
commit
d037fd539c
1 changed files with 3 additions and 0 deletions
|
|
@ -630,6 +630,9 @@ static struct pipe_resource *si_buffer_from_user_memory(struct pipe_screen *scre
|
|||
const struct pipe_resource *templ,
|
||||
void *user_memory)
|
||||
{
|
||||
if (templ->target != PIPE_BUFFER)
|
||||
return NULL;
|
||||
|
||||
struct si_screen *sscreen = (struct si_screen *)screen;
|
||||
struct radeon_winsys *ws = sscreen->ws;
|
||||
struct si_resource *buf = si_alloc_buffer_struct(screen, templ, false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue