panvk: Disable the BO cache

This makes it easier to debug memory leaks, and we probably want to
rely on vulkan caches anyway, so let's just disable the BO cache.

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:29:48 +02:00
parent ef48b6c4d0
commit 6c286edc53

View file

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