Skip to content

Commit

Permalink
Fix atomic storage global use acces (#6600)
Browse files Browse the repository at this point in the history
  • Loading branch information
atlv24 authored Nov 25, 2024
1 parent 29bb44b commit 05c9f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naga/src/valid/analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ impl FunctionInfo {
value,
result: _,
} => {
let _ = self.add_ref_impl(pointer, GlobalUse::WRITE);
let _ = self.add_ref_impl(pointer, GlobalUse::READ | GlobalUse::WRITE);
let _ = self.add_ref(value);
if let crate::AtomicFunction::Exchange { compare: Some(cmp) } = *fun {
let _ = self.add_ref(cmp);
Expand Down

0 comments on commit 05c9f43

Please sign in to comment.