panvk: Disable the BO cache
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 6 Sep 2021 14:29:48 +0000 (16:29 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 10 Sep 2021 09:42:21 +0000 (11:42 +0200)
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>

src/panfrost/vulkan/panvk_device.c

index 8c10d8c..8254954 100644 (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;