Skip to content

Commit 33814de

Browse files
authored
[AMD] Turn off buffer op cache swizzling for now (#8264)
1 parent 3ef7fde commit 33814de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

third_party/amd/lib/TritonAMDGPUToLLVM/BufferOpsEmitter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ Value BufferEmitter::createResourceDescriptor(Value basePtr,
6464
Value stride = b.int_val(16, 0);
6565
if (llvm::is_contained({ISAFamily::CDNA3, ISAFamily::CDNA4},
6666
targetInfo.getISAFamily())) {
67+
#if 0
68+
// Turn off cache-swizzling for the time being while we are figuring out
69+
// how to safely use it.
6770
if (blockStride) {
6871
Value enableSwizzle = b.int_val(16, 16384);
6972
Value mask14b = b.int_val(16, 16383);
@@ -78,6 +81,7 @@ Value BufferEmitter::createResourceDescriptor(Value basePtr,
7881
// stride[14] = swizzle enabling bit
7982
stride = rewriter.create<LLVM::OrOp>(loc, enableSwizzle, strideSat);
8083
}
84+
#endif
8185
}
8286

8387
Value flagsConst = b.int_val(32, flags);

0 commit comments

Comments
 (0)