Ben Doherty
8d3ee2e8f0
spirv-opt: Fix OpCompositeExtract relaxation with struct operands ( #5536 )
2024-02-01 15:19:02 -07:00
Spencer Fricke
61c51d4baf
spirv-val: Add Mesh Primitive Built-In validaiton ( #5529 )
2024-02-01 14:20:42 -05:00
Natalie Chouinard
5d3c8b73f7
opt: Add OpEntryPoint to DescriptorScalarReplacement pass ( #5553 )
...
Add OpEntryPoint to the list of instructions processed by the
DescriptorScalarReplacement pass. This is necessary for SPIR-V 1.4 and
above where global variables must be included in the interface.
Fixes microsoft/DirectXShaderCompiler#5962
2024-02-01 09:50:36 -05:00
Natalie Chouinard
de65e81740
[NFC] Remove unused code ( #5554 )
2024-02-01 09:47:42 -05:00
Nathan Gauër
ad11927e6c
opt: add SPV_EXT_mesh_shader to opt allowlist ( #5551 )
...
Add this extension to the allowlist, allowing DCE and other
optimizations on modules exposing this.
Note: NV equivalent is already allowed.
2024-01-30 12:13:46 -05:00
dependabot[bot]
27ffe976e0
build(deps): bump the github-actions group with 2 updates ( #5549 )
...
Bumps the github-actions group with 2 updates: [actions/upload-artifact](https://github.com/actions/upload-artifact ) and [github/codeql-action](https://github.com/github/codeql-action ).
Updates `actions/upload-artifact` from 4.2.0 to 4.3.0
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](694cdabd8b...26f96dfa69
)
Updates `github/codeql-action` from 3.23.1 to 3.23.2
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](0b21cf2492...b7bf0a3ed3
)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-30 10:29:19 -05:00
github-actions[bot]
e5fcb7facf
Roll external/re2/ 264e71e88..826ad10e5 (1 commit) ( #5538 )
...
* Roll external/googletest/ 96cd50c08..6a5938233 (4 commits)
96cd50c082...6a5938233b
$ git log 96cd50c08..6a5938233 --date=short --no-merges --format='%ad %ae %s'
2024-01-25 dmauro Add support for Bzlmod for the next release https://bazel.build/external/overview#bzlmod
2024-01-23 absl-team Fix double-promotion warnings in AppropriateResolution()
2024-01-22 dinor googletest: Fix incorrect comment about `value_param` of `internal::MakeAndRegisterTestInfo`
2024-01-10 michael.128.leslie only apply -lregex for qnx710 and newer
Created with:
roll-dep external/googletest
* Roll external/re2/ 264e71e88..826ad10e5 (1 commit)
264e71e88e...826ad10e58
$ git log 264e71e88..826ad10e5 --date=short --no-merges --format='%ad %ae %s'
2024-01-19 junyer Delete an unused function.
Created with:
roll-dep external/re2
* Roll external/spirv-headers/ 5aa1dd8a1..1c9115b56 (1 commit)
5aa1dd8a11...1c9115b562
$ git log 5aa1dd8a1..1c9115b56 --date=short --no-merges --format='%ad %ae %s'
2024-01-26 dneto List all licenses in the root LICENSE file. (#410 )
Created with:
roll-dep external/spirv-headers
---------
Co-authored-by: GitHub Actions[bot] <>
2024-01-29 16:01:06 +00:00
Scott Todd
80bc99c3d4
Skip entire test/ folder if SPIRV_SKIP_TESTS is set. ( #5548 )
...
Without this (or similar filtering), the `spirv-tools_expect_unittests` and `spirv-tools_spirv_test_framework_unittests` Python tests at `test/tools/` get defined even when `SPIRV_SKIP_TESTS` is set.
2024-01-26 16:47:13 -05:00
Natalie Chouinard
0a6f0d1893
opt: Add TrimCapabilities pass to spirv-opt tool ( #5545 )
...
Add an option to the spirv-opt tool to run the TrimCapabilitiesPass.
2024-01-26 16:15:29 -05:00
ruiminzhao
b951948eaa
SPV_KHR_quad_control ( #5547 )
...
* SPV_KHR_quad_control
1. Add two new execute modes: RequireFullQuadsKHR and QuadDerivativesKHR
2. Add two opCodes: OpGroupNonUniformQuadAllKHR and
OpGroupNonUniformQuadAnyKHR
3. Add one Capability: QuadControlKHR
* update DEPS
* Fixes
* Build fixes
* Formatting fixes
* Test fixes
* formatting
---------
Co-authored-by: Alan Baker <alanbaker@google.com>
2024-01-26 15:49:56 -05:00
alan-baker
69197ba90b
Add modify-maximal-reconvergence to spirv-opt help ( #5546 )
2024-01-25 15:53:11 -05:00
Natalie Chouinard
0045b01ff9
opt: Add VulkanMemoryModelDeviceScope to trim ( #5544 )
...
Add the VulkanMemoryModelDeviceScope capability to the capability
trimming pass. According the the spec, "If the Vulkan memory model is
declared and any instruction uses Device scope, the
VulkanMemoryModelDeviceScope capability must be declared." Since this
case, based on the type of an operand, is not covered by the JSON
grammar, it is added explicitly.
2024-01-25 14:05:04 -05:00
alan-baker
ef2f432364
Add support for SPV_KHR_float_controls2 ( #5543 )
...
* Test asm/dis for SPV_KHR_float_controls2
* SPV_KHR_float_controls2 validation
---------
Co-authored-by: David Neto <dneto@google.com>
2024-01-25 10:22:09 -05:00
alan-baker
de3d5acc04
Add tooling support for SPV_KHR_maximal_reconvergence ( #5542 )
...
* Validation for SPV_KHR_maximal_reconvergence
* Add pass to add/remove maximal reconvergence execution mode
---------
Co-authored-by: David Neto <dneto@google.com>
2024-01-25 09:39:49 -05:00
David Neto
14000ad47a
Use python3 explicitly. ( #5540 )
...
Some Linux images don't ship with a plain 'python'
2024-01-23 15:42:34 -05:00
Nathan Gauër
3590129278
workflow: add vulkan-sdk tags as release tags ( #5518 )
...
This workflow creates a new release on the github page. When LunarG
is done with the release, tags are added to the repo.
When this happens, we should publish a release.
Signed-off-by: Nathan Gauër <brioche@google.com>
2024-01-22 16:06:09 -05:00
dependabot[bot]
3e6bdd0f99
build(deps): bump the github-actions group with 3 updates ( #5537 )
...
Bumps the github-actions group with 3 updates: [actions/cache](https://github.com/actions/cache ), [actions/upload-artifact](https://github.com/actions/upload-artifact ) and [github/codeql-action](https://github.com/github/codeql-action ).
Updates `actions/cache` from 3.3.3 to 4.0.0
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](e12d46a63a...13aacd865c
)
Updates `actions/upload-artifact` from 4.1.0 to 4.2.0
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](1eb3cb2b3e...694cdabd8b
)
Updates `github/codeql-action` from 3.23.0 to 3.23.1
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](e5f05b81d5...0b21cf2492
)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-19 10:27:11 -05:00
github-actions[bot]
ed6835aff7
Roll external/re2/ c042630ed..32c181e0a (1 commit) ( #5532 )
...
* Roll external/googletest/ 7c07a8636..96cd50c08 (3 commits)
7c07a86369...96cd50c082
$ git log 7c07a8636..96cd50c08 --date=short --no-merges --format='%ad %ae %s'
2024-01-18 absl-team If GTEST_NO_ABSL_FLAGS is #defined, then the Abseil flag library will not be used by googletest, even if GTEST_HAS_ABSL is #defined.
2024-01-16 absl-team Make posix::FileNo available under !GTEST_HAS_FILE_SYSTEM
2024-01-16 absl-team Do not emit stack traces for messages generated by GTEST_SKIP()
Created with:
roll-dep external/googletest
* Roll external/re2/ c042630ed..264e71e88 (13 commits)
c042630ed8...264e71e88e
$ git log c042630ed..264e71e88 --date=short --no-merges --format='%ad %ae %s'
2024-01-18 junyer Make @local_config_cc visible as a temporary hack.
2024-01-18 junyer Register the local 32-bit C++ toolchain with highest priority.
2024-01-18 junyer Alas, `--extra_execution_platforms` didn't help.
2024-01-18 junyer Attempt to convince Bazel 7 that X64 can build for X86.
2024-01-18 junyer Update @pybind11_bazel to version 2.11.1.bzl.1.
2024-01-16 junyer Print debug information during toolchain resolution.
2024-01-16 junyer Register the local Python toolchain with highest priority.
2024-01-16 junyer Try updating @rules_python to version 0.28.0.
2024-01-16 junyer Revert "Try dropping the CPU constraint values on Windows."
2024-01-16 junyer Try using @apple_support for toolchains on macOS.
2024-01-16 junyer Try dropping the CPU constraint values on Windows.
2024-01-16 junyer Try to get things working again with Bazel 7.
2024-01-15 junyer Try to lock down workflow permissions.
Created with:
roll-dep external/re2
* Roll external/spirv-headers/ bdd1b2ab1..7b0309708 (2 commits)
bdd1b2ab1f...7b0309708d
$ git log bdd1b2ab1..7b0309708 --date=short --no-merges --format='%ad %ae %s'
2024-01-17 robin Register Zig Compiler tool (#405 )
2024-01-17 robin Add a Source Language for Zig (#403 )
Created with:
roll-dep external/spirv-headers
---------
Co-authored-by: GitHub Actions[bot] <>
2024-01-19 10:05:04 -05:00
Spencer Fricke
c96fe8b943
spirv-val: Re-enable OpControlBarrier VU ( #5527 )
2024-01-17 11:18:23 -05:00
dependabot[bot]
5dbdc7b60b
build(deps): bump the github-actions group with 4 updates ( #5531 )
...
Bumps the github-actions group with 4 updates: [actions/cache](https://github.com/actions/cache ), [lukka/get-cmake](https://github.com/lukka/get-cmake ), [actions/upload-artifact](https://github.com/actions/upload-artifact ) and [github/codeql-action](https://github.com/github/codeql-action ).
Updates `actions/cache` from 3.3.2 to 3.3.3
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](704facf57e...e12d46a63a
)
Updates `lukka/get-cmake` from 3.27.9 to 3.28.1
- [Release notes](https://github.com/lukka/get-cmake/releases )
- [Commits](4865386b66...2654d8ee38
)
Updates `actions/upload-artifact` from 3.1.3 to 4.1.0
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](a8a3f3ad30...1eb3cb2b3e
)
Updates `github/codeql-action` from 2.22.8 to 3.23.0
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](407ffafae6...e5f05b81d5
)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: lukka/get-cmake
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-15 10:57:32 -05:00
Steven Perron
155728b2e9
Add preserver-interface option to spirv-opt ( #5524 )
...
The optimizer is able to preserve the interface variables of the
shaders, but that feature has not been exposed to the command line
tool.
This commit adds an option `--preserve-interface` to spirv-opt that will
cause all calls to ADCE to leave the input and output variables, even if
the variable is unused. It will apply regardless of where the option
appears on the command line.
Fixes #5522
2024-01-12 14:45:17 -05:00
github-actions[bot]
01ee1bf317
Roll external/googletest/ b10fad38c..76bb2afb8 (1 commit) ( #5485 )
...
* Roll external/googletest/ b10fad38c..7c07a8636 (12 commits)
b10fad38c4...7c07a86369
$ git log b10fad38c..7c07a8636 --date=short --no-merges --format='%ad %ae %s'
2024-01-09 dmauro Update CI builds to use Bazel 7.0.0
2024-01-09 absl-team Add a note about argv requiring NULL termination.
2024-01-09 krzysio Disable -Wfloat-equal in AppropriateResolution().
2023-12-28 absl-team Accept move-only callables in `InvokeArguments`
2023-12-22 absl-team Minor documentation correction.
2023-12-19 dmauro Fix broken links in primer.md
2023-12-18 absl-team Fix data race in leak detection
2023-12-12 absl-team Add `FAIL_AT` macro variant of `FAIL` matching `ADD_FAILURE`, `ADD_FAILURE_AT`
2023-12-11 tomhughes Remove unnecessary conversion
2023-12-04 dmauro Skip find_package(Python3) when not building tests
2023-12-01 tamas.kenez Allow using external absl and re2.
2023-11-27 absl-team Implement `testing::Rethrow` to throw exceptions more easily via `std::exception_ptr`
Created with:
roll-dep external/googletest
* Roll external/re2/ 7e0c1a9e2..c042630ed (5 commits)
7e0c1a9e24...c042630ed8
$ git log 7e0c1a9e2..c042630ed --date=short --no-merges --format='%ad %ae %s'
2023-12-22 junyer Report `kRegexpBadPerlOp` for look-behind assertions.
2023-12-14 junyer Delete the `AUTHORS` and `CONTRIBUTORS` files.
2023-12-14 junyer We don't need to set `--enable_bzlmod` anymore.
2023-12-12 junyer Fix an old bug that can manifest during factoring.
2023-12-11 olivier.mengue doc/mksyntaxgo: add Go doc links
Created with:
roll-dep external/re2
* Roll external/spirv-headers/ 1c6bb2743..bdd1b2ab1 (5 commits)
1c6bb27435...bdd1b2ab1f
$ git log 1c6bb2743..bdd1b2ab1 --date=short --no-merges --format='%ad %ae %s'
2024-01-10 gleese Reserve an FPFastMathMode bit (#401 )
2024-01-10 49699333+dependabot[bot] Bump the github-actions group with 1 update (#400 )
2024-01-10 89833130+rjodinchr Publish the header for the vulkan-shader-profiler embedded reflection… (#398 )
2024-01-03 dmitry.sidorov Upstream tokens for SPV_INTEL_masked_gather_scatter (#391 )
2024-01-03 joycebrum feat: Create dependabot.yml (#397 )
Created with:
roll-dep external/spirv-headers
---------
Co-authored-by: GitHub Actions[bot] <>
2024-01-11 16:59:38 +00:00
Steven Perron
36be541ee3
Remove unnecessary debug code ( #5523 )
2024-01-11 07:55:04 -08:00
Nathan Gauër
c7affa1707
opt: add Int16 and Float16 to capability trim pass ( #5519 )
...
Add support for Int16 and Float16 trim.
Signed-off-by: Nathan Gauër <brioche@google.com>
2024-01-04 20:01:03 +01:00
Steven Perron
0a9f3d1f2a
Revert "Fix(cmake): CMake doesn't find system installed SPIRV-Headers ( #5422 )" ( #5517 )
...
This reverts commit 7d2429594d
.
2024-01-03 09:55:24 -05:00
technateNG
7d2429594d
Fix(cmake): CMake doesn't find system installed SPIRV-Headers ( #5422 )
...
To build repository version from sources current cmake require
to explicitly clone SPIRV-Headers repository to directory named
'external' with fixed name 'spirv-headers'.
This is a behavior which doesn't support searching global headers and
also CMAKE_PREFIX_PATH which makes development in some environments
less convenient than it should be.
The commit fixes this issue with keeping previous clone option intact.
2024-01-02 10:07:47 -05:00
Nathan Gauër
f0cc85efdb
Prepare release v2023.6 ( #5510 )
...
Signed-off-by: Nathan Gauër <brioche@google.com>
2023-12-20 13:22:56 +01:00
alan-baker
e03c8f5c8e
Fix broken build ( #5505 )
...
Fixes #5503
* SPIRV-Headers name change broke the build
* Update SPIRV-Headers deps and fix
2023-12-11 11:45:10 -05:00
Ben Clayton
d75b3cfbb7
Zero initialize local variables ( #5501 )
...
Certain versions of GCC warn about these variables being potentially uninitialized when used.
I believe this is a false-positive, but zero-init'ing them is a safe way to fix this.
2023-12-11 10:32:45 -05:00
Jeremy Gebben
6b4f0c9d0b
instrument: Fix handling of gl_InvocationID ( #5493 )
...
This is an int and needs to be cast to a unit for inclusion in the
stage specific data passed to the instrumentation check function.
2023-12-05 09:59:51 -07:00
Jeremy Gebben
b5d60826e9
printf: Remove stage specific info ( #5495 )
...
Remove stage specific debug info that is only needed by GPU-AV.
This allows debug printfs to be used in multi-stage shader modules.
Fixes #4892
2023-12-04 15:43:36 -07:00
dependabot[bot]
e7a52b70fe
build(deps): bump the github-actions group with 1 update ( #5498 )
...
Bumps the github-actions group with 1 update: [lukka/get-cmake](https://github.com/lukka/get-cmake ).
- [Release notes](https://github.com/lukka/get-cmake/releases )
- [Commits](8be6cca406...4865386b66
)
---
updated-dependencies:
- dependency-name: lukka/get-cmake
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 10:18:57 -05:00
ncesario-lunarg
2da75e152e
Do not crash when tryingto fold unsupported spec constant ( #5496 )
...
Remove assertion in FoldWithInstructionFolder; there are cases where
folding spec constants is unsupported.
Closes #5492 .
2023-12-04 08:48:16 -05:00
David Neto
0d87845532
Remove uses of std::system(nullptr) ( #5494 )
...
Android's bionic library blows up on this, contrary to the standard.
If std::system can't find a shell, you already have bigger problems.
Don't check specially for that condition. (That's the justification
Android uses, and I'm not going to fight it.)
2023-11-30 17:05:25 -05:00
David Neto
f4a73dd7a0
std::system requires include of <cstdlib> ( #5486 )
2023-11-29 06:43:07 -08:00
Juan Ramos
ffe6450239
Add iOS build to CI ( #5490 )
...
* Add iOS build to CI
closes #5488
* ios: Make linker warnings into errors
2023-11-29 06:40:44 -08:00
Juan Ramos
afaf8fda2a
Fix iOS / Android CMake builds ( #5482 )
...
* cmake: Simplify usage of option
boolean OFF is the default value:
https://cmake.org/cmake/help/latest/command/option.html
* Fix iOS / Android CMake builds
closes #4437
2023-11-28 10:53:56 -05:00
dependabot[bot]
7d2a618bf9
build(deps): bump the github-actions group with 1 update ( #5484 )
...
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action ).
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](689fdc5193...407ffafae6
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-27 15:17:19 -05:00
github-actions[bot]
2a238ed24d
Roll external/spirv-headers/ 38f39dae5..cca08c63c (2 commits) ( #5480 )
...
* Roll external/re2/ 974f44c8d..7e0c1a9e2 (1 commit)
974f44c8d4...7e0c1a9e24
$ git log 974f44c8d..7e0c1a9e2 --date=short --no-merges --format='%ad %ae %s'
2023-11-16 junyer WebAssembly support for threads is... fraught at every level.
Created with:
roll-dep external/re2
* Roll external/spirv-headers/ 38f39dae5..cca08c63c (2 commits)
38f39dae5b...cca08c63ce
$ git log 38f39dae5..cca08c63c --date=short --no-merges --format='%ad %ae %s'
2023-11-15 viktoria.maksimova Change token IDs for global_variable_fpga_decorations and global_variable_host_access (#389 )
2023-11-15 johnkslang It seems d790ced752b5bfc06b6988baadef6eb2d16bdf96 add tabs. (#390 )
Created with:
roll-dep external/spirv-headers
---------
Co-authored-by: GitHub Actions[bot] <>
2023-11-18 05:06:35 +00:00
Sajjad Mirza
246e6d4c68
spirv-val: Loosen restriction on base type of DebugTypePointer and DebugTypeQualifier ( #5479 )
...
* Allow base type for DebugTypePointer and DebugTypeQualifier to be any DebugType
2023-11-17 10:22:46 -05:00
ChristianReinbold
0df791f97a
Fix nullptr argument in MarkInsertChain ( #5465 )
...
Fixes an access violation issue that sporadically occured for me when DXC uses spirv-opt to legalize generated spirv code.
2023-11-16 19:36:32 +00:00
Jesse Natalie
fb91e6f0eb
Flush stdout before changing mode back to text ( #5477 )
2023-11-15 17:02:00 +00:00
dependabot[bot]
560eea6d75
build(deps): bump the github-actions group with 1 update ( #5478 )
...
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action ).
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](74483a38d3...689fdc5193
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 11:28:57 -05:00
ncesario-lunarg
c8510a5e89
Fix python warning seen on Fedora 39 ( #5474 )
...
Python 3.12 on Fedora 39 is producing a deprecation warning about
datetime.utcfromtimestamp.
See
https://docs.python.org/3/library/datetime.html#datetime.datetime.utcfromtimestamp
for more details.
2023-11-15 10:36:36 -05:00
Spencer Fricke
8ee3ae5244
Add comment to --inst-debug-printf option ( #5466 )
2023-11-14 13:00:54 -05:00
Nathan Gauër
f43c464d53
opt: add PhysicalStorageBufferAddresses to trim ( #5476 )
...
The PhysicalStorageBufferAddresses capability can now be
trimmed. From the spec, it seems any instruction enabled by this
required some operand to have the PhysicalStorageBuffer storage class.
This means checking the storage class is enough.
Now, because the pass uses the grammar, we don't need to add any
new logic.
Signed-off-by: Nathan Gauër <brioche@google.com>
2023-11-14 12:49:04 -05:00
Nathan Gauër
c91e9d09b5
opt: add StorageImageReadWithoutFormat to cap trim ( #5475 )
...
The StorageImageReadWithoutFormat capability is only required when
an image type with the format set to Unknown is used with some specific
OpImageRead or OpImageSparseRead instructions.
This patch adds the required code to the capability trimming pass to
remove the StorageImageReadWithoutFormat capability when not required.
Signed-off-by: Nathan Gauër <brioche@google.com>
2023-11-14 09:29:31 -05:00
sethp
d88742fbd8
fix(build): git describe all tagged versions ( #5447 )
...
Previously, the version string would include `v2022.4-N-...` indicating N commits since the last annotated tag (`v2022.4`).
This change broadens the search from just annotated tags to all tags that match `v*`, including the latest version `v2023.4.rc2`.
See also: https://github.com/KhronosGroup/SPIRV-Tools/pull/5417#issuecomment-1764772856
2023-11-13 17:28:30 +01:00
Natalie Chouinard
6b1e609ef1
Support missing git in update_build_version.py ( #5473 )
...
Return False instead of raising an exception when running git commands
fail, which allows the script to fallback to alternative options.
Fixes #5469
2023-11-10 15:43:11 -08:00
github-actions[bot]
fbf047cc8b
Roll external/re2/ 24d460a9d..974f44c8d (4 commits) ( #5470 )
...
* Roll external/re2/ 24d460a9d..974f44c8d (4 commits)
24d460a9db...974f44c8d4
$ git log 24d460a9d..974f44c8d --date=short --no-merges --format='%ad %ae %s'
2023-11-07 junyer Bazel fails if the username is unknown.
2023-11-07 junyer A non-root user can't futz with `/usr/local/bin`.
2023-11-07 junyer Specify the UID, not the username.
2023-11-07 junyer Don't run as root within the container.
Created with:
roll-dep external/re2
* Roll external/spirv-headers/ 88bc5e321..38f39dae5 (1 commit)
88bc5e321c...38f39dae5b
$ git log 88bc5e321..38f39dae5 --date=short --no-merges --format='%ad %ae %s'
2023-11-08 115671160+spencer-lunarg Fix SPV_KHR_workgroup_memory_explicit_layout implicit declare (#388 )
Created with:
roll-dep external/spirv-headers
---------
Co-authored-by: GitHub Actions[bot] <>
2023-11-09 20:35:08 +00:00