aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-11-30Merge remote-tracking branch 'aosp/upstream-master' into update-shadercHEADmastermainDavid Neto
Includes the following: 427daa5 Update tests for more strict glslang 2df47b5 Add -flimit to glslc to support shader resource limits. 9d52054 Indicate Shaderc's level of stability. 1ef0a89 Support resource limits in C, C++ API 89eefb9 Add -fentry-point to glslc 725a8fd Update READMEs. 4b8ad0e Add source/parsed_operand.cpp to SPIRV-Tools 38bd2b0 Some source files are renamed in SPIRV-Tools. fc71c2f Added SPIRV-Tools source file validate_datarules.cpp f036381 C, C++ APIs are sensitive to entry_point_name aaa8b0c Removed SPIRV-Tools source/instruction.cpp 525a48c Add glslang source file hlsl/hlslAttributes.cpp cdefe18 glslc: expose HLSL compilation support from Glslang fa93320 Add API support for compiling HLSL e6b4795 Rename GlslInitialzer -> GlslangInitializer a39e3cf Ignore .DS_Store files Test: checkbuild.py on Linux x86; unit tests on Windows Change-Id: Ia3c8c4ef67bac740818b1a0ef0089159a4a40535
2016-11-28Update tests for more strict glslangDavid Neto
Glslang now warns when an HLSL shader entry point can't be found that either matches the default of "main" or one specified via -fentry-point.
2016-11-18Add -flimit to glslc to support shader resource limits.David Neto
glslc -flimit= ignores language options. Those aren't really resource limits. But they do appear in glslangValidator configuration files. Ignore them. Add -flimit-file to read resource limits from a file. Add --show-limits to show default values, and valid input format. Add ParseResourceLimits internal function.
2016-11-18Indicate Shaderc's level of stability.David Neto
2016-11-17Support resource limits in C, C++ APIDavid Neto
2016-11-16Add -fentry-point to glslcDavid Neto
Updates to test infrastructure: - TestStatus carries raw PlaceHolder objects - FileShader placeholder now takes an optional assembly_substr. If present, that's a substring expected to be in the dissasembled output of an module generated from that placeholder's input. - Add test mixin classes to check for substring in assembly output per shader input file. - Pass the path to the spirv-dis to the tests, and store it in the test manager class.
2016-11-16Update READMEs.Lei Zhang
2016-11-15Add source/parsed_operand.cpp to SPIRV-ToolsDavid Neto
2016-11-09Some source files are renamed in SPIRV-Tools.Lei Zhang
2016-11-08Added SPIRV-Tools source file validate_datarules.cppDavid Neto
2016-11-08C, C++ APIs are sensitive to entry_point_nameDavid Neto
Before, the C API ignored the entry point name. Before, the C++ API didn't have entry points that accepted an entry point name.
2016-11-03Removed SPIRV-Tools source/instruction.cppDavid Neto
Goes with https://github.com/KhronosGroup/SPIRV-Tools/pull/453
2016-11-01Add glslang source file hlsl/hlslAttributes.cppDavid Neto
2016-10-24glslc: expose HLSL compilation support from GlslangDavid Neto
Support "-x hlsl", i.e. hlsl is a valid language specifier. HLSL compilation ignores -std=... option Files with .hlsl extension default to HLSL.
2016-10-21Add API support for compiling HLSLDavid Neto
Exposes the HLSL functionality in Glslang. Done in three layers: - libshaderc_util::Compiler: Add libshaderc_util::Compiler::SourceLanguage enum. Add libshaderc_util::Compiler::SetSourceLanguage method. The default language remains GLSL. libshaderc_util::Compiler passes the source language option into Glslang. - C API Add function to set source language on compiler options. - C++ API Add shaderc::CompileOptions::SetSourceLanguage
2016-10-21Rename GlslInitialzer -> GlslangInitializerDavid Neto
2016-10-21Ignore .DS_Store filesDavid Neto
These are automatically generated on OSX.
2016-10-19Merge remote-tracking branch 'aosp/upstream-master' into update-shadercndk-r14-beta1David Neto
Includes the following: ac2c9b3 Enable AMD extensions for Glslang by default. 2045ead Work around bug with abspath on windows. Test: checkbuild.py for Linux, Windows; ran unit tests on Windows Change-Id: Ib598579b741f57ea4d276ab02c40da4f4ce8ef45
2016-10-19Enable AMD extensions for Glslang by default.David Neto
Match upstream behaviour.
2016-10-12Work around bug with abspath on windows.Andrew Woloszyn
On windows, abspath will mangle a path that is already absolute instead of leaving it alone. Use the functions built into the NDK to only create an absolute path if it is not already absolute.
2016-10-12Merge remote-tracking branch 'aosp/upstream-master' into refresh-shadercDavid Neto
Includes the following commits: ab9deb1 Start v2016.2 75ec992 Finalize v2016.1 868ead3 When copying tests, only catch ENOENT exception b2248ab Make tests detect working directory at runtime 0535046 Clarify Shaderc wraps around other tools 75743a4 Comment Compiler's constructor to mention Vulkan as default. f514d8e Sort out target environments used in different components. 501a864 Chanage the C interface for assembling to accept options. 987b74e Change to use SPIRV-Tools C++ interface for Disassembling. f18f4bf Add cases in examples to show optimization. 0771152 Address comments about glslc doc. 90a0748 Add glslc support for -O. 9d742df Enable output diff in expect.ValidFileContents. ede83cc Enable friendly names for disassembling. 72d6dee Add support for optimization after compilation in the library. 29a2828 Add new file appeared in glslang. fc6ff6e Document SPIRV-Tools relicensing to Apache 2.0 ef03d81 Add the SPIRV-Tools-opt library into Android.mk. 6b39030 Travis CI: Add configuration for building using Android NDK. Test: checkbuild.py Linux, Windows; manually ran unit test on Windows Change-Id: Iee14f2c60c4b1307d94ce0d6d4b56b2bb48763ca
2016-10-12Start v2016.2David Neto
2016-10-12Finalize v2016.1David Neto
2016-10-07When copying tests, only catch ENOENT exceptionDavid Neto
Before, we were catching too-broad a set of exceptions. On Windows sometimes you might not be able to remove the original directory, e.g. since a process might be running in that directory. That can lead to spurious test failures where tests would run but compare to stale base results. Also: - sort the test file list, for nicer debugging. - fix linting warnings for unused variables.
2016-10-05Make tests detect working directory at runtimeDavid Neto
This allows us run a test exectuable against a different copy of the source tree. Facilitates testing of MinGW-built executables on Windows.
2016-10-04Clarify Shaderc wraps around other toolsDavid Neto
Describe why it exists: what does Shaderc add on top? Say that Shaderc ships in the Android NDK. Point to the AOSP repos as the authoritative sources of what is really in the NDK. Also say that those repos are downstream from the GitHub repos.
2016-09-30Comment Compiler's constructor to mention Vulkan as default.Lei Zhang
2016-09-30Sort out target environments used in different components.Lei Zhang
SPIRV-Tools has its own target environment definition, and public shaderc API has its own. A new one is added into Compiler in shaderc_util, for better isolation. Now shaderc_util::Compiler's interface accepts target environment, not glslang messages anymore. All the conversion to glslang messages are done in the implementation now.
2016-09-30Chanage the C interface for assembling to accept options.Lei Zhang
Also together with the C interface change, new overloads for assembling are added into the C++ interface.
2016-09-30Change to use SPIRV-Tools C++ interface for Disassembling.Lei Zhang
2016-09-27Add cases in examples to show optimization.Lei Zhang
2016-09-26Address comments about glslc doc.Lei Zhang
2016-09-23Add glslc support for -O.Lei Zhang
2016-09-23Enable output diff in expect.ValidFileContents.Lei Zhang
2016-09-23Enable friendly names for disassembling.Lei Zhang
2016-09-23Add support for optimization after compilation in the library.Lei Zhang
Two optimization levels are added: * shaderc_optimization_level_zero * shaderc_optimization_level_size The first does no optimization, while the latter runs strip-debug-info and then unify-constant pass. This is just for compilation; no assembling support yet.
2016-09-22Add new file appeared in glslang.Lei Zhang
2016-09-21Document SPIRV-Tools relicensing to Apache 2.0David Neto
2016-09-21Add the SPIRV-Tools-opt library into Android.mk.Lei Zhang
2016-09-21Merge remote-tracking branch 'aosp/upstream-master' into shaderc-update-masterDavid Neto
Pulls in the following: 62be0c0 Update glslang error messages about entry points e17bb8b Add util/parse_number.cpp to third_party/Android.mk f6767fc SPIRV-Tools source/capability_set.cpp was removed 060500e Add SPIRV-Tools file source/capability_set.cpp 7e77671 Update Glslang sources for Android NDK build Test: ndk/checkbuild.py on Linux; manually ran unit tests on Windows Change-Id: I0708606800712f27361de07c3a1ad14ed374706a
2016-09-21Travis CI: Add configuration for building using Android NDK.Lei Zhang
2016-09-20Update glslang error messages about entry pointsDavid Neto
Change "main function" to "entry point"
2016-09-08Add util/parse_number.cpp to third_party/Android.mkqining
2016-09-01SPIRV-Tools source/capability_set.cpp was removedDavid Neto
2016-08-30Add SPIRV-Tools file source/capability_set.cppDavid Neto
2016-08-24Update Glslang sources for Android NDK buildDavid Neto
This is required to absorb the recent merge of the overloaded-400 branch into Glslang master. See https://github.com/KhronosGroup/glslang/commit/ab89bbe702e88c01c2522155c54fc722161276db
2016-08-16Merge remote-tracking branch 'aosp/upstream-master'Lei Zhang
Pulls in the following: 68b8e94 Invoke python via PYTHON_EXE discovered by cmake 8541199 Build SPIRV-Tools file Instruction.cpp instead of Id.cpp 620166a Use with clause to handle files. b077f3e Avoid redefining builtin dir and break long comment lines. Change-Id: If9ee4c343a3d5d2225653baa286d116911e9ed65
2016-08-10Invoke python via PYTHON_EXE discovered by cmakeDavid Neto
Previously, the build was invoking python via the undefined variable PYTHON_EXECUTABLE. Fixes https://github.com/google/shaderc/issues/238
2016-08-09Build SPIRV-Tools file Instruction.cpp instead of Id.cppDavid Neto
SPIRV-Tools source file list has changed.
2016-08-08Merge remote-tracking branch 'aosp/upstream-master'David Neto
Pulls in the following: 00d1bad Fix SHADERC_SKIP_TESTS configuration to actually skip all tests. c63df79 SPIRV-Tools source files have changed Change-Id: I153f9bafd0bf223f35d93e27f8a47f284c2d9930