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

Padding of array<matCx3, 4> is clobbered in storage-bound writes from shader #6298

Open
ErichDonGubler opened this issue Sep 19, 2024 · 2 comments
Labels
area: correctness We're behaving incorrectly area: cts Issues stemming from the WebGPU Conformance Test Suite platform: macos Issues with integration with macos

Comments

@ErichDonGubler
Copy link
Member

ErichDonGubler commented Sep 19, 2024

Description

When running some webgpu:shader,execution,padding:* tests in Firefox, I noticed that the following were failing:

Repro steps

I've reduced this to an MRE repo (erichdongubler-mre/wgpu-matCx3-padding-clobber) that runs natively on the wgpu crate, converting …:array_of_matCx3:columns=2;use_struct=false to Rust code. I recommend using the following

RUST_LOG=debug cargo run

Expected vs observed behavior

Examining the MRE's output, it seems we're failing these tests because we clobber the padding in the first matCx3 element, but not the others. Weird!

Extra materials

-

Platform

This is confirmed to be an issue on MacOS. Firefox's CI reports issues on DX12, too, but I haven't investigated that platform thoroughly or reproduced locally (despite non-exhaustive attempts with the MRE above).

@ErichDonGubler ErichDonGubler added area: correctness We're behaving incorrectly area: cts Issues stemming from the WebGPU Conformance Test Suite platform: macos Issues with integration with macos labels Sep 19, 2024
@ErichDonGubler
Copy link
Member Author

CC @sagudev, who may be interested in a CTS-relevant issue.

@ErichDonGubler
Copy link
Member Author

I wonder if this is relevant to #5739?

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: cts Issues stemming from the WebGPU Conformance Test Suite platform: macos Issues with integration with macos
Projects
Status: Todo
Development

No branches or pull requests

1 participant