2019-04-13 14:41:25 +02:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
2019-04-13 15:11:19 +02:00
|
|
|
Date: 2019-04-13 15:02:22.799297208 +0200
|
2019-04-13 14:41:25 +02:00
|
|
|
|
2020-06-11 17:19:08 +02:00
|
|
|
Use Vulkan/glslang/spirv system libraries instead of bundled code.
|
2019-04-13 14:41:25 +02:00
|
|
|
|
|
|
|
---
|
2022-04-23 03:05:51 +02:00
|
|
|
CMakeLists.txt | 4 +---
|
|
|
|
src/CMakeLists.txt | 2 +-
|
2022-10-25 01:24:32 +02:00
|
|
|
src/common/rendering/vulkan/system/vk_builders.cpp | 2 ++
|
|
|
|
3 files changed, 4 insertions(+), 4 deletions(-)
|
2019-04-13 14:41:25 +02:00
|
|
|
|
2022-10-25 01:24:32 +02:00
|
|
|
Index: gzdoom-g4.8.2/CMakeLists.txt
|
2019-04-13 14:41:25 +02:00
|
|
|
===================================================================
|
2022-10-25 01:24:32 +02:00
|
|
|
--- gzdoom-g4.8.2.orig/CMakeLists.txt
|
|
|
|
+++ gzdoom-g4.8.2/CMakeLists.txt
|
2022-06-16 18:39:07 +02:00
|
|
|
@@ -325,9 +325,7 @@ option(FORCE_INTERNAL_ASMJIT "Use intern
|
2019-04-13 14:41:25 +02:00
|
|
|
mark_as_advanced( FORCE_INTERNAL_ASMJIT )
|
|
|
|
|
|
|
|
if (HAVE_VULKAN)
|
2019-08-23 15:14:20 +02:00
|
|
|
- add_subdirectory( libraries/glslang/glslang)
|
|
|
|
- add_subdirectory( libraries/glslang/spirv )
|
|
|
|
- add_subdirectory( libraries/glslang/OGLCompilersDLL )
|
2020-06-11 10:16:01 +02:00
|
|
|
+ include_directories(/usr/include/glslang/Public /usr/include/SPIRV)
|
2019-04-13 14:41:25 +02:00
|
|
|
endif()
|
|
|
|
|
2022-06-26 15:03:04 +02:00
|
|
|
add_subdirectory( libraries/discordrpc EXCLUDE_FROM_ALL )
|
2022-10-25 01:24:32 +02:00
|
|
|
Index: gzdoom-g4.8.2/src/CMakeLists.txt
|
2019-04-13 14:41:25 +02:00
|
|
|
===================================================================
|
2022-10-25 01:24:32 +02:00
|
|
|
--- gzdoom-g4.8.2.orig/src/CMakeLists.txt
|
|
|
|
+++ gzdoom-g4.8.2/src/CMakeLists.txt
|
2022-06-16 18:39:07 +02:00
|
|
|
@@ -368,7 +368,7 @@ add_custom_target( revision_check ALL
|
2019-12-18 23:09:50 +01:00
|
|
|
|
2022-06-16 18:39:07 +02:00
|
|
|
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${CMAKE_DL_LIBS}" "${DRPC_LIBRARIES}")
|
2019-04-13 14:41:25 +02:00
|
|
|
if (HAVE_VULKAN)
|
2022-06-16 18:39:07 +02:00
|
|
|
- set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "glslang" "SPIRV" "OGLCompiler")
|
|
|
|
+ set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} -lglslang -lSPIRV -lOGLCompiler)
|
2019-04-13 14:41:25 +02:00
|
|
|
endif()
|
|
|
|
|
2022-06-16 18:39:07 +02:00
|
|
|
# ZMUSIC
|
2022-10-25 01:24:32 +02:00
|
|
|
Index: gzdoom-g4.8.2/src/common/rendering/vulkan/system/vk_builders.cpp
|
2022-04-23 03:05:51 +02:00
|
|
|
===================================================================
|
2022-10-25 01:24:32 +02:00
|
|
|
--- gzdoom-g4.8.2.orig/src/common/rendering/vulkan/system/vk_builders.cpp
|
|
|
|
+++ gzdoom-g4.8.2/src/common/rendering/vulkan/system/vk_builders.cpp
|
2022-04-23 03:34:47 +02:00
|
|
|
@@ -25,6 +25,7 @@
|
|
|
|
#include "renderstyle.h"
|
|
|
|
#include <ShaderLang.h>
|
|
|
|
#include <GlslangToSpv.h>
|
|
|
|
+#include <glslang/build_info.h>
|
|
|
|
|
|
|
|
static const TBuiltInResource DefaultTBuiltInResource = {
|
|
|
|
/* .MaxLights = */ 32,
|
2022-10-25 01:24:32 +02:00
|
|
|
@@ -119,6 +120,7 @@ static const TBuiltInResource DefaultTBu
|
|
|
|
/* .maxTaskWorkGroupSizeY_NV = */ 1,
|
|
|
|
/* .maxTaskWorkGroupSizeZ_NV = */ 1,
|
|
|
|
/* .maxMeshViewCountNV = */ 4,
|
|
|
|
+ 256, 256, 128, 128, 128, 128, 128, 128, 4,
|
|
|
|
/* .maxDualSourceDrawBuffersEXT = */ 1,
|
|
|
|
|
|
|
|
/* .limits = */ {
|