mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 08:50:28 +01:00
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:
parent
1b53600ff4
commit
ef48b6c4d0
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue