dependabot[bot]
f857417c99
Bump hendrikmuhs/ccache-action from 1.2.12 to 1.2.13
...
Bumps [hendrikmuhs/ccache-action](https://github.com/hendrikmuhs/ccache-action ) from 1.2.12 to 1.2.13.
- [Release notes](https://github.com/hendrikmuhs/ccache-action/releases )
- [Commits](faf867a11c...c92f40bee5
)
---
updated-dependencies:
- dependency-name: hendrikmuhs/ccache-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 11:51:53 -04:00
dependabot[bot]
56b4edec35
Bump actions/upload-artifact from 4.3.2 to 4.3.3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4.3.2 to 4.3.3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](1746f4ab65...65462800fd
)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 11:51:12 -04:00
dependabot[bot]
1fc07b5d61
Bump github/codeql-action from 3.25.1 to 3.25.3
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.25.1 to 3.25.3.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](c7f9125735...d39d31e687
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 11:50:57 -04:00
jimihem
44fcbccd06
location aliasing ( #3438 )
...
* location aliasing
when location aliasing, the aliases sharing the location must have the same underlying numerical type
(floating-point or integer) and the same auxiliary storage and interpolation qualification.
The following case, glslang need report error.
layout(vertices = 1) out;
layout (location = 1, component = 0) in double gohan[];
layout (location = 1, component = 2) in float goten[];
in vec4 vs_tcs[];
out vec4 tcs_tes[];
void main()
{
}
* Need consider the following case: location aliasing with different interpolation qualifier.
2024-04-26 12:05:08 -04:00
Arcady Goldmints-Orlov
9337143313
Increase the TIntermediate::usedIo array
...
In 0bbec2e8f
, the code started using usedIo[4], however it never
increased the size of the array to make that index actually valid.
2024-04-26 11:19:09 -04:00
assiduous
b5672e8e8d
readme: added a note about STACK_SIZE Emscripten compiler setting
2024-04-23 19:08:45 -04:00
Wooyoung Kim
a4f870053f
A couple of fixes to the GL_QCOM_image_processing2 support ( #3578 )
...
1) handle the extension requirements of GL_QCOM_image_processing2
correctly
2) add QCOM image processing decorations to ids only once.
2024-04-23 18:34:51 -04:00
Herman Semenov
b9b8fd917b
Using reserve() in GlslangToSpv
2024-04-22 11:52:16 -04:00
Pavel Asyutchenko
e46c1b725c
Keep vec1.x l-value in HLSL
...
Changes in hlsl.shapeConv.frag are just renumbering,
duplicated load (80) has disappeared for whatever reason.
2024-04-22 11:50:37 -04:00
dependabot[bot]
d4d821272b
Bump github/codeql-action from 3.24.10 to 3.25.1
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.24.10 to 3.25.1.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](4355270be1...c7f9125735
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 11:50:16 -04:00
dependabot[bot]
d91ca31132
Bump actions/upload-artifact from 4.3.1 to 4.3.2
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](5d5d22a312...1746f4ab65
)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 11:49:53 -04:00
dependabot[bot]
ce24426fbb
Bump actions/checkout from 4.1.2 to 4.1.3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](9bb56186c3...1d96c772d1
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 11:49:32 -04:00
jimihem
68df223056
index outside gl_SampleMask range, compiler need report error. ( #3556 )
2024-04-17 20:14:26 -04:00
Pavel Asyutchenko
593dbafd0d
Better follow HLSL offsets rules ( #3575 )
...
Matrices consuming one vector are treated like vectors for alignment, and
there is no "trailing padding" for matrices and arrays.
2024-04-17 19:34:28 -04:00
dependabot[bot]
9001ec9aa5
Bump lukka/get-cmake from 3.29.1 to 3.29.2
...
Bumps [lukka/get-cmake](https://github.com/lukka/get-cmake ) from 3.29.1 to 3.29.2.
- [Release notes](https://github.com/lukka/get-cmake/releases )
- [Commits](b111a57714...4931ab1fc1
)
---
updated-dependencies:
- dependency-name: lukka/get-cmake
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 18:34:29 -04:00
Arcady Goldmints-Orlov
05ba15169e
Update the README-spirv-remap.txt
...
Update the "feedback" section with the new preferred feedback channel.
2024-04-15 20:26:17 -04:00
David Neto
dba720ff94
Adjust hlsl infinity-constant test
...
Test/hlsl.inf.vert tests parsing and some constant math on
infinities, including (-1.#INF * 0.0).
By IEEE 754 rules, that result is a NaN, but its sign is not significant.
The test output assumes a negative-NaN is in the generated SPIR-V.
However, the math library on some platforms (like macOS 14, a.k.a.
Sonoma) will produce a positive NaN instead.
This PR adjusts the test so it takes the absolute value of the NaN,
to ensure we the emitted SPIR-V has the NaN with a 0 for it sign bit.
2024-04-15 18:30:28 -04:00
alan-baker
1e4f53ab2d
Prevent duplicate SPIR-V decorations ( #3570 )
...
* Update SPIRV-Tools
* https://github.com/KhronosGroup/SPIRV-Tools/pull/5641 added
validation that caught errors
* Modified glslang to prevent duplicate Restrict and Coherent
decorations
* Modify createConstructor to avoid adding duplicate RelaxedPrecision
decorations when generating a scalar
2024-04-15 11:39:23 -04:00
Herman Semenov
2db79056b4
Maximum optimization inserts using reserve() for operands
2024-04-11 15:10:58 -04:00
dependabot[bot]
d52749714a
Bump lukka/get-cmake from 3.29.0 to 3.29.1
...
Bumps [lukka/get-cmake](https://github.com/lukka/get-cmake ) from 3.29.0 to 3.29.1.
- [Release notes](https://github.com/lukka/get-cmake/releases )
- [Commits](9438b96ac9...b111a57714
)
---
updated-dependencies:
- dependency-name: lukka/get-cmake
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-09 14:26:48 -04:00
dependabot[bot]
188ec80dc5
Bump github/codeql-action from 3.24.9 to 3.24.10
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.24.9 to 3.24.10.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](1b1aada464...4355270be1
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-09 14:26:10 -04:00
dependabot[bot]
8a3ea594c7
Bump actions/setup-python from 5.0.0 to 5.1.0
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](0a5c615913...82c7e631bb
)
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01 18:00:41 -04:00
“jimihe”
ac5341fe91
Add a test for floating point exponent overflow
...
This adds a test with a floating point exponent that can't fit into a
32-bit int.
2024-04-01 17:58:50 -04:00
Arcady Goldmints-Orlov
d24cda64d1
Check for exponent overflow in float parser
...
Even for a double precision float, the largest valid exponent is 308, so
clamp exponents to 500 when parsing to avoid overflow of the parsed
exponent value if the exponent is too big.
2024-04-01 17:58:50 -04:00
Samuel Bourasseau
0015dc9345
Branch out of relaxed rules on opaque arguments declared at top-level ( #3558 )
2024-03-29 19:40:26 -04:00
dependabot[bot]
8c0199c4fd
Bump github/codeql-action from 3.24.7 to 3.24.9
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.24.7 to 3.24.9.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](3ab4101902...1b1aada464
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 11:25:19 -04:00
dependabot[bot]
77c4d12792
Bump lukka/get-cmake from 3.28.3 to 3.29.0
...
Bumps [lukka/get-cmake](https://github.com/lukka/get-cmake ) from 3.28.3 to 3.29.0.
- [Release notes](https://github.com/lukka/get-cmake/releases )
- [Commits](139aae9631...9438b96ac9
)
---
updated-dependencies:
- dependency-name: lukka/get-cmake
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 11:25:04 -04:00
Rex Xu
3225778615
Fix an issue of getExtBuiltins()
...
This function is used to import SPIR-V extended instruction set. It
mistakenly treated the name of SPIR-V extended instruction set as the
name of SPIR-V extension. For example, when we have such code
getExtBuiltins("NonSemantic.DebugBreak")
'NonSemantic.DebugBreak' is added to SPIR-V extension. Rather, the
SPIR-V extension name should be 'SPV_KHR_non_semantics_info'. Therefore,
we must avoid this since the name of SPIR-V extended instruction set is
not necessarily equal to that of relevant SPIR-V extension. Adding a
SPIR-V extension must be done by calling addExtension() explicitly
outside this function.
This change also fixes disassembly issues of debugBreak().
2024-03-22 12:35:30 -04:00
Rex Xu
022aea431c
Fix issues of the interaction between cooperative_matrix and spirv_intrinsics
...
coopmat<> type definition allows type parameters. To make it accept
types defined by spirv_type directive, we add spirvType info to the type
parameters. This change is to support this case. And a test is added to
show the missing usage.
2024-03-21 11:09:00 -04:00
Wooyoung Kim
10ee92feb0
Support for SPV_QCOM_image_processing2 ( #3539 )
2024-03-20 18:56:00 -04:00
Arcady Goldmints-Orlov
be0d1cb452
build: fix CI sanitizer failures
...
This is needed because newer linux kernels cause problems for the
sanitizers.
2024-03-19 15:43:53 -04:00
dependabot[bot]
b047a21033
Bump github/codeql-action from 3.24.6 to 3.24.7
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.24.6 to 3.24.7.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](8a470fddaf...3ab4101902
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18 18:41:45 -04:00
dependabot[bot]
303467ae4e
Bump actions/checkout from 4.1.1 to 4.1.2
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](b4ffde65f4...9bb56186c3
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18 18:25:15 -04:00
Steve Urquhart
9f37ad360e
Support files with UTF8BOM character
2024-03-13 13:03:10 -04:00
Jeremy Hayes
ee2f5d09ea
Update CHANGES for release 14.1.0
2024-03-08 18:05:56 -05:00
Jeremy Hayes
90b46ffbcb
Update known_good.json
2024-03-08 14:39:13 -07:00
Sharo
d73712b8f6
Add flags for outputting absolute paths for messages ( #3467 )
...
Uses std::filesystem to create absolute paths.
Also adds "shaderFileName" to TSinkBase so it can be used during message
outputs.
2024-03-07 19:02:45 -05:00
Jeremy Hayes
e7d4ad91a9
Increase TStorageQualifier bitfield width
...
Fix #3538 .
Visual Studio 2022 added a new warning to detect when enumerators can
not be represented within the given bit field width. This warning is
disabled by default but can be enabled using the flag /w15249. This PR
increases the width by one to accommodate the signed maximum value of
EvqLast, which is currently 32.
Perhaps a future improvement would be to use scoped enums; however,
that is more work as the typing is more strict and would require more
changes.
2024-03-07 12:27:21 -05:00
Wooyoung Kim
bada5c87ec
GL_EXT_control_flow_attributes2 support. ( #3531 )
...
The actual support has been available with GL_EXT_control_flow_attributes.
This change set is to handle
"#extension GL_EXT_control_flow_attributes2 : <val>"
2024-03-04 16:43:05 -05:00
dependabot[bot]
ad7e719c3b
Bump github/codeql-action from 3.24.5 to 3.24.6
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.24.5 to 3.24.6.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](47b3d888fe...8a470fddaf
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 13:11:12 -05:00
Jeremy Hayes
bf08e1db5c
Fix debug info file and source strings
...
The file and source text was not being set correctly in the test output.
This change makes the test fixture consistent with the command line
behavior, "-gVS", which was my original intent when I added these tests.
2024-03-01 18:08:54 -05:00
Nathaniel Cesario
b0df68c490
Add support for GL_ARB_shading_language_include
...
Add support for GL_ARB_shading_language_include. Usage is identical to
the way GL_GOOGLE_include_directive currently works glslang (since
GL_ARB_shading_language_include is inherently a runtime feature and
glslang is an offline compiler).
Users can simulate their runtime environment by using a custom
glslang::TShader::Includer or using filenames that match their GL
runtime names.
Closes #249 .
2024-02-27 18:26:46 -05:00
dependabot[bot]
fa04cdf355
Bump github/codeql-action from 3.24.3 to 3.24.5
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.24.3 to 3.24.5.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](379614612a...47b3d888fe
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-27 15:56:37 -05:00
Pavel Asyutchenko
2c4348f064
Fix HLSL built-in passthrough via inout
2024-02-26 19:04:23 -05:00
Jeff Bolz
2518af09c8
Change fp16_vector_atomic to not require other SPIR-V atomic extensions
2024-02-22 11:51:25 -05:00
Arcady Goldmints-Orlov
78e5d7976e
cmake: Enable implicit fallthrough warnings for gcc and clang
2024-02-20 19:12:06 -05:00
Arcady Goldmints-Orlov
1fc174387d
Refactor reflection.cpp to silence fallthrough warnings
...
Since assert(0) compiles to nothing on release builds, it's not
sufficient to silence a fallthrough warning. Instead, some switch
statements are changed into if/else and others have the assert(0)
replaced with "return 0".
2024-02-20 19:12:06 -05:00
Arcady Goldmints-Orlov
7ffa289495
Add extra break statements to quiet clang warnings.
...
Clang complains about code that falls through into an empty default
case, so add some breaks to placate it.
2024-02-20 19:12:06 -05:00
Arcady Goldmints-Orlov
606209e07d
Use [[fallthrough]] attribute instead of comments.
...
Now that we require C++17, the [[fallthrough]] attribute is available as
an alternative to load-bearing comments.
2024-02-20 19:12:06 -05:00
Chris Djali
8ca24e7cf1
Remove implicit fallthrough ( #3518 )
...
This is intended so that downstream projects consuming glslang with FetchContent or similar means can use `-Wimplicit-fallthrough` without getting warning spam.
I've used my best judgement to determine whether the implicit fallthrough was desired, or was simply unreachable code.
`std::unreachable` is unavailable until C++23, but I saw places where `default: assert(0);` was used, so copied that.
There were a few places where some code might actually have been reachable and intended to return a value that represented an error, so someone should double check that kind of thing.
2024-02-19 17:45:45 -05:00