Kai Angulo
4007f85d8d
fix: add semantic comparison when comparing symbols
2024-10-28 22:17:31 -07:00
Kai Angulo
ee04ba0786
feat: add option to map unused uniforms
2024-10-28 00:05:51 -07:00
Kai Angulo
5aa896ae05
feat: add missing c++ API functions to C API
...
add glslang_shader_add_source_text()
add glslang_shader_set_source_file()
add GLSLANG_SHADER_HLSL_IO_MAPPING
add GLSLANG_SHADER_HLSL_FLATTEN_UNIFORM_ARRAYS
2024-10-27 23:57:59 -07:00
Kai Angulo
8838252618
refactor: move invert Y from glslang_input_t to shader_set_options
2024-10-27 23:41:51 -07:00
Kai Angulo
da82563c92
feat: add hlsl_functionality_1 to c interface options
2024-10-25 02:18:04 -07:00
Kai Angulo
e9f840ca11
fix bad invert Y option
2024-10-24 21:36:41 -07:00
Kai Angulo
aeee736b0f
fix: windows shard library builds
2024-10-24 12:57:44 -07:00
Kai Angulo
aa0a58d186
Revert revert
2024-10-24 01:51:59 -07:00
Kai Angulo
0db4d1e2aa
fix: remove duplicate function defines in glslang_c_interface
2024-10-24 01:51:30 -07:00
Kai Angulo
515d0965b0
fix: update build.zig
2024-10-24 01:51:15 -07:00
Kai Angulo
5044ec9c2f
Revert "Convert keyword maps to static initializers"
...
This reverts commit dc1012140e
2024-10-23 23:56:39 -07:00
Kai Angulo
413a51ee6d
build: update glslang to latest version
2024-10-23 23:26:46 -07:00
Kai Angulo
3be328b820
feat: add process logs to minimal test
2024-10-23 23:24:05 -07:00
Kai Angulo
0ecaf43ec6
fix: switch bool to int in glslang C interface
2024-10-22 23:39:48 -07:00
Kai Angulo
6cbc4e84f4
fix: update build.zig
2024-10-22 23:39:08 -07:00
Charles Giessen
0d26b9d6d6
Update to macOS-13 in github actions runners
2024-10-18 17:33:21 -04:00
dependabot[bot]
2bfc7cadbd
Bump actions/upload-artifact from 4.4.0 to 4.4.3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4.4.0 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](50769540e7...b4b15b8c7c )
---
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-10-14 12:41:01 -04:00
dependabot[bot]
c764a1c25e
Bump lukka/get-cmake from 3.30.4 to 3.30.5
...
Bumps [lukka/get-cmake](https://github.com/lukka/get-cmake ) from 3.30.4 to 3.30.5.
- [Release notes](https://github.com/lukka/get-cmake/releases )
- [Commits](582a9f5c6f...b516803a3c )
---
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-10-14 12:15:46 -04:00
dependabot[bot]
fc9cfc25e5
Bump github/codeql-action from 3.26.11 to 3.26.12
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.11 to 3.26.12.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](6db8d6351f...c36620d31a )
---
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-10-14 11:56:09 -04:00
Kai Angulo
8a7560f24a
build: add generated-include files
2024-10-12 22:31:22 -07:00
Kai Angulo
22571ddc60
feat: improve generation and add source downloader
2024-10-12 22:31:02 -07:00
Sven van Haastregt
e61d7bb300
Fix Wformat warnings for printf %p
...
The `%p` specifier expects a void pointer argument, so explicitly cast
to `void *`.
No functional changes.
Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
2024-10-11 08:35:25 -04:00
Daniel Story
2acc4ea002
Add link-time cross stage optimization test
2024-10-08 15:02:14 -04:00
Daniel Story
05559a2963
Implement optional link-time cross stage optimization
2024-10-08 15:02:14 -04:00
dependabot[bot]
9d00d6d6ca
Bump lukka/get-cmake from 3.30.3 to 3.30.4
...
Bumps [lukka/get-cmake](https://github.com/lukka/get-cmake ) from 3.30.3 to 3.30.4.
- [Release notes](https://github.com/lukka/get-cmake/releases )
- [Commits](070a0507a7...582a9f5c6f )
---
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-10-07 12:49:22 -04:00
dependabot[bot]
7430f863c0
Bump github/codeql-action from 3.26.9 to 3.26.11
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.9 to 3.26.11.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](461ef6c76d...6db8d6351f )
---
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-10-07 12:48:48 -04:00
Sajjad Mirza
f69d2768e5
Use line and column from node on DebugLexicalBlock.
...
* Fix bug in TestFixture.h, debug info gets enabled when nonsemantic debug info is requested.
2024-10-04 14:11:27 -04:00
Arcady Goldmints-Orlov
48f63fe4b3
Propagate errors from symbol table init
...
Fixes #580
2024-10-04 14:01:46 -04:00
Sven van Haastregt
4e91335863
Remove extra semicolons
...
Fix various "extra ';'" compiler warnings.
No functional changes.
Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
2024-10-04 11:57:17 -04:00
dependabot[bot]
a729c86d78
Bump actions/checkout from 4.1.7 to 4.2.0
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](692973e3d9...d632683dd7 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 15:35:47 -04:00
dependabot[bot]
c694f28df2
Bump github/codeql-action from 3.26.8 to 3.26.9
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.8 to 3.26.9.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](294a9d9291...461ef6c76d )
---
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-09-30 15:17:07 -04:00
Jeff Bolz
ca04c2a16a
Fix nonsemantic debuginfo line attribution for cooperative matrix
...
* Generate debuginfo for coopmat types, treating them as an opaque composite. Restore the debug source location after calling convertGlslangToSpvType, fixes the line info in this unit test
* Add a cooperative matrix test case, based on the shader from https://github.com/jeffbolznv/vk_cooperative_matrix_perf/blob/master/shaders/shmem.comp
2024-09-30 13:53:27 -04:00
Jeremy Hayes
46ef757e04
Update CHANGES for 15.0.0
2024-09-25 19:10:44 -04:00
Malcolm Bechard
4a9f088915
a few more tweaks for #3681
...
expose TIoMapper::setAutoPushConstantBlock()
add overload for MapToSpirvToolsEnv() that takes TIntermediate instead of SpvVersion.
2024-09-25 11:17:35 -04:00
dependabot[bot]
96899e0f47
Bump github/codeql-action from 3.26.7 to 3.26.8
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.7 to 3.26.8.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](8214744c54...294a9d9291 )
---
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-09-23 13:46:34 -04:00
Arcady Goldmints-Orlov
15ebcea676
Print an error when SPIR-V is requested and ENABLE_SPIRV=0 is set
...
This case fails slightly less silently now.
Also make ENABLE_OPT depend on ENABLE_SPIRV, since when there's no
SPIR-V optimization doesn't really make sense.
2024-09-23 13:19:01 -04:00
Jeremy Hayes
467ce01c71
Update known_good.json
2024-09-23 12:20:38 -04:00
Shahbaz Youssefi
3e7831ba12
Fix SPIR-V support in GN build
...
The cmake build recently got ENABLE_SPIRV which is enabled by default.
This was missing from the GN build, accidentally removing SPIR-V support
in this build.
2024-09-20 17:19:02 -04:00
Arcady Goldmints-Orlov
c5b76b78c9
Add CI testing for shared library builds
...
Testing is disabled on Windows for now due to DLL search path issues.
2024-09-19 17:26:52 -04:00
Arcady Goldmints-Orlov
3dde7d5fa8
cmake: Fix symbol visibility on Linux.
...
Use the correct cmake property to set hidden visibility for shared
libraries.
2024-09-19 17:26:52 -04:00
Arcady Goldmints-Orlov
ec7e23f458
Final round of symbol visibility fixes
...
This change adds GLSLANG_EXPORT in a couple more places, as well as
adding a new symbol visibility annotation GLSLANG_EXPORT_FOR_TESTS which
is defined the same as GLSLANG_EXPORT but documents the intention that
the symbols marked with it are only meant to be used by glslang's test
suite and do not form part of the public API and are thus not subject to
ABI stability guarantees.
2024-09-19 17:26:52 -04:00
Yuxin Hu
d7a3dc619e
Fix gn build error
...
After commit d7d5ab8 , projects based on
gn builds failed when running command:
gn gen out/<BUILDDIR> --check
```
ERROR at //third_party/glslang/src/glslang/Public/ResourceLimits.h:41:11: Include not allowed.
^----------------------
It is not in any dependency of
//third_party/glslang/src:glslang_default_resource_limits_sources
```
Add the visibility.h to the build target
glslang_default_resource_limits_sources
to fix the error.
2024-09-19 10:23:14 -04:00
dependabot[bot]
e611e99037
Bump github/codeql-action from 3.26.6 to 3.26.7
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.6 to 3.26.7.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](4dd16135b6...8214744c54 )
---
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-09-17 10:56:37 -06:00
Andrei Alexeyev
9213cbd310
Expose setResourceSetBinding() method to the C API
2024-09-17 10:56:10 -06:00
Arcady Goldmints-Orlov
02bc074ac4
Update tests to use the new iomapper interface
...
This updates the test to use the new public GetGlslIoMapper() and
TProgram::getGlslIoResolver() entry points, instead of depending on
internal points that are not available in shared library builds.
2024-09-13 18:32:24 -06:00
Arcady Goldmints-Orlov
d081b4d8c6
Add an interface to get the GLSL IO mapper and resolver
...
The TProgram::mapIO method takes a TIoMapResolver and a TIoMapper,
however the only way to obtain instances of these was from methods in
iomapper.h. Rather than try to expose that header as part of the API,
new methods are added to the public ShaderLang.h header to create a
TDefaultGlslIoResolver and a TGlslIoMapper and return them as pointers
to their respective base classes, which are defined in the public
header.
2024-09-13 18:32:24 -06:00
Arcady Goldmints-Orlov
8bd9083bec
Revert "Add MachineIndependent/iomapper.h to the list of installed headers."
...
This reverts commit b618604e77 .
2024-09-13 18:32:24 -06:00
Arcady Goldmints-Orlov
36ccaa31bd
Explicitly export symbols from libSPVRemapper
...
Windows requires symbols to be explicitly exported from DLLs, this
change simply marks the entire spirvbin_t class as exported.
The macros from visibility.h are included inline to get around include
path issues.
2024-09-13 07:28:49 -07:00
Arcady Goldmints-Orlov
d7d5ab8f8a
Add symbol visibility annotations to glslang-resource-limits library
...
Among other things, this allows using it as a DLL on Windows.
2024-09-12 14:34:55 -07:00
Jeff Bolz
708d560c23
Allow compute derivative modes when the workgroup dimensions are spec constants
2024-09-12 11:14:23 -07:00