-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Naga msl-out] Add padding to end of structs. And run some textureSample CTS tests that now pass #7804
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
Conversation
8344c76
to
59f5a2e
Compare
Marking as draft until I fix the test failures |
@@ -238,8 +238,7 @@ fn create_struct_layout_tests(storage_type: InputStorageType) -> Vec<ShaderTest> | |||
&input_values, | |||
&[0, 1, 2, 3, 4, 8, 9, 10, 11, 12], | |||
) | |||
.header(header) | |||
.failures(Backends::METAL), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cwfitzgerald This PR seems to fix these tests. Since you added them, thought you might have opinions on whether this fix is correct? It doesn't really seem the same as described in #5262
This doesn't do anything yet, but unblocks running some CTS tests.
Limit to the `sampled_1d_coords` subtests for now as otherwise the tests take a very long time to execute, and there are also some failures with certain texture formats that are used in higher dimensions.
9901c01
to
e01ba35
Compare
Ready for review now |
@crowlKats approved the exact same deno changes in #7709 , so I think we can go ahead and land this |
Connections
Fixes #7803
Depends on #7807
The deno changes are copied from #7709. If this lands first I'll remove the changes from that PR.
Description
See #7803
Note I've only enabled the 1d tests to run. In higher dimensions we use more exotic texture formats, some of which fail. They also take a very long time to run, so there's probably a discussion to be had about whether that's desirable.
Testing
Added CTS test to run
Squash or Rebase?
Rebase
Checklist
cargo fmt
.taplo format
.cargo clippy --tests
. If applicable, add:--target wasm32-unknown-unknown
cargo xtask test
to run tests.CHANGELOG.md
entry.