diff options
author | Nick Sarnie <sarnex@gentoo.org> | 2019-10-28 19:14:17 -0400 |
---|---|---|
committer | Nick Sarnie <sarnex@gentoo.org> | 2019-10-28 19:15:47 -0400 |
commit | 71fd8fefba4a17eccf86e805e00af942171b29b6 (patch) | |
tree | 7466f3f99fcc78b5aec9c9b82224eec82469142c /media-libs/shaderc/files | |
parent | dev-java/openjdk-bin: add ~arm tarball for 8.222_p10-r1 (diff) | |
download | gentoo-71fd8fefba4a17eccf86e805e00af942171b29b6.tar.gz gentoo-71fd8fefba4a17eccf86e805e00af942171b29b6.tar.bz2 gentoo-71fd8fefba4a17eccf86e805e00af942171b29b6.zip |
media-libs/shaderc: Fix build
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=698688
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'media-libs/shaderc/files')
-rw-r--r-- | media-libs/shaderc/files/shaderc-2019.0-fix-build-against-new-glslang.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/media-libs/shaderc/files/shaderc-2019.0-fix-build-against-new-glslang.patch b/media-libs/shaderc/files/shaderc-2019.0-fix-build-against-new-glslang.patch new file mode 100644 index 000000000000..807540cf62a2 --- /dev/null +++ b/media-libs/shaderc/files/shaderc-2019.0-fix-build-against-new-glslang.patch @@ -0,0 +1,54 @@ +diff --git a/libshaderc/src/shaderc.cc b/libshaderc/src/shaderc.cc +index 3c3c3de..b5fc6cb 100644 +--- a/libshaderc/src/shaderc.cc ++++ b/libshaderc/src/shaderc.cc +@@ -20,7 +20,7 @@ + #include <sstream> + #include <vector> + +-#include "SPIRV/spirv.hpp" ++#include "glslang/SPIRV/spirv.hpp" + + #include "libshaderc_util/compiler.h" + #include "libshaderc_util/counting_includer.h" +diff --git a/libshaderc_util/src/compiler.cc b/libshaderc_util/src/compiler.cc +index ef7867f..acc172b 100644 +--- a/libshaderc_util/src/compiler.cc ++++ b/libshaderc_util/src/compiler.cc +@@ -26,7 +26,7 @@ + #include "libshaderc_util/string_piece.h" + #include "libshaderc_util/version_profile.h" + +-#include "SPIRV/GlslangToSpv.h" ++#include "glslang/SPIRV/GlslangToSpv.h" + + namespace { + using shaderc_util::string_piece; +@@ -291,17 +291,12 @@ std::tuple<bool, std::vector<uint32_t>, size_t> Compiler::Compile( + bases[static_cast<int>(UniformKind::StorageBuffer)]); + shader.setShiftUavBinding( + bases[static_cast<int>(UniformKind::UnorderedAccessView)]); +- shader.setHlslIoMapping(hlsl_iomap_); + shader.setResourceSetBinding( + hlsl_explicit_bindings_[static_cast<int>(used_shader_stage)]); + shader.setEnvClient(target_client_info.client, + target_client_info.client_version); + shader.setEnvTarget(target_client_info.target_language, + target_client_info.target_language_version); +- if (hlsl_functionality1_enabled_) { +- shader.setEnvTargetHlslFunctionality1(); +- } +- + const EShMessages rules = GetMessageRules(target_env_, source_language_, + hlsl_offsets_, + generate_debug_info_); +@@ -478,9 +473,6 @@ std::tuple<bool, std::string, std::string> Compiler::PreprocessShader( + } + shader.setEnvClient(target_client_info.client, + target_client_info.client_version); +- if (hlsl_functionality1_enabled_) { +- shader.setEnvTargetHlslFunctionality1(); +- } + + // The preprocessor might be sensitive to the target environment. + // So combine the existing rules with the just-give-me-preprocessor-output |