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

[naga] Handle phony statements properly by treating them as named expressions #6328

Merged
merged 5 commits into from
Sep 27, 2024

Conversation

sagudev
Copy link
Contributor

@sagudev sagudev commented Sep 26, 2024

Connections
Alternative to #6308 that fixes #6095

Description
Currently phony statements get removed when compacting, we bypass this by making them named expressions with phony name.

Testing
New tests added and CTS run in servo.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@sagudev sagudev marked this pull request as ready for review September 26, 2024 06:02
@sagudev sagudev requested a review from a team September 26, 2024 06:02
@ErichDonGubler ErichDonGubler added area: naga back-end Outputs of naga shader conversion naga Shader Translator area: naga front-end lang: WGSL WebGPU Shading Language labels Sep 26, 2024
@jimblandy
Copy link
Member

Yeah, this is another reasonable approach.

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@sagudev sagudev requested a review from jimblandy September 27, 2024 05:29
@ErichDonGubler ErichDonGubler changed the title [naga] Handle phony statements properly by threating them as named expressions [naga] Handle phony statements properly by treating them as named expressions Sep 27, 2024
Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No IR or back end changes necessary! I love it.

@jimblandy jimblandy merged commit 866be69 into gfx-rs:trunk Sep 27, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: naga back-end Outputs of naga shader conversion area: naga front-end lang: WGSL WebGPU Shading Language naga Shader Translator
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

get_bind_group_layout fails when layout is auto
3 participants