panvk: Map device memory for PANVK_DEBUG=trace
This allows us to trace applications that use device memory for LOAD_MULTIPLE operations. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31314>
This commit is contained in:

committed by
Marge Bot

parent
0b5408f9fc
commit
0b11d1a96f
@@ -124,7 +124,7 @@ panvk_AllocateMemory(VkDevice _device,
|
||||
}
|
||||
|
||||
if (device->debug.decode_ctx) {
|
||||
if (instance->debug_flags & PANVK_DEBUG_DUMP) {
|
||||
if (instance->debug_flags & (PANVK_DEBUG_DUMP | PANVK_DEBUG_TRACE)) {
|
||||
mem->debug.host_mapping =
|
||||
pan_kmod_bo_mmap(mem->bo, 0, pan_kmod_bo_size(mem->bo),
|
||||
PROT_READ | PROT_WRITE, MAP_SHARED, NULL);
|
||||
|
Reference in New Issue
Block a user