radv: add support for VK_EXT_memory_budget

Graphics / Mesa 3D Graphics Library / Mesa - Samuel Pitoiset [gmail.com] - 15 January 2019 10:18 EST

A simple Vulkan extension that allows apps to query size and usage of all exposed memory heaps.

The different usage values are not really accurate because they are per drm-fd, but they should be close enough.

7bef192018 radv: add support for VK_EXT_memory_budget
src/amd/vulkan/radv_device.c | 72 +++++++++++++++++++++++
src/amd/vulkan/radv_extensions.py | 1 +
src/amd/vulkan/radv_radeon_winsys.h | 4 ++
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c | 38 +++++++++++-
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c | 6 ++
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h | 4 ++
6 files changed, 124 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share