Skip to content

Commit 48c4f44

Browse files
Update SpirvEmitter.cpp
QuadBroadcast -> QuadSwap correction
1 parent 49cbce1 commit 48c4f44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/clang/lib/SPIRV/SpirvEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10177,8 +10177,8 @@ SpirvInstruction *SpirvEmitter::processWaveQuadAnyAll(const CallExpr *callExpr,
1017710177
const auto srcLoc = callExpr->getExprLoc();
1017810178

1017910179
if (!featureManager.isExtensionEnabled(Extension::KHR_quad_control)) {
10180-
// We can't use QuadAny/QuadAll, so implement them using QuadBroadcast.
10181-
// We will read the value at each quad invocation, then combine them.
10180+
// We can't use QuadAny/QuadAll, so implement them using QuadSwap. We
10181+
// will read the value at each quad invocation, then combine them.
1018210182

1018310183
spv::Op reducer = op == hlsl::IntrinsicOp::IOP_QuadAny
1018410184
? spv::Op::OpLogicalOr

0 commit comments

Comments
 (0)