Skip to content

Commit 3452b57

Browse files
fda0igcbot
authored andcommitted
Fix cache controls translation for 2D block store
Fix cache controls translation for 2D block store in EmitVISAPass. Translation was hardcoded to assume 2D block loads which is incorrect.
1 parent 83b66d7 commit 3452b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22541,7 +22541,7 @@ void EmitPass::emitLSC2DBlockOperation(llvm::GenIntrinsicInst* inst)
2254122541
m_destination->GetNumberInstance(),
2254222542
CName::NONE);
2254322543
}
22544-
LSC_CACHE_OPTS cacheOpts = translateLSCCacheControlsFromValue(inst->getOperand(12), true);
22544+
LSC_CACHE_OPTS cacheOpts = translateLSCCacheControlsFromValue(inst->getOperand(12), isRead);
2254522545

2254622546
if (isRead == false)
2254722547
{

0 commit comments

Comments
 (0)