vulkan/overlay: fix includes
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 22 Feb 2019 12:54:53 +0000 (12:54 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 26 Feb 2019 12:29:54 +0000 (12:29 +0000)
The Loader/Validation-Layers repository allow the user to choose where
header files are installed. On my system I choose /usr/include
thinking it was the obvious "base" location, but it turns out the
headers end up being installed right there rather in a vulkan
subdirectory. On Debian/Ubuntu the selected installation path is
/usr/include/vulkan, so just go with that.

Hopefully other distro don't choose another path.

Note that the validation layer doesn't provide a .pc file so we have
no way of querying where the headers are installed.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109739
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
src/vulkan/overlay-layer/overlay.cpp
src/vulkan/overlay-layer/vk_layer_table.cpp
src/vulkan/overlay-layer/vk_layer_table.h

index cdde7ea1e17e1763bf42ba3735d90a1c9588c055..fb86312ba3fc5db242a1f341cefa862a21fcaa16 100644 (file)
 #include <stdlib.h>
 #include <assert.h>
 
-#include <vk_loader_platform.h>
 #include <vulkan/vulkan.h>
-#include <vk_dispatch_table_helper.h>
+#include <vulkan/vk_dispatch_table_helper.h>
 #include <vulkan/vk_layer.h>
-#include "vk_layer_data.h"
+#include <vulkan/vk_layer_data.h>
+#include <vulkan/vk_layer_extension_utils.h>
+#include <vulkan/vk_loader_platform.h>
 #include "vk_layer_table.h"
-#include "vk_layer_extension_utils.h"
 
 #include "imgui.h"
 
index 4a033b9add6b55c3740f70f47e7f50cb4ac38a85..0be2c0afe95f2ab6193404dedcd4983ed856646e 100644 (file)
@@ -19,8 +19,8 @@
  */
 #include <assert.h>
 #include <unordered_map>
-#include "vk_dispatch_table_helper.h"
-#include "vulkan/vk_layer.h"
+#include <vulkan/vk_dispatch_table_helper.h>
+#include <vulkan/vk_layer.h>
 #include "vk_layer_table.h"
 static device_table_map tableMap;
 static instance_table_map tableInstanceMap;
index 45b8f6e1770bb3580163d9105279d29b200e8e5b..33f124b591d1d07f7630393bec6cd146caef6940 100644 (file)
@@ -19,8 +19,8 @@
 
 #pragma once
 
-#include "vulkan/vk_layer.h"
-#include "vulkan/vulkan.h"
+#include <vulkan/vk_layer.h>
+#include <vulkan/vulkan.h>
 #include <unordered_map>
 
 typedef std::unordered_map<void *, VkLayerDispatchTable *> device_table_map;