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:
committed by
Marge Bot
parent
cee2c4624d
commit
2b99523a95
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user