v3dv/device: warn when the pipeline cache is disabled
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 5 Aug 2020 08:35:16 +0000 (10:35 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:32 +0000 (21:21 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>

src/broadcom/vulkan/v3dv_device.c

index 3e63bf4..e4a5d4f 100644 (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));