Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spirv-opt: loop unroll pass with shader produces spirv-val failure #5711

Open
danginsburg opened this issue Jun 12, 2024 · 0 comments
Open

Comments

@danginsburg
Copy link
Contributor

danginsburg commented Jun 12, 2024

With the SPIR-V shader attached to this bug, running spirv-opt with a loop unroll pass generates invalid spir-v that fails spirv-val:

> spirv-opt --version
SPIRV-Tools v2024.2 v2019.1-2077-g65d30c31

> spirv-opt --loop-unroll test.spv -o opt.spv

Produces a shader that fails spirv-val:

> spirv-val opt.spv
error: line 415: ID '23262[%23262]' has not been defined
  %25204 = OpULessThan %bool %23262 %uint_4

test.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants