- Add 0001-build-load-wayland-client-from-vulkaninfo.h.patch

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-tools?expand=0&rev=87
This commit is contained in:
Jan Engelhardt 2022-07-21 14:16:57 +00:00 committed by Git OBS Bridge
parent 80c2c0748d
commit 7a7ad77bb0
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,30 @@
From d76fa203ac51014158060915835ed92bf5018b2a Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Thu, 21 Jul 2022 15:22:26 +0200
Subject: [PATCH] vulkaninfo: include wayland-client because its functions are
used
"Include what you use": vulkaninfo.h calls wl_registry_bind, thus
ought to include wayland-client.h.
---
vulkaninfo/vulkaninfo.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h
index 1a1e9f95..e6618d35 100644
--- a/vulkaninfo/vulkaninfo.h
+++ b/vulkaninfo/vulkaninfo.h
@@ -79,6 +79,10 @@
#include "metal_view.h"
#endif
+#if defined(VK_USE_PLATFORM_WAYLAND_KHR)
+#include <wayland-client.h>
+#endif
+
#include <vulkan/vulkan.h>
static std::string VkResultString(VkResult err);
--
2.37.1

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 21 14:16:09 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Add 0001-vulkaninfo-include-wayland-client-because-its-functi.patch
-------------------------------------------------------------------
Wed Jun 15 12:39:26 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -25,6 +25,7 @@ Group: Development/Tools/Other
URL: https://github.com/KhronosGroup/Vulkan-Tools
Source: https://github.com/KhronosGroup/Vulkan-Tools/archive/sdk-%version.tar.gz
Patch1: 0001-vulkaninfo-include-wayland-client-because-its-functi.patch
BuildRequires: cmake >= 3.4
BuildRequires: gcc-c++ >= 4.8
BuildRequires: glslang-devel >= 8.13.3743