aboutsummaryrefslogtreecommitdiff
path: root/render/vulkan/vulkan.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-11-11 15:54:07 -0500
committerSimon Ser <contact@emersion.fr>2022-11-11 22:56:37 +0000
commitf3ba14e491333d6bbba8c60328c4dbfd20571182 (patch)
treeb6fd00e32214f1093f46d7e8d0a3b227bc5d7383 /render/vulkan/vulkan.c
parent1c4a625fe3e6bc3317d3e1816eee4a701a36c588 (diff)
render/vulkan: remove hardcoded validation layers
Users should use the VK_INSTANCE_LAYERS env var to set layers at runtime
Diffstat (limited to 'render/vulkan/vulkan.c')
-rw-r--r--render/vulkan/vulkan.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/render/vulkan/vulkan.c b/render/vulkan/vulkan.c
index 748ba9c3..c964fe12 100644
--- a/render/vulkan/vulkan.c
+++ b/render/vulkan/vulkan.c
@@ -138,21 +138,13 @@ struct wlr_vk_instance *vulkan_instance_create(bool debug) {
.apiVersion = VK_API_VERSION_1_1,
};
- const char *layers[] = {
- "VK_LAYER_KHRONOS_validation",
- // "VK_LAYER_RENDERDOC_Capture",
- // "VK_LAYER_live_introspection",
- };
-
- unsigned layer_count = debug * (sizeof(layers) / sizeof(layers[0]));
-
VkInstanceCreateInfo instance_info = {
.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,
.pApplicationInfo = &application_info,
.enabledExtensionCount = extensions_len,
.ppEnabledExtensionNames = extensions,
- .enabledLayerCount = layer_count,
- .ppEnabledLayerNames = layers,
+ .enabledLayerCount = 0,
+ .ppEnabledLayerNames = NULL,
};
VkDebugUtilsMessageSeverityFlagsEXT severity =