]> git.pld-linux.org Git - packages/vulkan-sdk.git/commitdiff
attempt to fix x32 build
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Wed, 23 Nov 2016 14:55:16 +0000 (15:55 +0100)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Wed, 23 Nov 2016 14:55:16 +0000 (15:55 +0100)
vulkan-sdk.spec
x32.patch [new file with mode: 0644]

index 291ae7041d3e737674ab3a9c07d6d9c705984120..9b2717d61a19453dfae8b7274e11240379c5cd17 100644 (file)
@@ -20,6 +20,7 @@ Patch1:               demos_out_of_src.patch
 Patch2:                rpath.patch
 Patch3:                always_xcb.patch
 Patch4:                vktrace_wayland.patch
+Patch5:                x32.patch
 URL:           http://lunarg.com/vulkan-sdk/
 BuildRequires: bison
 BuildRequires: cmake
@@ -42,6 +43,7 @@ Requires:     vulkan-devel = %{version}-%{release}
 Requires:      vulkan-loader = %{version}-%{release}
 Requires:      vulkan-sdk-tools = %{version}-%{release}
 Requires:      %{name}-validation-layers = %{version}-%{release}
+ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -110,6 +112,7 @@ Vulkan tools.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 install -d build
diff --git a/x32.patch b/x32.patch
new file mode 100644 (file)
index 0000000..39efc04
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,12 @@
+diff -dur -x '*~' VulkanTools-sdk-1.0.32.0.orig/layers/threading.h VulkanTools-sdk-1.0.32.0/layers/threading.h
+--- VulkanTools-sdk-1.0.32.0.orig/layers/threading.h   2016-11-10 18:52:27.000000000 +0100
++++ VulkanTools-sdk-1.0.32.0/layers/threading.h        2016-11-23 15:54:32.000000000 +0100
+@@ -26,7 +26,7 @@
+ #include "vk_layer_config.h"
+ #include "vk_layer_logging.h"
+-#if defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(_M_X64) || defined(__ia64) || defined(_M_IA64) ||       \
++#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__)) || defined(_M_X64) || defined(__ia64) || defined(_M_IA64) ||       \
+     defined(__aarch64__) || defined(__powerpc64__)
+ // If pointers are 64-bit, then there can be separate counters for each
+ // NONDISPATCHABLE_HANDLE type.  Otherwise they are all typedef uint64_t.
This page took 0.115257 seconds and 4 git commands to generate.