Skip to content

Commit

Permalink
3rdparty: update glslang submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
oltolm committed Feb 10, 2025
1 parent d5bd7d2 commit d736b3b
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 21 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2448,7 +2448,7 @@ endif()
# target_link_libraries(native X11-xcb X11)
#endif()

set(GlslangLibs glslang OGLCompiler OSDependent SPIRV spirv-cross-glsl)
set(GlslangLibs glslang OSDependent SPIRV spirv-cross-glsl)

if (ENABLE_SPVREMAPPER)
list(APPEND GlslangLibs SPVRemapper)
Expand Down
2 changes: 2 additions & 0 deletions Common/GPU/Shader.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "Common/GPU/Shader.h"
#include "glslang/Include/ResourceLimits.h"
#include <cstring>

#ifdef USE_CRT_DBG
#undef new
Expand Down
1 change: 1 addition & 0 deletions Common/GPU/ShaderTranslation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

#include "Common/GPU/ShaderTranslation.h"
#include "ext/glslang/SPIRV/GlslangToSpv.h"
#include "glslang/Public/ShaderLang.h"
#include "Common/GPU/thin3d.h"
#include "Common/GPU/Shader.h"
#include "Common/GPU/OpenGL/GLFeatures.h"
Expand Down
1 change: 1 addition & 0 deletions Common/GPU/Vulkan/VulkanContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define SIMULATE_VULKAN_FAILURE 0

#include "ext/glslang/SPIRV/GlslangToSpv.h"
#include "glslang/Public/ShaderLang.h"

