-
Notifications
You must be signed in to change notification settings - Fork 949
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
Zero-initialize workgroup memory #3174
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3174 +/- ##
==========================================
+ Coverage 64.10% 64.13% +0.03%
==========================================
Files 86 86
Lines 42591 42624 +33
==========================================
+ Hits 27301 27337 +36
+ Misses 15290 15287 -3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
I don't think I know enough about workgroups yet to be able to review this meaningfully. I've left what I could, though!
Converting to draft so that gfx-rs/naga#2111 can land first. |
Looks like the new improved test is causing some unrelated issues to surface.
I can't reproduce these locally through @cwfitzgerald any ideas? |
Vulkan is segfaulting
That's weird, I wonder if the problems are fundamentally related. Especially as swiftshader's cpu based execution will be sensitive to various memory corruption. We have quite a few issues with freeing too early unfortunately. |
I managed to reproduce the DX12 errors locally and filed #3193. I'll test swiftshader next.
Can you point me to some? |
Tested |
I re-ran it, but it still segfaults.
#3160 is the one I hit most recently. |
ee65e5b
to
265fe43
Compare
580dd06
to
e345e2d
Compare
e345e2d
to
4c0cee4
Compare
I'm confused about the new CI error. Did it fail to load the driver or did it run and 12% of dispatches failed to be 0 initialized? |
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.
Looks good to me.
Depends on gfx-rs/naga#2111
Checklist
cargo clippy
.RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown
if applicable.Connections
fixes #2430
Description
Zero-initialize workgroup memory mostly via polyfills (injected by naga) with extra support for
VK_KHR_zero_initialize_workgroup_memory
(when available).Testing
Added a test and tested manually on all backends to make sure everything is working properly.