radv/rmv: prevent logging BOs allocated in GDS/OA domains

Looks like unsupported for now.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28367>
This commit is contained in:
Samuel Pitoiset 2024-03-25 15:09:38 +01:00
parent 36f6a5b8ff
commit 9b4787ebc0

View file

@ -512,6 +512,10 @@ radv_rmv_log_bo_allocate(struct radv_device *device, struct radeon_winsys_bo *bo
if (!device->vk.memory_trace_data.is_enabled)
return;
/* RMV doesn't seem to support GDS/OA domains. */
if (!(bo->initial_domain & RADEON_DOMAIN_VRAM_GTT))
return;
struct vk_rmv_virtual_allocate_token token = {0};
token.address = bo->va;
/* If all VRAM is visible, no bo will be in invisible memory. */
@ -532,6 +536,10 @@ radv_rmv_log_bo_destroy(struct radv_device *device, struct radeon_winsys_bo *bo)
if (!device->vk.memory_trace_data.is_enabled)
return;
/* RMV doesn't seem to support GDS/OA domains. */
if (!(bo->initial_domain & RADEON_DOMAIN_VRAM_GTT))
return;
struct vk_rmv_virtual_free_token token = {0};
token.address = bo->va;