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 18, 2025
1 parent d362309 commit 52ff5e0
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2453,7 +2453,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: 2 additions & 2 deletions UWP/glslang_UWP/glslang_UWP.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
<ForcedIncludeFiles>pch.h</ForcedIncludeFiles>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;NOMINMAX;ENABLE_HLSL;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>../../ext/glslang;../../ext/glslang-build;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">stdcpp17</LanguageStandard>
<LanguageStandard Condition="'$(Configuration)|$(Platform)'=='Release|x64'">stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down Expand Up @@ -151,7 +153,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 +210,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 Down
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
11 changes: 9 additions & 2 deletions 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 @@ -145,6 +145,7 @@
<AdditionalIncludeDirectories>glslang/glslang/OSDependent/Windows;glslang/glslang/MachineIndependent;glslang;glslang-build</AdditionalIncludeDirectories>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -164,6 +165,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -183,6 +185,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -202,6 +205,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -224,6 +228,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<StringPooling>true</StringPooling>
<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -248,6 +253,7 @@
<OmitFramePointers>false</OmitFramePointers>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<StringPooling>true</StringPooling>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -272,6 +278,7 @@
<OmitFramePointers>false</OmitFramePointers>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<StringPooling>true</StringPooling>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -296,6 +303,7 @@
<OmitFramePointers>false</OmitFramePointers>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<StringPooling>true</StringPooling>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down Expand Up @@ -344,7 +352,6 @@
<ClCompile Include="glslang\glslang\HLSL\hlslParseHelper.cpp" />
<ClCompile Include="glslang\glslang\HLSL\hlslScanContext.cpp" />
<ClCompile Include="glslang\glslang\HLSL\hlslTokenStream.cpp" />
<ClCompile Include="glslang\OGLCompilersDLL\InitializeDll.cpp" />
<ClCompile Include="glslang\SPIRV\disassemble.cpp" />
<ClCompile Include="glslang\SPIRV\doc.cpp" />
<ClCompile Include="glslang\SPIRV\GlslangToSpv.cpp" />
Expand Down
3 changes: 1 addition & 2 deletions ext/glslang.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
<Filter>glslang</Filter>
</ClCompile>
<ClCompile Include="glslang\glslang\OSDependent\Windows\ossource.cpp" />
<ClCompile Include="glslang\OGLCompilersDLL\InitializeDll.cpp" />
<ClCompile Include="glslang\SPIRV\InReadableOrder.cpp">
<Filter>SPIRV</Filter>
</ClCompile>
Expand Down Expand Up @@ -339,4 +338,4 @@
</None>
<None Include="glslang-build\Android.mk" />
</ItemGroup>
</Project>
</Project>
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 52ff5e0

Please sign in to comment.