#ifdef USE_CRT_DBG
#define new DBG_NEW
Expand Down
4 changes: 1 addition & 3 deletions UWP/glslang_UWP/glslang_UWP.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@
<ClInclude Include="..\..\ext\glslang\glslang\HLSL\hlslScanContext.h" />
<ClInclude Include="..\..\ext\glslang\glslang\HLSL\hlslTokens.h" />
<ClInclude Include="..\..\ext\glslang\glslang\HLSL\hlslTokenStream.h" />
<ClInclude Include="..\..\ext\glslang\OGLCompilersDLL\InitializeDll.h" />
<ClInclude Include="..\..\ext\glslang\SPIRV\bitutils.h" />
<ClInclude Include="..\..\ext\glslang\SPIRV\disassemble.h" />
<ClInclude Include="..\..\ext\glslang\SPIRV\doc.h" />
Expand Down Expand Up @@ -209,7 +208,6 @@
<ClCompile Include="..\..\ext\glslang\glslang\HLSL\hlslParseHelper.cpp" />
<ClCompile Include="..\..\ext\glslang\glslang\HLSL\hlslScanContext.cpp" />
<ClCompile Include="..\..\ext\glslang\glslang\HLSL\hlslTokenStream.cpp" />
<ClCompile Include="..\..\ext\glslang\OGLCompilersDLL\InitializeDll.cpp" />
<ClCompile Include="..\..\ext\glslang\SPIRV\disassemble.cpp" />
<ClCompile Include="..\..\ext\glslang\SPIRV\doc.cpp" />
<ClCompile Include="..\..\ext\glslang\SPIRV\GlslangToSpv.cpp" />
Expand All @@ -225,4 +223,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
8 changes: 1 addition & 7 deletions UWP/glslang_UWP/glslang_UWP.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@
<ClCompile Include="..\..\ext\glslang\glslang\OSDependent\Windows\ossource.cpp">
<Filter>glslang\OSDependent</Filter>
</ClCompile>
<ClCompile Include="..\..\ext\glslang\OGLCompilersDLL\InitializeDll.cpp">
<Filter>OGLCompilersDLL</Filter>
</ClCompile>
<ClCompile Include="..\..\ext\glslang\glslang\MachineIndependent\attribute.cpp">
<Filter>glslang\MachineIndependent</Filter>
</ClCompile>
Expand Down Expand Up @@ -334,9 +331,6 @@
<ClInclude Include="..\..\ext\glslang\glslang\HLSL\hlslTokenStream.h">
<Filter>hlsl</Filter>
</ClInclude>
<ClInclude Include="..\..\ext\glslang\OGLCompilersDLL\InitializeDll.h">
<Filter>OGLCompilersDLL</Filter>
</ClInclude>
<ClInclude Include="..\..\ext\glslang\glslang\MachineIndependent\attribute.h">
<Filter>glslang\MachineIndependent</Filter>
</ClInclude>
Expand All @@ -351,4 +345,4 @@
</ClInclude>
<ClInclude Include="..\..\ext\glslang\glslang\Include\SpirvIntrinsics.h" />
</ItemGroup>
</Project>
</Project>
7 changes: 2 additions & 5 deletions ext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@ set(ENABLE_GLSLANG_BINARIES OFF CACHE BOOL "let's not build binaries we don't ne
set(SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS ON CACHE BOOL "let's not use exceptions" FORCE)
set(ENABLE_SPVREMAPPER OFF CACHE BOOL "we don't need spvremapper" FORCE)

# This is really a workaround for an NDK 20 compiler issue (PPSSPP issue #12105), but shouldn't hurt.
if(ANDROID)
set(ENABLE_HLSL OFF CACHE BOOL "let's not build HLSL support we don't need" FORCE)
endif()

# This works around a bug in cpu_features when ${CMAKE_BINARY_DIR} != ${CMAKE_CURRENT_BINRARY_DIR}.
# We also disable the list_cpu_features binary.
add_subdirectory(cmake/cpu_features EXCLUDE_FROM_ALL)

set(SKIP_GLSLANG_INSTALL ON CACHE BOOL "" FORCE)
set(ENABLE_GLSLANG_INSTALL OFF)
set(ENABLE_HLSL OFF CACHE BOOL "" FORCE)
set(ENABLE_OPT OFF CACHE BOOL "" FORCE)
add_subdirectory(glslang EXCLUDE_FROM_ALL)
add_subdirectory(snappy)
add_subdirectory(lua-build)
Expand Down
2 changes: 1 addition & 1 deletion ext/glslang
Submodule glslang updated 982 files
3 changes: 1 addition & 2 deletions ext/glslang-build/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ LOCAL_SRC_FILES := \
../glslang/SPIRV/SpvBuilder.cpp \
../glslang/SPIRV/SPVRemapper.cpp \
../glslang/SPIRV/SpvPostProcess.cpp \
../glslang/SPIRV/SpvTools.cpp \
../glslang/OGLCompilersDLL/InitializeDll.cpp
../glslang/SPIRV/SpvTools.cpp


LOCAL_CFLAGS := -O3 -fsigned-char -fno-strict-aliasing -Wall -Wno-multichar -D__STDC_CONSTANT_MACROS -DENABLE_HLSL
Expand Down
3 changes: 2 additions & 1 deletion ext/glslang.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<ProjectGuid>{EDFA2E87-8AC1-4853-95D4-D7594FF81947}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>glslang</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>$(LatestTargetPlatformVersion)</WindowsTargetPlatformVersion>
</PropertyGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
Expand Down Expand Up @@ -164,6 +164,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
1 change: 0 additions & 1 deletion libretro/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ SOURCES_CXX += \
$(GPUDIR)/GLES/TextureCacheGLES.cpp \
$(GPUDIR)/GLES/ShaderManagerGLES.cpp \
$(GPUDIR)/GLES/StateMappingGLES.cpp \
$(EXTDIR)/glslang/OGLCompilersDLL/InitializeDll.cpp \
$(EXTDIR)/glslang/glslang/GenericCodeGen/CodeGen.cpp \
$(EXTDIR)/glslang/glslang/GenericCodeGen/Link.cpp \
$(EXTDIR)/glslang/glslang/MachineIndependent/preprocessor/Pp.cpp \
Expand Down

0 comments on commit d736b3b

Please sign in to comment.