From e2e75b0304293a109b6b6858e29bef7aa75ff200 Mon Sep 17 00:00:00 2001 From: leigh123linux Date: Jan 20 2017 08:01:40 +0000 Subject: fix merge --- diff --git a/5338f69a0a3dcc8527d81ca5f936b0e066a3d7f7.patch b/5338f69a0a3dcc8527d81ca5f936b0e066a3d7f7.patch deleted file mode 100644 index b81cac1..0000000 --- a/5338f69a0a3dcc8527d81ca5f936b0e066a3d7f7.patch +++ /dev/null @@ -1,60 +0,0 @@ -From 5338f69a0a3dcc8527d81ca5f936b0e066a3d7f7 Mon Sep 17 00:00:00 2001 -From: Karl Schultz -Date: Thu, 3 Nov 2016 12:31:41 -0600 -Subject: [PATCH] layers: GH1115 Add missing VK_LAYER_EXPORT decorations - -Functions in the vk_layer_extension_utils file were -not getting exported correctly. - -Change-Id: If1bf6456cb8e79a1b6292ea76bd72e3e89a2b430 ---- - layers/vk_layer_extension_utils.cpp | 8 ++++---- - layers/vk_layer_extension_utils.h | 8 ++++---- - 2 files changed, 8 insertions(+), 8 deletions(-) - -diff --git a/layers/vk_layer_extension_utils.cpp b/layers/vk_layer_extension_utils.cpp -index bd778e9..4c1e396 100644 ---- a/layers/vk_layer_extension_utils.cpp -+++ b/layers/vk_layer_extension_utils.cpp -@@ -27,8 +27,8 @@ - * This file contains utility functions for layers - */ - --VkResult util_GetExtensionProperties(const uint32_t count, const VkExtensionProperties *layer_extensions, uint32_t *pCount, -- VkExtensionProperties *pProperties) { -+VK_LAYER_EXPORT VkResult util_GetExtensionProperties(const uint32_t count, const VkExtensionProperties *layer_extensions, -+ uint32_t *pCount, VkExtensionProperties *pProperties) { - uint32_t copy_size; - - if (pProperties == NULL || layer_extensions == NULL) { -@@ -46,8 +46,8 @@ VkResult util_GetExtensionProperties(const uint32_t count, const VkExtensionProp - return VK_SUCCESS; - } - --VkResult util_GetLayerProperties(const uint32_t count, const VkLayerProperties *layer_properties, uint32_t *pCount, -- VkLayerProperties *pProperties) { -+VK_LAYER_EXPORT VkResult util_GetLayerProperties(const uint32_t count, const VkLayerProperties *layer_properties, uint32_t *pCount, -+ VkLayerProperties *pProperties) { - uint32_t copy_size; - - if (pProperties == NULL || layer_properties == NULL) { -diff --git a/layers/vk_layer_extension_utils.h b/layers/vk_layer_extension_utils.h -index 0f249b7..b593768 100644 ---- a/layers/vk_layer_extension_utils.h -+++ b/layers/vk_layer_extension_utils.h -@@ -30,11 +30,11 @@ - */ - extern "C" { - --VkResult util_GetExtensionProperties(const uint32_t count, const VkExtensionProperties *layer_extensions, uint32_t *pCount, -- VkExtensionProperties *pProperties); -+VK_LAYER_EXPORT VkResult util_GetExtensionProperties(const uint32_t count, const VkExtensionProperties *layer_extensions, -+ uint32_t *pCount, VkExtensionProperties *pProperties); - --VkResult util_GetLayerProperties(const uint32_t count, const VkLayerProperties *layer_properties, uint32_t *pCount, -- VkLayerProperties *pProperties); -+VK_LAYER_EXPORT VkResult util_GetLayerProperties(const uint32_t count, const VkLayerProperties *layer_properties, uint32_t *pCount, -+ VkLayerProperties *pProperties); - - } // extern "C" - #endif // LAYER_EXTENSION_UTILS_H diff --git a/vulkan.spec b/vulkan.spec index 07e6627..b57b2f6 100644 --- a/vulkan.spec +++ b/vulkan.spec @@ -23,9 +23,9 @@ Name: vulkan Version: 1.0.37.0 %if 0%{?use_git} -Release: 0.2.git%{shortcommit}%{?dist} +Release: 0.1.git%{shortcommit}%{?dist} %else -Release: 2%{?dist} +Release: 1%{?dist} %endif Summary: Vulkan loader and validation layers @@ -49,9 +49,6 @@ Source4: https://raw.githubusercontent.com/KhronosGroup/glslang/master/SP Patch0: 0003-layers-Don-t-set-an-rpath.patch Patch1: 0008-demos-Don-t-build-tri-or-cube.patch -# Upstream patches -Patch4: 5338f69a0a3dcc8527d81ca5f936b0e066a3d7f7.patch - BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: bison