Skip to content

spirv-opt: Avoid duplicate decorations on unrolled loops. - #6690

Merged
alan-baker merged 1 commit into
KhronosGroup:mainfrom
Ludicon:fix-relaxed-precision-unroll-bug
Jun 2, 2026
Merged

alan-baker merged 1 commit into
KhronosGroup:mainfrom
Ludicon:fix-relaxed-precision-unroll-bug

Conversation

@castano

@castano castano commented May 14, 2026 •

Copy link
Copy Markdown
Contributor

Fixes issue: #6689

Also adds a test to reproduce and validate the result.

This PR is sponsored by Ludicon

Adds a test to repro and validate the result.
@CLAassistant

CLAassistant commented May 14, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@alan-baker
alan-baker merged commit 9654570 into KhronosGroup:main Jun 2, 2026
8 checks passed
@castano
castano deleted the fix-relaxed-precision-unroll-bug branch June 3, 2026 23:47
damyanp added a commit to microsoft/DirectXShaderCompiler that referenced this pull request Aug 6, 2026
Fixes two SPIR-V validation failures under -O3:

- #8609: loop unrolling duplicated RelaxedPrecision decorations
  (KhronosGroup/SPIRV-Tools#6690)
- #8603: MergeBinaryOpSelect produced an OpSelect with a vector result
  type and a scalar condition, only legal in SPIR-V 1.4+
  (KhronosGroup/SPIRV-Tools#6827)

SPIRV-Headers moves to 29981f65 to match; SPIRV-Tools 1c336172 does not
build against the older headers.

XFAIL resource-heap-ext-texture: the validator now requires explicit
layout for UniformConstant when SPV_EXT_descriptor_heap is used
(KhronosGroup/SPIRV-Tools#6792).

Assisted-by: copilot
Co-authored-by: Copilot <[email protected]>
Copilot-Session: b04b21af-2d8b-4af5-b9ad-1b84073588f5

Co-authored-by: Copilot <[email protected]>
Copilot-Session: b04b21af-2d8b-4af5-b9ad-1b84073588f5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants