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:
Alejandro Piñeiro 2020-08-05 10:35:16 +02:00 committed by Marge Bot
parent 54efbe0a03
commit ee605bdf3e

View file

@ -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));