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] implement pointer_composite_access WGSL language extension #6913

Merged
merged 5 commits into from
Jan 23, 2025

Conversation

sagudev
Copy link
Contributor

@sagudev sagudev commented Jan 14, 2025

Connections
Fix #6192

Description
Implementd pointer_composite_access WGSL language extension, by removing:

Pointer(&'static str, Span),

and replacing it with code that maps declares pointer as references.

fc3503a is not standalone as tests are fixed in next commit, but it's reviewable per commit.

PR in servo: servo/servo#35161

Testing
CTS run in servo and added tests. Servo changes (contain expectation changes in two commits, first on enabled extension second one on implemented extension): servo/servo@main...sagudev:servo:pointer_composite_access. Related uniformity test are also failing in firefox nightly so this seems to be another naga problem and first expectation is now fixed on trunk by #6920

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • 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.

@sagudev

This comment was marked as resolved.

@sagudev

This comment was marked as resolved.

@sagudev sagudev force-pushed the pointer_composite_access branch 2 times, most recently from 00a89cb to 1f6c1e8 Compare January 15, 2025 18:37
@sagudev sagudev changed the title [naga] wgsl: implement pointer_composite_access extension [naga] wgsl: implement pointer_composite_access WGSL language extension Jan 15, 2025
@sagudev sagudev changed the title [naga] wgsl: implement pointer_composite_access WGSL language extension [naga] implement pointer_composite_access WGSL language extension Jan 15, 2025
@sagudev sagudev marked this pull request as ready for review January 15, 2025 18:49
@sagudev sagudev requested review from a team as code owners January 15, 2025 18:49
@sagudev
Copy link
Contributor Author

sagudev commented Jan 15, 2025

cc @ErichDonGubler

@ErichDonGubler ErichDonGubler self-assigned this Jan 15, 2025
@ErichDonGubler
Copy link
Member

Happy to take a crack at reviewing this in the next couple of days.

@ErichDonGubler
Copy link
Member

I think I'm going to be able to review this on Tuesday of this coming week. 🫡 See you then!

sagudev and others added 5 commits January 23, 2025 12:46
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>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@ErichDonGubler ErichDonGubler force-pushed the pointer_composite_access branch from 9ac9516 to 01ee86e Compare January 23, 2025 18:15
Copy link
Member

@ErichDonGubler ErichDonGubler left a comment

Choose a reason for hiding this comment

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

LGTM. Added some tests for nested accesses, and I'm satisfied with letting this land. 😀 Yay!

Sorry for taking so long to get to this review. 💦

@ErichDonGubler ErichDonGubler merged commit 04aff59 into gfx-rs:trunk Jan 23, 2025
31 checks passed
@sagudev
Copy link
Contributor Author

sagudev commented Jan 24, 2025

PR in servo: servo/servo#35161

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.

WGSL: Support the pointer_composite_access language extension
2 participants