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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user