v3d(v): account for debug flags when using the cache

Signed-off-by: Eric Engestrom <eric@igalia.com>
Cc: mesa-stable
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19796>
This commit is contained in:
Eric Engestrom
2022-11-10 12:14:12 +00:00
committed by Marge Bot
parent cee2c4624d
commit 2b99523a95
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -749,7 +749,7 @@ v3dv_physical_device_init_disk_cache(struct v3dv_physical_device *device)
_mesa_sha1_format(timestamp, device->driver_build_sha1);
assert(device->name);
device->disk_cache = disk_cache_create(device->name, timestamp, 0);
device->disk_cache = disk_cache_create(device->name, timestamp, v3d_mesa_debug);
#else
device->disk_cache = NULL;
#endif
+1 -1
View File
@@ -70,7 +70,7 @@ void v3d_disk_cache_init(struct v3d_screen *screen)
char timestamp[41];
_mesa_sha1_format(timestamp, id_sha1);
screen->disk_cache = disk_cache_create(renderer, timestamp, 0);
screen->disk_cache = disk_cache_create(renderer, timestamp, v3d_mesa_debug);
free(renderer);
}