Jan Engelhardt
6c3c514319
OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=66
62 lines
2.3 KiB
Diff
62 lines
2.3 KiB
Diff
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: 2019-04-13 15:02:22.799297208 +0200
|
|
|
|
Use Vulkan/glslang/spirv system libraries instead of bundled code.
|
|
|
|
---
|
|
CMakeLists.txt | 4 +---
|
|
src/CMakeLists.txt | 2 +-
|
|
src/common/rendering/vulkan/system/vk_builders.cpp | 4 ++++
|
|
3 files changed, 6 insertions(+), 4 deletions(-)
|
|
|
|
Index: gzdoom-g4.8.0/CMakeLists.txt
|
|
===================================================================
|
|
--- gzdoom-g4.8.0.orig/CMakeLists.txt
|
|
+++ gzdoom-g4.8.0/CMakeLists.txt
|
|
@@ -325,9 +325,7 @@ option(FORCE_INTERNAL_ASMJIT "Use intern
|
|
mark_as_advanced( FORCE_INTERNAL_ASMJIT )
|
|
|
|
if (HAVE_VULKAN)
|
|
- add_subdirectory( libraries/glslang/glslang)
|
|
- add_subdirectory( libraries/glslang/spirv )
|
|
- add_subdirectory( libraries/glslang/OGLCompilersDLL )
|
|
+ include_directories(/usr/include/glslang/Public /usr/include/SPIRV)
|
|
endif()
|
|
|
|
add_subdirectory( libraries/discordrpc )
|
|
Index: gzdoom-g4.8.0/src/CMakeLists.txt
|
|
===================================================================
|
|
--- gzdoom-g4.8.0.orig/src/CMakeLists.txt
|
|
+++ gzdoom-g4.8.0/src/CMakeLists.txt
|
|
@@ -368,7 +368,7 @@ add_custom_target( revision_check ALL
|
|
|
|
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${CMAKE_DL_LIBS}" "${DRPC_LIBRARIES}")
|
|
if (HAVE_VULKAN)
|
|
- set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "glslang" "SPIRV" "OGLCompiler")
|
|
+ set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} -lglslang -lSPIRV -lOGLCompiler)
|
|
endif()
|
|
|
|
# ZMUSIC
|
|
Index: gzdoom-g4.8.0/src/common/rendering/vulkan/system/vk_builders.cpp
|
|
===================================================================
|
|
--- gzdoom-g4.8.0.orig/src/common/rendering/vulkan/system/vk_builders.cpp
|
|
+++ gzdoom-g4.8.0/src/common/rendering/vulkan/system/vk_builders.cpp
|
|
@@ -25,6 +25,7 @@
|
|
#include "renderstyle.h"
|
|
#include <ShaderLang.h>
|
|
#include <GlslangToSpv.h>
|
|
+#include <glslang/build_info.h>
|
|
|
|
static const TBuiltInResource DefaultTBuiltInResource = {
|
|
/* .MaxLights = */ 32,
|
|
@@ -119,6 +120,9 @@ static const TBuiltInResource DefaultTBu
|
|
/* .maxTaskWorkGroupSizeY_NV = */ 1,
|
|
/* .maxTaskWorkGroupSizeZ_NV = */ 1,
|
|
/* .maxMeshViewCountNV = */ 4,
|
|
+#if defined(GLSLANG_VERSION_MAJOR) && GLSLANG_VERSION_MAJOR >= 11
|
|
+ /* .maxDualSourceDrawBuffersEXT = */ 4,
|
|
+#endif
|
|
|
|
/* .limits = */ {
|
|
/* .nonInductiveForLoops = */ 1,
|