mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-15 05:10:18 +01:00
v3dv/device: warn when the pipeline cache is disabled
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
parent
54efbe0a03
commit
ee605bdf3e
1 changed files with 5 additions and 0 deletions
|
|
@ -223,6 +223,11 @@ v3dv_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
|
|||
instance->pipeline_cache_enabled =
|
||||
env_var_as_boolean("V3DV_ENABLE_PIPELINE_CACHE", true);
|
||||
|
||||
if (instance->pipeline_cache_enabled == false) {
|
||||
fprintf(stderr, "WARNING: v3dv pipeline cache is disabled. Performance "
|
||||
"can be affected negatively\n");
|
||||
}
|
||||
|
||||
glsl_type_singleton_init_or_ref();
|
||||
|
||||
VG(VALGRIND_CREATE_MEMPOOL(instance, 0, false));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue