diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-02-04 23:26:50 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-03-29 08:50:48 +0200 |
commit | b20af5c8d7e607de781ed22694e67e514a133294 (patch) | |
tree | 61d0a310e0def36e3cec29935e48c6c2c6fe30d4 /src/Makefile.am | |
parent | e527e62e759547577d3afcb1ea5fafcb8530db4c (diff) |
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 <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/Makefile.am')
0 files changed, 0 insertions, 0 deletions