feat(vulkan): use distro Vulkan packages instead of setup-vulkan-sdk
With the pinned SDK gone, CI builds against distro headers, so raise the server requirement to 1.4.304 to match what is actually tested and supported: Ubuntu 26.04 has 1.4.341, the Ubuntu package build (plucky) has 1.4.304, as does Debian 13. This subsumes the separate 1.3.283 check for Vulkan video encode, and makes VK_HEADER_VERSION >= 304 always true for the server. The client conditionals stay, it is built for Android against the 1.3.268 headers fetched in common/CMakeLists.txt.
This commit is contained in:
+2
-8
@@ -123,8 +123,8 @@ endif()
|
||||
|
||||
if (WIVRN_BUILD_SERVER)
|
||||
find_program(GDBUS_CODEGEN gdbus-codegen REQUIRED)
|
||||
if (Vulkan_VERSION VERSION_LESS "1.3.261")
|
||||
message(FATAL_ERROR "Vulkan version must be at least 1.3.261, found ${Vulkan_VERSION}")
|
||||
if (Vulkan_VERSION VERSION_LESS "1.4.304")
|
||||
message(FATAL_ERROR "Vulkan version must be at least 1.4.304, found ${Vulkan_VERSION}")
|
||||
endif()
|
||||
|
||||
if (NOT WIVRN_USE_NVENC AND NOT WIVRN_USE_VAAPI AND NOT WIVRN_USE_X264 AND NOT WIVRN_USE_VULKAN_ENCODE)
|
||||
@@ -136,12 +136,6 @@ if (WIVRN_BUILD_SERVER)
|
||||
pkg_check_modules(LIBDRM REQUIRED IMPORTED_TARGET libdrm)
|
||||
endif()
|
||||
|
||||
if (WIVRN_USE_VULKAN_ENCODE)
|
||||
if (Vulkan_VERSION VERSION_LESS 1.3.283)
|
||||
message(FATAL_ERROR "Vulkan video encode requires 1.3.283, found ${Vulkan_VERSION}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (WIVRN_USE_X264)
|
||||
pkg_check_modules(X264 REQUIRED IMPORTED_TARGET x264)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user