mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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:
parent
36f6a5b8ff
commit
9b4787ebc0
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue