-
78de1095
by ZhiqianXia
at 2021-08-02T16:20:02+08:00
Support the textureQueryLOD at #extension GL_ARB_texture_query_lod.
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
-
78ce7e56
by Marius Hillenbrand
at 2021-11-08T14:12:01+01:00
Fix encoding/decoding of string literals for big-endian systems
Per SPIR-V spec, a string literal's UTF-8 octets are encoded packed into
words with little-endian convention. Explicitly perform that encoding
instead of assuming that the host system is little-endian.
Note that this change requires corresponding fixes in SPIRV-Tools.
Fixes #202
-
77b0d72c
by ZhiqianXia
at 2021-11-10T09:44:16+08:00
#extension GL_ARB_gpu_shader5 support the implicit conversion ,
So the best function matching algorithm should be actived.
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
-
50a6a516
by ZhiqianXia
at 2021-11-10T10:41:40+08:00
Support the #extension GL_ARB_fragment_coord_conventions.
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
-
0eda3439
by Marius Hillenbrand
at 2021-11-11T16:49:40+01:00
Use intermOut.cpp's IsNan and IsInfinity for parse-time constant folding (updated)
There were two implementations of isInf() and isNan(), in Constant.cpp
and in intermOut.cpp. The former only works on little-endian systems,
the latter is a wrapper for library functions and works regardless of
endianness. Move the second version into Common.h and adopt it in both
places. Thereby avoid the duplication and fix for big-endian systems.
A previous commit with the same intent and purpose had missed a required
header for builds on Windows.
On s390x, this fixes the test case
Glsl/CompileToAstTest.FromFile/constFold_frag.
Fixes #2802
-
f1fa8afa
by Marius Hillenbrand
at 2021-11-12T10:35:31+01:00
TIntermediate::promoteConstantUnion(): fix conversion to int8
The signedness of type char is implementation-defined in C++. The
conversion to (signed) int8 currently uses a cast to char, which is
undefined for negative values when the type char is implemented as
unsigned. Thus, fix to cast to "signed char", which has the intended
semantic on all implementations.
Fixes #2807
-
10be28ac
by Greg Fischer
at 2021-11-12T16:57:11-07:00
Fix struct type sharing
Fixes #2812
-
3074ec94
by Greg Fischer
at 2021-11-12T17:38:11-07:00
Merge pull request #2814 from mhillenbrand/isinf_isnan2
Use intermOut.cpp's IsNan and IsInfinity for parse-time constant folding (updated)
-
f669f139
by Greg Fischer
at 2021-11-12T19:16:35-07:00
Merge pull request #2819 from greg-lunarg/i2812
Fix struct type sharing
-
7d27f667
by Greg Fischer
at 2021-11-15T10:52:12-07:00
Merge pull request #2818 from mhillenbrand/promoteConstantUnion_signed_char
TIntermediate::promoteConstantUnion(): fix conversion to int8
-
7141f89a
by Greg Fischer
at 2021-11-15T13:28:53-07:00
Merge pull request #2806 from ZhiqianXia/bestFunctionMatching
#extension GL_ARB_gpu_shader5 support the implicit conversion ,
-
0d85595e
by Marius Hillenbrand
at 2021-11-15T14:00:22-07:00
add negative float conversions to test constantUnaryConversion.comp
Add conversions from negative float16_t and float32_t to bool, all
signed integer types (i.e., including those in
GL_EXT_shader_explicit_arithmetic_types), and all float types (from the
same extension) to extend coverage.
Note that converting negative float values to unsigned integers is
undefined behavior. Thus, we exclude them.
-
d13f8151
by Marius Hillenbrand
at 2021-11-15T14:01:15-07:00
remove undefined conversions from test constantUnaryConversion.comp
Remove remaining conversions from negative float64_t to unsigned
integers, which are undefined behavior.
As a result, this test will also succeed on platforms that implement
those conversions differently than x86. That addresses one of the issues
in #2815.
-
8a7860e4
by Greg Fischer
at 2021-11-15T14:49:53-07:00
Merge pull request #2821 from greg-lunarg/conv0
[RFC] add more negative float conversions to test constantUnaryConversion.comp and remove the undefined ones
-
cd187e20
by Kevin Athey
at 2021-11-15T16:33:08-08:00
Initialize member TSymbol::uniqueId.
-
d51d01cc
by Greg Fischer
at 2021-11-16T11:20:42-07:00
Merge pull request #2823 from kda/master
Initialize member TSymbol::uniqueId.
-
1025f473
by Alan Baker
at 2021-11-16T19:03:12-05:00
Update SPIRV-Tools
* Fix test expectations
-
e9564feb
by Greg Fischer
at 2021-11-16T18:42:12-07:00
Add --hlsl-dx-position-w option
This reciprocates the w component of SV_Position in HLSL fragment shaders
to provide DirectX compatibility for HLSL shaders in Vulkan.
Fixes #2244
-
74b0abb9
by Greg Fischer
at 2021-11-17T09:55:17-07:00
Merge pull request #2825 from greg-lunarg/i2244
Add --hlsl-dx-position-w option
-
0d468a7e
by Greg Fischer
at 2021-11-17T15:26:19-07:00
Merge pull request #2824 from alan-baker/update-tools
Update SPIRV-Tools
-
cbab7329
by Kevin McCullough
at 2021-11-17T14:28:16-08:00
Fix issue with separable shader validation in iomapper
-
eebb48f5
by Malcolm Bechard
at 2021-11-17T18:11:10-05:00
remove unneeded extra constructions now that pool allocation is fixed
-
bee91eb4
by Rex Xu
at 2021-11-18T20:17:04+08:00
Fix an issue of spirv_type used in local variable definitions
We previously use createOp() in SPV builder to create type declaration.
However, all type declarations should be placed in const-type-variable
declaration section. And duplicated type defintions ought to be avoided.
We now make a method in SPV builder to perform this operation with a
more general solution: makeGenericType().
-
a0c7b6fe
by Greg Fischer
at 2021-11-18T10:18:22-07:00
Merge pull request #2811 from mbechard/master
remove unneeded extra constructions now that pool allocation is fixed
-
dd83c37b
by Greg Fischer
at 2021-11-18T11:20:02-07:00
Merge pull request #2826 from amdrexu/bugfix
Fix an issue of spirv_type used in local variable definitions
-
2c54c208
by Greg Fischer
at 2021-11-19T15:19:27-07:00
Merge pull request #2782 from kevin-mccullough/FixIomapperSeperableShaderValidation
Fix issue with separable shader validation in iomapper
-
3e9e60af
by Rex Xu
at 2021-11-22T21:33:36+08:00
Remove the test spv.intrinsicsSpecConst
According to current SPIR-V spec, we couldn't write a valid case that
references OpExecutionModeId and OpDecorateId.
-
7efa90e5
by Greg Fischer
at 2021-11-22T10:36:12-07:00
Merge pull request #2829 from amdrexu/bugfix2
Remove the test spv.intrinsicsSpecConst
-
a40e4ac3
by Greg Fischer
at 2021-11-22T10:39:03-07:00
Merge branch 'master' into textureQueryLOD
-
7a0b9b21
by Greg Fischer
at 2021-11-22T15:21:33-07:00
Merge pull request #2723 from ZhiqianXia/textureQueryLOD
Support the textureQueryLOD at #extension GL_ARB_texture_query_lod.
-
509a3921
by Jeremy Hayes
at 2021-11-22T15:57:03-07:00
Migrate travis to github actions
-
fe54126c
by Rex Xu
at 2021-11-23T16:40:45+08:00
Fix an issue of spirv_by_reference
When using this qualifier for a parameter, we make it as a pointer.
However, the function TranslateStorageClass() is therefore called and
the storage class should only be set to Function when it is invoked
to translate parameter types rather than actual argument types.
-
042aaea5
by Greg Fischer
at 2021-11-23T13:39:57-07:00
Merge pull request #2831 from amdrexu/bugfix
Fix an issue of spirv_by_reference
-
69f9dce7
by Greg Fischer
at 2021-11-24T11:52:08-07:00
Merge branch 'master' into GL_ARB_fragment_coord_conventions
-
083bdc83
by Greg Fischer
at 2021-11-24T14:16:45-07:00
Merge pull request #2720 from ZhiqianXia/GL_ARB_fragment_coord_conventions
Support the #extension GL_ARB_fragment_coord_conventions.
-
6c1db7fd
by Rex Xu
at 2021-11-25T16:24:37+08:00
Fix validation failures of test cases regarding GL_EXT_spirv_intrinsics
1. The test cases of OpReadClockKHR is invalid. The return type is
unsigned integer rather than signed integer.
2. When SPIR-V decorate or SPIR-V type is specified, we should avoid
auto location mapping because the semantics are totally decided by
SPIR-V tokens.
-
0bdfc73e
by Greg Fischer
at 2021-11-29T14:20:51-07:00
Merge pull request #2832 from amdrexu/bugfix
Fix validation failures of test cases regarding GL_EXT_spirv_intrinsics
-
febbeb4f
by Hai Nguyen
at 2021-11-29T14:23:01-07:00
Support for automap options and resource binding shift (#2834)
* Support for automap options
- Added glslang_shader_options_t with enums for auto map bindings and
auto map locations.
- Added options param to glslang_shader_parse.
- Modified glslang_shader_parse to call appropriate auto map function if
auto map bits are set.
* Refactored auto map for C interface
- Added glslang_shader_set_options to independently set options instead
of being a param on an existing function.
- Added glslang_program_map_io to call mapIO so auto map location
actually works.
* Added support for shifting resource bindings
- Added resource binding shift functions to match C++ interface
* Uncommented preprocessor call that was commented out for debugging
-
b8dfe134
by Hai Nguyen
at 2021-11-30T04:55:25-05:00
Vulkan rules relaxed for glslang C interface
- Added vulkan_rules_relaxed flag to glslang_input_t to turn on Vulkan
rules relaxed during shader creation.
-
0e139686
by Greg Fischer
at 2021-11-30T14:10:58-07:00
Merge pull request #2830 from jeremy-lunarg/hayes-migrate-travis-to-github-actions
Migrate travis to github actions
-
f66fb401
by Hai Nguyen
at 2021-12-01T03:55:59-05:00
Changed Vulkan rules relaxed to use shader options
- Removed vulkan_rules_relaxed from glslang_input_s
- Added GLSLANG_SHADER_VULKAN_RULES_RELAXED to glslang_shader_options_t
- Modified glslang_shader_set_options to handle new enum value
- Corrected enum value for GLSLANG_SHADER_AUTO_MAP_LOCATIONS
-
58fe3a02
by Hai Nguyen
at 2021-12-01T12:32:02-05:00
Fixed copy/paste error
-
2b3309aa
by Jeremy Hayes
at 2021-12-01T11:40:11-07:00
Remove unnecessary badge
I had copy/pasted this badge without really thinking about it's
usefulness. It is unnecessary.
-
ec5ea2d6
by Greg Fischer
at 2021-12-02T09:48:16-07:00
Merge pull request #2838 from jeremy-lunarg/hayes-remove-badge
Remove unnecessary badge
-
e306f029
by Ashwin Lele
at 2021-12-06T13:09:03-08:00
Do not output location decoration for certain variables in ray tracing storage
classes.
-
fbb39aa4
by Greg Fischer
at 2021-12-07T15:34:52-07:00
Fix --hlsl-dx-position-w to work for SV_Position embedded in struct
Fixes #2244
-
2dff16cd
by Greg Fischer
at 2021-12-07T16:10:28-07:00
Merge pull request #2841 from greg-lunarg/i2244a
Fix --hlsl-dx-position-w to work for SV_Position embedded in struct
-
542ee69d
by Greg Fischer
at 2021-12-07T16:12:05-07:00
Merge pull request #2836 from chaoticbob/vulkan_rules_relaxed
Vulkan rules relaxed for glslang C interface
-
ca139512
by Greg Fischer
at 2021-12-09T11:45:32-07:00
Merge pull request #2840 from alelenv/no_location2
Do not output location decoration for certain variables in ray tracing storage classes.
-
a0f98ad4
by Greg Fischer
at 2021-12-16T13:44:54-07:00
Pickup header for SPIR-V 1.6
-
ed37354f
by Greg Fischer
at 2021-12-16T14:48:18-07:00
Merge pull request #2844 from greg-lunarg/hdr1.6
Pickup header for SPIR-V 1.6
-
7a49192d
by Greg Fischer
at 2021-12-16T15:01:42-07:00
Add support for spirv1.6
Add command line support which enables the following behavior:
- Remap discard
Map discard to DemoteToHelperInvocation for HLSL shaders. Map to
OpTerminateInvocation for GLSL shaders.
- Decorate HelperInvocation with Volatile
- Use localSizeId for execution mode
WorkGroupSize is deprecated in spirv1.6
Also update known goods to SPIRV 1.6
-
9b20b251
by Greg Fischer
at 2021-12-16T15:32:54-07:00
Merge pull request #2845 from greg-lunarg/sup1.6
Add support for spirv1.6
-
46466be0
by Jeremy Hayes
at 2021-12-28T17:09:57-07:00
Fix seg fault
Check types before accessing typeName.
Fix #2848.
-
97833802
by Yilong Li
at 2022-01-01T15:15:25-08:00
build: Make action targets hermetic
Fuchsia GN build requires all "action" targets to be
hermetic, and they should correctly and fully state
their inputs and ouptuts in "sources" and "outputs"
fields (see https://fuchsia.dev/fuchsia-src/development/build/hermetic_actions
for details).
This change adds "sources" field to "glslang_extension_headers"
build target so that it states all its input files in its
GN target build rule.
TEST=fx set workstation.x64 --args=build_should_trace_actions=true
fx build
Bug: 90846
Change-Id: I63bd5d03cee86d93b0bb7cf2cee95c5ae0d98f93
-
950c6ddc
by Greg Fischer
at 2022-01-03T16:39:45-07:00
Merge pull request #2849 from jeremy-lunarg/hayes-fix-issue-2848
Fix seg fault
-
df609a01
by Greg Fischer
at 2022-01-03T17:57:38-07:00
Merge pull request #2800 from mhillenbrand/string_literal_endianness
Fix encoding/decoding of string literals for big-endian systems
-
1b01aaaf
by ZhiqianXia
at 2022-01-04T10:40:04+08:00
EndStreamPrimitive not supported when there is #extension GL_ARB_gpu_shader5
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
-
294c8f1d
by Jeremy Hayes
at 2022-01-04T19:55:41-07:00
Fix GCC sign-compare warnings
-
95e15366
by Jeremy Hayes
at 2022-01-04T21:24:05-07:00
Unblock unsized error from assert
Fix issue #2846.
-
35150804
by Greg Fischer
at 2022-01-05T11:30:08-07:00
Merge pull request #2857 from jeremy-lunarg/hayes-fix-warnings
Fix GCC sign-compare warnings
-
17232d21
by Greg Fischer
at 2022-01-05T11:34:32-07:00
Merge pull request #2847 from jeremy-lunarg/hayes-fix-issue-2846
Unblock unsized error from assert
-
0a59dd51
by ZhiqianXia
at 2022-01-07T13:50:30+08:00
Support the floatBitsToint function at GL_ARB_gpu_shader5 Extension.
-
c0a322f5
by Greg Fischer
at 2022-01-07T14:38:42-07:00
Merge pull request #2859 from ZhiqianXia/floatBitsToInt
Support the floatBitsToint function at GL_ARB_gpu_shader5 Extension.
-
f1cc215e
by scribam
at 2022-01-09T22:30:11+01:00
Override CMAKE_INSTALL_PREFIX only if ENABLE_GLSLANG_INSTALL is ON
-
5944f672
by Alan Baker
at 2022-01-10T10:38:49-05:00
Add missing license to LICENSE.txt
* This license is used by:
* SPIRV/GLSL.ext.AMD.h
* SPIRV/GLSL.ext.EXT.h
* SPIRV/GLSL.ext.KHR.h
* SPIRV/GLSL.ext.NV.h
-
bd6e3fb7
by Greg Fischer
at 2022-01-10T11:15:41-07:00
Merge pull request #2865 from alan-baker/update-license
Add missing license to LICENSE.txt
-
364b1698
by Greg Fischer
at 2022-01-10T11:49:19-07:00
Merge branch 'master' into EndStreamPrimitive
-
b8864190
by Greg Fischer
at 2022-01-10T12:27:51-07:00
Merge pull request #2864 from scribam/cmake-install-prefix
Override CMAKE_INSTALL_PREFIX only if ENABLE_GLSLANG_INSTALL is ON
-
57e25195
by Greg Fischer
at 2022-01-10T13:04:15-07:00
Merge pull request #2853 from ZhiqianXia/EndStreamPrimitive
EndStreamPrimitive not supported when there is #extension GL_ARB_gpu_shader5
-
66ac0df6
by Nicolas Morales
at 2022-01-11T11:41:44+01:00
#2861: Check for macOS systems before adding "--no-undefined" to linker flags as it is not compatible with the default linker.
-
ab87ffe7
by Nicolas Morales
at 2022-01-11T11:41:44+01:00
#2861: If compiling with macOS and GCC, default ENABLE_PCH to false since CMake will generate incompatible Xarch flags for the precompiled headers
-
109b31aa
by Greg Fischer
at 2022-01-11T11:42:11-07:00
Merge pull request #2862 from n-morales/2861-macos-gcc-build-failures
#2861 macos gcc build failures
-
140a76a4
by Greg Fischer
at 2022-01-11T13:13:50-07:00
Temporarily disable spirv1.6 tests
These tests will be re-enabled when a Vulkan version is released that
supports spirv1.6.
Fixes #2858
-
43d40e80
by Greg Fischer
at 2022-01-11T14:36:01-07:00
Merge pull request #2866 from greg-lunarg/i2858
Temporarily disable spirv1.6 tests
-
d465ac12
by Ben Clayton
at 2022-01-13T12:14:34+00:00
Update LICENSE.txt
Expand the GPL 3 with special bison exception to the fully expanded license.
Required for Google's updated license checker.
-
0108966b
by Greg Fischer
at 2022-01-13T14:35:16-07:00
Merge pull request #2868 from ben-clayton/patch-1
Update LICENSE.txt
-
6624e136
by Greg Fischer
at 2022-01-13T14:36:29-07:00
Merge pull request #2852 from gnoliyil/fuchsia
build: Make action targets hermetic
-
ed5f33e6
by Greg Fischer
at 2022-01-25T13:40:07-07:00
Fix comment for setEnvInput()
Specifically, add text to clarify dialect and dialectVersion
Fixes #2872
-
81cc10a4
by Greg Fischer
at 2022-01-25T17:44:03-07:00
Merge pull request #2873 from greg-lunarg/i2872
Fix comment for setEnvInput()
-
9ebd8ff6
by Greg Fischer
at 2022-01-26T17:57:31-07:00
Add Vulkan 1.3 support
Also update known goods to Vulkan 1.3 support
Also re-enable SPIR-V 1.6 tests with vulkan1.3 target
Also re-cache SPIRV 1.6 header which somehow regressed back to 1.5
-
1978f2b3
by Greg Fischer
at 2022-01-27T10:09:36-07:00
Merge pull request #2876 from greg-lunarg/vulkan-1.3
Add Vulkan 1.3 support
-
69565b18
by Greg Fischer
at 2022-01-27T11:51:04-07:00
Fix size_t to int warning
-
a7aae72e
by Greg Fischer
at 2022-01-27T12:13:43-07:00
Merge pull request #2878 from greg-lunarg/vulkan-1.3-A
Fix size_t to int warning
-
9448de56
by Greg Fischer
at 2022-01-27T12:23:47-07:00
Release 11.8.0
-
c34bb3b6
by Greg Fischer
at 2022-01-27T13:21:18-07:00
Merge pull request #2879 from greg-lunarg/vulkan-1.3-B
Release 11.8.0
-
b8338311
by Malcolm Bechard
at 2022-01-28T23:38:56-05:00
fix cases where symbols in the tree didn't get updated during block merging
For GL_EXT_vulkan_glsl_relaxed. When merging the default uniform block,
there were cases where symbols in the tree wern't updated to match the
new block structure after merging blocks together.
This change traverses the symbol tree and updates any references to the
merged block.
-
ca0d54d5
by Greg Fischer
at 2022-02-01T12:10:08-07:00
Enhance readability of error messages for GLSL
Specifically, make GLSL link error messages more specific and output
only information relevant to the error.
Also change type printing to more closely reflect GLSL syntax. This
is the default for link error messages, but must me enabled with the
new option --enhanced-msgs for compilation error messages.
Also with --enhanced-msgs, only emit one error message per source
line.
-
3005da6e
by Greg Fischer
at 2022-02-01T15:46:25-07:00
Merge pull request #2874 from mbechard/master
fix cases where symbols in the tree didn't get updated during block merging
-
16e3b403
by Greg Fischer
at 2022-02-01T15:47:19-07:00
Merge pull request #2883 from greg-lunarg/link2
Enhance readability of error messages for GLSL
-
acd4425a
by Greg Fischer
at 2022-02-02T18:37:43-07:00
Update spirv-tools known good
Picking up some spirv-tools bug fixes
-
2742e959
by Greg Fischer
at 2022-02-03T09:26:44-07:00
Merge pull request #2885 from greg-lunarg/kg121
Update spirv-tools known good
-
6b412da6
by Timo Aaltonen
at 2022-02-16T15:03:34+02:00
Merge branch 'upstream-unstable' into debian-unstable
-
5c8ea07f
by Timo Aaltonen
at 2022-02-16T15:05:17+02:00
version bump
-
3f0b3dd0
by Timo Aaltonen
at 2022-02-16T15:07:27+02:00
control: Bump dependencies on spirv-tools.
-
50b684c7
by Timo Aaltonen
at 2022-02-16T15:10:48+02:00
control: Bump debhelper-compat to 13, policy to 4.6.0.
-
f32f7819
by Timo Aaltonen
at 2022-02-16T15:11:05+02:00
release to sid.