forked from pool/vulkan-tools
Compare commits
10 Commits
Author | SHA256 | Date | |
---|---|---|---|
a9047fb41c | |||
ab55ba5c4a | |||
61c1035f77 | |||
|
c92410a538 | ||
831ba29229 | |||
|
86ddba377e | ||
510c3a1b73 | |||
|
719409ed02 | ||
8c9f720c90 | |||
24c465d574 |
102
0001-build-Remove-pkg-config-provided-library-names.patch
Normal file
102
0001-build-Remove-pkg-config-provided-library-names.patch
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
From 105d6c1fede00c3a9055e5a531ebf3d99bac406e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Charles Giessen <charles@lunarg.com>
|
||||||
|
Date: Thu, 17 Jul 2025 09:56:40 -0500
|
||||||
|
Subject: [PATCH] build: Remove pkg-config provided library names
|
||||||
|
|
||||||
|
The library names of Xcb, Xlib, and Wayland do not need to be queried from pkg-config,
|
||||||
|
instead they can be hardcoded to use the fallback names.
|
||||||
|
|
||||||
|
The intent of querying the library names was to prevent issues where the hardcoded name
|
||||||
|
was not the platform-appropriate name. But because <library>_LINK_LIBRARIES can have
|
||||||
|
more than one library name, the logic to assign <library>_LINK_LIBRARIES into a compile
|
||||||
|
definition breaks horribly. While it is possible to handle this in CMake, the dlopen code would
|
||||||
|
also have to handle it which is much more error prone.
|
||||||
|
---
|
||||||
|
cube/CMakeLists.txt | 20 --------------------
|
||||||
|
cube/wayland_loader.h | 3 ---
|
||||||
|
cube/xcb_loader.h | 3 ---
|
||||||
|
cube/xlib_loader.h | 3 ---
|
||||||
|
4 files changed, 29 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/cube/CMakeLists.txt b/cube/CMakeLists.txt
|
||||||
|
index 7e135e79b..dac6bfed9 100644
|
||||||
|
--- a/cube/CMakeLists.txt
|
||||||
|
+++ b/cube/CMakeLists.txt
|
||||||
|
@@ -307,16 +307,6 @@ if (ANDROID)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
-if (XCB_LINK_LIBRARIES)
|
||||||
|
- target_compile_definitions(vkcube PRIVATE "XCB_LIBRARY=\"${XCB_LINK_LIBRARIES}\"")
|
||||||
|
-endif()
|
||||||
|
-if (X11_LINK_LIBRARIES)
|
||||||
|
- target_compile_definitions(vkcube PRIVATE "XLIB_LIBRARY=\"${X11_LINK_LIBRARIES}\"")
|
||||||
|
-endif()
|
||||||
|
-if (WAYLAND_CLIENT_LINK_LIBRARIES)
|
||||||
|
- target_compile_definitions(vkcube PRIVATE "WAYLAND_LIBRARY=\"${WAYLAND_CLIENT_LINK_LIBRARIES}\"")
|
||||||
|
-endif()
|
||||||
|
-
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# vkcubepp
|
||||||
|
|
||||||
|
@@ -360,16 +350,6 @@ target_include_directories(vkcubepp PRIVATE .)
|
||||||
|
# target_compile_definitions(vkcubepp PRIVATE ${ENABLED_CUBE_PLATFORMS})
|
||||||
|
# target_link_libraries(vkcubepp ${CMAKE_DL_LIBS} Vulkan::Headers)
|
||||||
|
target_compile_definitions(vkcubepp PRIVATE ${ENABLED_CUBE_PLATFORMS})
|
||||||
|
target_link_libraries(vkcubepp Vulkan::Headers volk::volk_headers)
|
||||||
|
|
||||||
|
-if (XCB_LINK_LIBRARIES )
|
||||||
|
- target_compile_definitions(vkcubepp PUBLIC "XCB_LIBRARY=\"${XCB_LINK_LIBRARIES}\"")
|
||||||
|
-endif()
|
||||||
|
-if (X11_LINK_LIBRARIES)
|
||||||
|
- target_compile_definitions(vkcubepp PUBLIC "XLIB_LIBRARY=\"${X11_LINK_LIBRARIES}\"")
|
||||||
|
-endif()
|
||||||
|
-if (WAYLAND_CLIENT_LINK_LIBRARIES)
|
||||||
|
- target_compile_definitions(vkcubepp PUBLIC "WAYLAND_LIBRARY=\"${WAYLAND_CLIENT_LINK_LIBRARIES}\"")
|
||||||
|
-endif()
|
||||||
|
-
|
||||||
|
if(APPLE)
|
||||||
|
install(
|
||||||
|
TARGETS vkcubepp
|
||||||
|
diff --git a/cube/wayland_loader.h b/cube/wayland_loader.h
|
||||||
|
index 2afab6e97..7d7d91412 100644
|
||||||
|
--- a/cube/wayland_loader.h
|
||||||
|
+++ b/cube/wayland_loader.h
|
||||||
|
@@ -80,9 +80,6 @@ static PFN_wl_display_disconnect cube_wl_display_disconnect = NULL;
|
||||||
|
|
||||||
|
static inline void *initialize_wayland() {
|
||||||
|
void *wayland_library = NULL;
|
||||||
|
-#if defined(WAYLAND_LIBRARY)
|
||||||
|
- wayland_library = dlopen(WAYLAND_LIBRARY, RTLD_NOW | RTLD_LOCAL);
|
||||||
|
-#endif
|
||||||
|
if (NULL == wayland_library) {
|
||||||
|
wayland_library = dlopen("libwayland-client.so.0", RTLD_NOW | RTLD_LOCAL);
|
||||||
|
}
|
||||||
|
diff --git a/cube/xcb_loader.h b/cube/xcb_loader.h
|
||||||
|
index a94d5ab56..cecd25402 100644
|
||||||
|
--- a/cube/xcb_loader.h
|
||||||
|
+++ b/cube/xcb_loader.h
|
||||||
|
@@ -88,9 +88,6 @@ static PFN_xcb_screen_next cube_xcb_screen_next = NULL;
|
||||||
|
|
||||||
|
void *initialize_xcb() {
|
||||||
|
void *xcb_library = NULL;
|
||||||
|
-#if defined(XCB_LIBRARY)
|
||||||
|
- xcb_library = dlopen(XCB_LIBRARY, RTLD_NOW | RTLD_LOCAL);
|
||||||
|
-#endif
|
||||||
|
if (NULL == xcb_library) {
|
||||||
|
xcb_library = dlopen("libxcb.so.1", RTLD_NOW | RTLD_LOCAL);
|
||||||
|
}
|
||||||
|
diff --git a/cube/xlib_loader.h b/cube/xlib_loader.h
|
||||||
|
index c7874d0e7..881789f18 100644
|
||||||
|
--- a/cube/xlib_loader.h
|
||||||
|
+++ b/cube/xlib_loader.h
|
||||||
|
@@ -72,9 +72,6 @@ static PFN_XFlush cube_XFlush = NULL;
|
||||||
|
|
||||||
|
void* initialize_xlib() {
|
||||||
|
void* xlib_library = NULL;
|
||||||
|
-#if defined(XLIB_LIBRARY)
|
||||||
|
- xlib_library = dlopen(XLIB_LIBRARY, RTLD_NOW | RTLD_LOCAL);
|
||||||
|
-#endif
|
||||||
|
if (NULL == xlib_library) {
|
||||||
|
xlib_library = dlopen("libX11.so.6", RTLD_NOW | RTLD_LOCAL);
|
||||||
|
}
|
BIN
v1.4.304.tar.gz
(Stored with Git LFS)
Normal file
BIN
v1.4.304.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:586f3a1178b2a0635562c64b1152a8646dd3b50e03cd8320a6cfaee5b9d46310
|
|
||||||
size 753022
|
|
@@ -1,3 +1,30 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 7 09:03:56 UTC 2025 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
- Add rebased patch from upstream to fix building with
|
||||||
|
wayland 1.24:
|
||||||
|
* 0001-build-Remove-pkg-config-provided-library-names.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 24 01:33:04 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Update to tag 1.4.304
|
||||||
|
* icd: add support for AV1 encode and QP maps
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 8 17:13:46 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Update to release SDK-1.3.296
|
||||||
|
* vulkaninfo: Add --show-promoted-structs option
|
||||||
|
* vulkaninfo: Only iterate 2-call idiom when needed
|
||||||
|
* vulkaninfo: Correctly query per-surface queue support
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 23 05:26:36 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Update to release SDK-1.3.290
|
||||||
|
* cube: Fix incremental present on swapchain recreate
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 16 12:21:39 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
Thu May 16 12:21:39 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@@ -17,21 +17,23 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: vulkan-tools
|
Name: vulkan-tools
|
||||||
Version: 1.3.283.0
|
Version: 1.4.304
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Diagnostic utilities for Vulkan
|
Summary: Diagnostic utilities for Vulkan
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
URL: https://github.com/KhronosGroup/Vulkan-Tools
|
URL: https://github.com/KhronosGroup/Vulkan-Tools
|
||||||
Source: https://github.com/KhronosGroup/Vulkan-Tools/archive/refs/tags/vulkan-sdk-%version.tar.gz
|
Source: https://github.com/KhronosGroup/Vulkan-Tools/archive/refs/tags/v%version.tar.gz
|
||||||
Source9: baselibs.conf
|
Source9: baselibs.conf
|
||||||
|
# PATCH-FIX-UPSTREAM
|
||||||
|
Patch0: 0001-build-Remove-pkg-config-provided-library-names.patch
|
||||||
BuildRequires: cmake >= 3.17
|
BuildRequires: cmake >= 3.17
|
||||||
BuildRequires: gcc-c++ >= 4.8
|
BuildRequires: gcc-c++ >= 4.8
|
||||||
BuildRequires: glslang-devel
|
BuildRequires: glslang-devel
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
BuildRequires: vulkan-volk-devel >= 1.3.283
|
BuildRequires: vulkan-volk-devel >= %version
|
||||||
BuildRequires: pkgconfig(vulkan) >= 1.3.283
|
BuildRequires: pkgconfig(vulkan) >= %version
|
||||||
BuildRequires: pkgconfig(wayland-protocols)
|
BuildRequires: pkgconfig(wayland-protocols)
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
BuildRequires: pkgconfig(xcb)
|
BuildRequires: pkgconfig(xcb)
|
||||||
@@ -46,7 +48,7 @@ graphics applications such as games and interactive media.
|
|||||||
This package contains the Khronos official Vulkan tools and utilities.
|
This package contains the Khronos official Vulkan tools and utilities.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n Vulkan-Tools-vulkan-sdk-%version
|
%autosetup -p1 -n Vulkan-Tools-%version
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p glslang/bin
|
mkdir -p glslang/bin
|
||||||
|
Reference in New Issue
Block a user