panvk: Drop the NO_MMAP flag when PANVK_DEBUG=trace

We have buffers that are not supposed to be CPU-mapped but are useful to
check when tracing is enabled.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Rebecca Mckeever <rebecca.mckeever@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: John Anthony <john.anthony@arm.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30969>
This commit is contained in:
Boris Brezillon 2024-09-06 16:00:14 +02:00 committed by Marge Bot
parent bae5235405
commit 343bff7903

View file

@ -93,7 +93,7 @@ panvk_device_adjust_bo_flags(const struct panvk_device *device,
struct panvk_instance *instance =
to_panvk_instance(device->vk.physical->instance);
if (instance->debug_flags & PANVK_DEBUG_DUMP)
if (instance->debug_flags & (PANVK_DEBUG_DUMP | PANVK_DEBUG_TRACE))
bo_flags &= ~PAN_KMOD_BO_FLAG_NO_MMAP;
return bo_flags;