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

[spv-in] assertion failed: prev.is_none() #1927

Closed
fintelia opened this issue May 15, 2022 · 1 comment
Closed

[spv-in] assertion failed: prev.is_none() #1927

fintelia opened this issue May 15, 2022 · 1 comment
Labels
area: front-end Input formats for conversion kind: bug Something isn't working lang: SPIR-V Binary SPIR-V input and output

Comments

@fintelia
Copy link
Contributor

This GLSL shader when converted to SPIR-V (shader.spv.zip):

#version 460 core

void main() {
    do{}while(false);
}

Produces this assertion failure when compiled with naga:

thread 'main' panicked at 'assertion failed: prev.is_none()', src/front/spv/mod.rs:3080:25
stack backtrace:
   0: rust_begin_unwind
             at /rustc/70b3681bf621bc0de91ffab711b2350068b4c466/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/70b3681bf621bc0de91ffab711b2350068b4c466/library/core/src/panicking.rs:142:14
   2: core::panicking::panic
             at /rustc/70b3681bf621bc0de91ffab711b2350068b4c466/library/core/src/panicking.rs:48:5
   3: naga::front::spv::Parser<I>::next_block
             at ./src/front/spv/mod.rs:3080:25
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Aborted
@teoxoy teoxoy added kind: bug Something isn't working lang: SPIR-V Binary SPIR-V input and output area: front-end Input formats for conversion labels May 16, 2022
@JCapucho
Copy link
Collaborator

This is a duplicate of gfx-rs/wgpu#4388

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: front-end Input formats for conversion kind: bug Something isn't working lang: SPIR-V Binary SPIR-V input and output
Projects
None yet
Development

No branches or pull requests

3 participants