Update SPIRV-Tools to 1c336172 - #8738
Merged
Damyan Pepper (damyanp) merged 2 commits intoAug 6, 2026
Merged
Conversation
Fixes microsoft#8603: MergeBinaryOpSelect produced an OpSelect with a vector result type and a scalar condition, which is only legal in SPIR-V 1.4+ (KhronosGroup/SPIRV-Tools#6827). Assisted-by: copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b04b21af-2d8b-4af5-b9ad-1b84073588f5
Contributor
There was a problem hiding this comment.
Pull request overview
Updates SPIRV-Tools to address invalid OpSelect generation for SPIR-V 1.3 and earlier.
Changes:
- Incorporates the upstream SPIRV-Tools fix for issue #8603.
- Documents the user-visible compiler bug fix in the upcoming release notes.
Member
Author
|
Hmm, this is failing with: Since #8517 is going to remove this test, I'm inclined to disable the test. |
Ashley Coleman (V-FEXrt)
approved these changes
Aug 6, 2026
The validator now requires explicit layout for UniformConstant when SPV_EXT_descriptor_heap is used (KhronosGroup/SPIRV-Tools#6792), which DXC's descriptor heap codegen does not yet do. Exposed by the SPIRV-Tools update in 8725f5c. Assisted-by: copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b04b21af-2d8b-4af5-b9ad-1b84073588f5
Comment on lines
+3
to
+7
| // The validator now requires explicit layout for UniformConstant when | ||
| // SPV_EXT_descriptor_heap is used (KhronosGroup/SPIRV-Tools#6792). DXC's | ||
| // descriptor heap support does not yet emit ArrayStride. | ||
| // XFAIL: * | ||
|
|
Member
Author
There was a problem hiding this comment.
Jonathan Zakharov (@jzakharovnv), Diego Novillo (@dnovillo) - FYI, please let me know if you think we should be dealing with this some other way.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
Suppressed comments (1)
tools/clang/test/CodeGenSPIRV/resource-heap-ext-texture.hlsl:6
- Marking the entire test
XFAILmeans none of its existingFileCheckassertions protect descriptor-heap code generation anymore; any unrelated compiler or output regression is accepted as the expected failure. Please isolate the known validator failure instead—for example, keep the current codegen checks on a-VdRUN and add a separate expected-failure validation RUN—so this test continues covering the emitted extension, heap variables, access chains, loads, and image operations.
// XFAIL: *
joaosaffran
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8603: MergeBinaryOpSelect produced an OpSelect with a vector result type and a scalar condition, which is only legal in SPIR-V 1.4+ (KhronosGroup/SPIRV-Tools#6827).
This exposes #8740 where the resource-heap-ext-texture.hlsl test fails validation - for now this is worked around by disabling the test, since #8517 looks like it is reworking it anyway.
Assisted-by: copilot