mesa/src/amd/vulkan/winsys/amdgpu
Bas Nieuwenhuizen b20af5c8d7 radv/amdgpu: Use reference counting for bos.
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>
2017-03-29 08:50:48 +02:00
..
radv_amdgpu_bo.c radv/amdgpu: Use reference counting for bos. 2017-03-29 08:50:48 +02:00
radv_amdgpu_bo.h radv/amdgpu: Use reference counting for bos. 2017-03-29 08:50:48 +02:00
radv_amdgpu_cs.c radv/amdgpu: Add winsys implementation of virtual buffers. 2017-03-29 08:50:17 +02:00
radv_amdgpu_cs.h radv/winsys: Make WaitIdle queue aware. 2016-12-18 20:52:20 +01:00
radv_amdgpu_surface.c radv/amdgpu: Let addrlib calculate the HTILE parameters. 2017-03-07 09:58:21 +01:00
radv_amdgpu_surface.h radv: Use proper header guards over 'pragma once' directives 2016-10-10 16:10:56 +11:00
radv_amdgpu_winsys.c radv/winsys: use drmGetDevice2 API 2017-03-15 11:38:00 +00:00
radv_amdgpu_winsys.h radv: Use proper header guards over 'pragma once' directives 2016-10-10 16:10:56 +11:00
radv_amdgpu_winsys_public.h radv/amdgpu: Add some debug flags. 2017-03-06 00:10:23 +01:00