panvk: Only set PAN_DBG_TRACE if PANVK_DEBUG_TRACE is set

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762>
This commit is contained in:
Boris Brezillon 2021-09-06 16:27:21 +02:00
parent 1b53600ff4
commit ef48b6c4d0

View file

@ -301,7 +301,9 @@ panvk_physical_device_init(struct panvk_physical_device *device,
}
device->master_fd = master_fd;
device->pdev.debug = PAN_DBG_TRACE;
if (instance->debug_flags & PANVK_DEBUG_TRACE)
device->pdev.debug |= PAN_DBG_TRACE;
panfrost_open_device(NULL, fd, &device->pdev);
fd = -1;