Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Fix zero initialization of workgroup memory #2259

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented Feb 20, 2023

Use local (not global) invocation id - duh 🙄.
Credits go to @nical who found out the issue!

Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

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

Sorry I missed this in the first review.

src/back/hlsl/writer.rs Outdated Show resolved Hide resolved
src/back/msl/writer.rs Outdated Show resolved Hide resolved
src/back/msl/writer.rs Show resolved Hide resolved
use local (not global) invocation id
@@ -430,7 +430,7 @@ impl Writer {
constituent_ids.push(id);

if binding == &crate::Binding::BuiltIn(crate::BuiltIn::GlobalInvocationId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm digging into this again for gfx-rs/wgpu#4592. Why was this one left as Global?

Copy link
Member Author

Choose a reason for hiding this comment

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

It seems I missed this one 😅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants