diff options
author | Samuel Pitoiset <[email protected]> | 2020-02-20 07:20:43 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2020-02-20 18:47:34 +0100 |
commit | 740cb3d1939efc3c4d9e23b212074744123e9ad6 (patch) | |
tree | 4c0c3720f6c209521bd50ca29b9f1b9f3c841474 | |
parent | 37650bf93803822d6e3aefae7c2f4c7eef5d6171 (diff) |
radv: use RADEON_FLAG_ZERO_VRAM when creating the trace BO
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3888>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3888>
-rw-r--r-- | src/amd/vulkan/radv_debug.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index b8f74036fc6..5ff6b6f5e1b 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -62,7 +62,8 @@ radv_init_trace(struct radv_device *device) device->trace_bo = ws->buffer_create(ws, TRACE_BO_SIZE, 8, RADEON_DOMAIN_VRAM, RADEON_FLAG_CPU_ACCESS| - RADEON_FLAG_NO_INTERPROCESS_SHARING, + RADEON_FLAG_NO_INTERPROCESS_SHARING | + RADEON_FLAG_ZERO_VRAM, RADV_BO_PRIORITY_UPLOAD_BUFFER); if (!device->trace_bo) return false; @@ -71,8 +72,6 @@ radv_init_trace(struct radv_device *device) if (!device->trace_id_ptr) return false; - memset(device->trace_id_ptr, 0, TRACE_BO_SIZE); - ac_vm_fault_occured(device->physical_device->rad_info.chip_class, &device->dmesg_timestamp, NULL); |