mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
llvmpipe: add user memory resources to the debug global list.
Otherwise things will crash on destruction. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Fixes:9a57dceeb7("llvmpipe: add support for user memory pointers") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16207> (cherry picked from commitb4bbf9d1ac)
This commit is contained in:
parent
95f5d37350
commit
a5c5421f9d
2 changed files with 6 additions and 1 deletions
|
|
@ -196,7 +196,7 @@
|
|||
"description": "llvmpipe: add user memory resources to the debug global list.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"because_sha": "9a57dceeb760a1d4f7d9d1666bec0844ee41852e"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -657,6 +657,11 @@ llvmpipe_resource_from_user_memory(struct pipe_screen *_screen,
|
|||
} else
|
||||
lpr->data = user_memory;
|
||||
lpr->user_ptr = true;
|
||||
#ifdef DEBUG
|
||||
mtx_lock(&resource_list_mutex);
|
||||
insert_at_tail(&resource_list, lpr);
|
||||
mtx_unlock(&resource_list_mutex);
|
||||
#endif
|
||||
return &lpr->base;
|
||||
fail:
|
||||
FREE(lpr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue