Skip to content

fix(const_eval): use component count, not arg. count, for component-wise iter.#5103

Merged
teoxoy merged 1 commit intogfx-rs:trunkfrom
erichdongubler-mozilla:builtins-const-eval-fix
Jan 22, 2024
Merged

fix(const_eval): use component count, not arg. count, for component-wise iter.#5103
teoxoy merged 1 commit intogfx-rs:trunkfrom
erichdongubler-mozilla:builtins-const-eval-fix

Conversation

@ErichDonGubler
Copy link
Copy Markdown
Member

Connections
Link to the issues addressed by this PR, or dependent PRs in other repositories

Fixes a regression/bug introduced by #4879 (sorry!). 😅

Description
Describe what problem this is solving, and how it's solved.

Previously, the arg. count was being used for iterating over component groups, but the count of components should have been used instead. This PR fixes that.

Testing
Explain how this change is tested.

It's a bug-fix, so I consider it tested! I would be open to a request for more coverage in addition to this.

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. I don't consider this necessar, since Impl. more component-wise built-ins in const. eval. #4879 hasn't shipped yet, but I can do it if requested.

@ErichDonGubler ErichDonGubler added type: bug Something isn't working area: correctness We're behaving incorrectly area: naga processing Passes over IR in the middle labels Jan 19, 2024
@ErichDonGubler ErichDonGubler self-assigned this Jan 19, 2024
@ErichDonGubler ErichDonGubler requested a review from a team January 19, 2024 21:14
@ErichDonGubler ErichDonGubler added lang: WGSL WebGPU Shading Language and removed lang: WGSL WebGPU Shading Language labels Jan 19, 2024
@teoxoy teoxoy merged commit 2ee7604 into gfx-rs:trunk Jan 22, 2024
@ErichDonGubler ErichDonGubler deleted the builtins-const-eval-fix branch January 22, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: correctness We're behaving incorrectly area: naga processing Passes over IR in the middle type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants