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

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from

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.

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 from d108908 to 00a89cb Compare January 15, 2025 18:33
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 force-pushed the pointer_composite_access branch from 00a89cb to 1f6c1e8 Compare January 15, 2025 18:37
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@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!

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