Skip to content

Commit 214396a

Browse files
authored
[spv] output the right capability for subgroupBroadcast (#6904)
1 parent f6dd3a4 commit 214396a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

naga/src/back/spv/subgroup.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,15 @@ impl BlockContext<'_> {
135135
&[spirv::Capability::GroupNonUniformBallot],
136136
)?;
137137
match *mode {
138-
crate::GatherMode::BroadcastFirst | crate::GatherMode::Broadcast(_) => {
138+
crate::GatherMode::BroadcastFirst => {
139139
self.writer.require_any(
140140
"GroupNonUniformBallot",
141141
&[spirv::Capability::GroupNonUniformBallot],
142142
)?;
143143
}
144-
crate::GatherMode::Shuffle(_) | crate::GatherMode::ShuffleXor(_) => {
144+
crate::GatherMode::Shuffle(_)
145+
| crate::GatherMode::ShuffleXor(_)
146+
| crate::GatherMode::Broadcast(_) => {
145147
self.writer.require_any(
146148
"GroupNonUniformShuffle",
147149
&[spirv::Capability::GroupNonUniformShuffle],

0 commit comments

Comments
 (0)