From ebb651fad209201ba6c32ea461423d5e41f4525a Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Wed, 14 Oct 2015 15:23:24 -0700 Subject: [PATCH] vulkan: Remove sdk-0.9 virtual branch, has been merged Change-Id: I67e15c1d5fdd3364232051ab94e24e91a826c6a2 (cherry picked from commit e8faab3a100346438f43178e2c902642f57a0841) --- vulkan/patches/README | 8 - ...kan-Update-from-header-0.138.2-to-0.170.2.patch | 6298 -------------------- 2 files changed, 6306 deletions(-) delete mode 100644 vulkan/patches/sdk-0.9/0001-vulkan-Update-from-header-0.138.2-to-0.170.2.patch diff --git a/vulkan/patches/README b/vulkan/patches/README index 7e0376aa20..64ccf5d931 100644 --- a/vulkan/patches/README +++ b/vulkan/patches/README @@ -17,11 +17,3 @@ inform the Vulkan loader, during activity startup, where the activity's native library directory. The loader will search this directory for layer libraries. Without this change, layers will only be loaded from a global location under /data. - - -sdk-0.9 -------- -This branch contains experimental support for the sdk-0.9. Changes to -the core API up to version 0.170.2 are complete, but not tested much -yet. These patches are probably missing changes to the swapchain -extensions. diff --git a/vulkan/patches/sdk-0.9/0001-vulkan-Update-from-header-0.138.2-to-0.170.2.patch b/vulkan/patches/sdk-0.9/0001-vulkan-Update-from-header-0.138.2-to-0.170.2.patch deleted file mode 100644 index e88258d086..0000000000 --- a/vulkan/patches/sdk-0.9/0001-vulkan-Update-from-header-0.138.2-to-0.170.2.patch +++ /dev/null @@ -1,6298 +0,0 @@ -From dc816657910a33b838074dca34c4a2f5739f1b6f Mon Sep 17 00:00:00 2001 -From: Jesse Hall -Date: Thu, 8 Oct 2015 14:00:22 -0700 -Subject: [PATCH] vulkan: Update from header 0.138.2 to 0.170.2 - -Change-Id: I011e1f27d025730d448ee5cfefc6701300b455c2 ---- - vulkan/api/platform.api | 6 - - vulkan/api/templates/vk_xml.tmpl | 33 +- - vulkan/api/templates/vulkan_common.tmpl | 2 +- - vulkan/api/templates/vulkan_h.tmpl | 27 +- - vulkan/api/vulkan.api | 1144 +++++++++++++------------------ - vulkan/include/hardware/hwvulkan.h | 3 +- - vulkan/include/vulkan/vk_platform.h | 16 - - vulkan/include/vulkan/vulkan.h | 924 ++++++++++++------------- - vulkan/libvulkan/entry.cpp | 249 +++---- - vulkan/libvulkan/get_proc_addr.cpp | 190 ++--- - vulkan/libvulkan/loader.cpp | 85 +-- - vulkan/libvulkan/loader.h | 42 +- - vulkan/libvulkan/swapchain.cpp | 44 +- - vulkan/nulldrv/null_driver.cpp | 139 ++-- - vulkan/nulldrv/null_driver.h | 40 +- - vulkan/nulldrv/null_driver_gen.cpp | 31 +- - vulkan/tools/Android.mk | 1 + - vulkan/tools/vkinfo.cpp | 82 ++- - 18 files changed, 1338 insertions(+), 1720 deletions(-) - -diff --git a/vulkan/api/platform.api b/vulkan/api/platform.api -index 3da6fed..23f649d 100644 ---- a/vulkan/api/platform.api -+++ b/vulkan/api/platform.api -@@ -22,9 +22,3 @@ - // Platform types, as defined or included in vk_platform.h - - type u64 size_t -- --type u64 VkDeviceSize --type u32 VkBool32 -- --type u32 VkSampleMask --type u32 VkFlags -diff --git a/vulkan/api/templates/vk_xml.tmpl b/vulkan/api/templates/vk_xml.tmpl -index c040938..893bde7 100644 ---- a/vulkan/api/templates/vk_xml.tmpl -+++ b/vulkan/api/templates/vk_xml.tmpl -@@ -68,13 +68,18 @@ This file, vk.xml, is the Vulkan API Registry.» - // the object handle as a bool in expressions like: - // if (obj) vkDestroy(obj); - #define VK_NONDISP_HANDLE_OPERATOR_BOOL() explicit operator bool() const { return handle != 0; } -+ #define VK_NONDISP_HANDLE_CONSTRUCTOR_FROM_UINT64(obj) \ -+ explicit obj(uint64_t x) : handle(x) { } \ -+ obj(decltype(nullptr)) : handle(0) { } - «#else» - #define VK_NONDISP_HANDLE_OPERATOR_BOOL() -+ #define VK_NONDISP_HANDLE_CONSTRUCTOR_FROM_UINT64(obj) \ -+ obj(uint64_t x) : handle(x) { } - «#endif - #define VK_DEFINE_NONDISP_HANDLE(obj) \» - struct obj { \ - obj() { } \ -- obj(uint64_t x) { handle = x; } \ -+ VK_NONDISP_HANDLE_CONSTRUCTOR_FROM_UINT64(obj) \ - obj& operator =(uint64_t x) { handle = x; return *this; } \ - bool operator==(const obj& other) const { return handle == other.handle; } \ - bool operator!=(const obj& other) const { return handle != other.handle; } \ -@@ -87,6 +92,14 @@ This file, vk.xml, is the Vulkan API Registry.» - #endif - »» - ¶ -+ -+#if defined(__cplusplus) && ((defined(_MSC_VER) && _MSC_VER >= 1800) || __cplusplus >= 201103L) -+ »#define VK_NULL_HANDLE nullptr -+«#else -+ »#define VK_NULL_HANDLE 0 -+«#endif -+ »» -+¶ - - - -@@ -170,12 +183,13 @@ This file, vk.xml, is the Vulkan API Registry.» - {{Macro "XML.Docs" $d.Docs}} - {{end}} - {{end}} -- -- -- -- -- -- -+ -+ -+ -+ -+ -+ -+ - « - ¶ -