Age | Commit message (Collapse) | Author |
|
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
|
|
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.
|
|
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.
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Before, the C API ignored the entry point name.
Before, the C++ API didn't have entry points that accepted
an entry point name.
|
|
Goes with https://github.com/KhronosGroup/SPIRV-Tools/pull/453
|
|
|
|
Support "-x hlsl", i.e. hlsl is a valid language specifier.
HLSL compilation ignores -std=... option
Files with .hlsl extension default to HLSL.
|
|
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
|
|
|
|
These are automatically generated on OSX.
|
|
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
|
|
Match upstream behaviour.
|
|
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.
|
|
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
|
|
|
|
|
|
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.
|
|
This allows us run a test exectuable against a different
copy of the source tree.
Facilitates testing of MinGW-built executables on Windows.
|
|
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.
|
|
|
|
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.
|
|
Also together with the C interface change, new overloads for assembling
are added into the C++ interface.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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
|
|
|
|
Change "main function" to "entry point"
|
|
|
|
|
|
|
|
This is required to absorb the recent merge of the overloaded-400
branch into Glslang master.
See
https://github.com/KhronosGroup/glslang/commit/ab89bbe702e88c01c2522155c54fc722161276db
|
|
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
|
|
Previously, the build was invoking python via the undefined
variable PYTHON_EXECUTABLE.
Fixes https://github.com/google/shaderc/issues/238
|
|
SPIRV-Tools source file list has changed.
|
|
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
|