mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-22 06:38:09 +02:00
Per the Vulkan spec, memory objects may be deleted before the buffers and images using them are deleted, although those resources then cannot be used except for deletion themselves. For the virtual buffers, we need to access them on resource destruction to unmap the regions, so this results in a use-after-free. Implement reference counting to avoid this. Signed-off-by: Bas Nieuwenhuizen <basni@google.com> Reviewed-by: Dave Airlie <airlied@redhat.com> |
||
|---|---|---|
| .. | ||
| radv_amdgpu_bo.c | ||
| radv_amdgpu_bo.h | ||
| radv_amdgpu_cs.c | ||
| radv_amdgpu_cs.h | ||
| radv_amdgpu_surface.c | ||
| radv_amdgpu_surface.h | ||
| radv_amdgpu_winsys.c | ||
| radv_amdgpu_winsys.h | ||
| radv_amdgpu_winsys_public.h | ||