projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54efbe0
)
v3dv/device: warn when the pipeline cache is disabled
author
Alejandro Piñeiro
<apinheiro@igalia.com>
Wed, 5 Aug 2020 08:35:16 +0000
(10:35 +0200)
committer
Marge 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
patch
|
blob
|
history
diff --git
a/src/broadcom/vulkan/v3dv_device.c
b/src/broadcom/vulkan/v3dv_device.c
index
3e63bf4
..
e4a5d4f
100644
(file)
--- a/
src/broadcom/vulkan/v3dv_device.c
+++ b/
src/broadcom/vulkan/v3dv_device.c
@@
-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));