Skip to content

Commit 1fd8985

Browse files
fda0web-flow
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. (cherry picked from commit 3452b57)
1 parent 1748823 commit 1fd8985

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
@@ -22744,7 +22744,7 @@ void EmitPass::emitLSC2DBlockOperation(llvm::GenIntrinsicInst* inst)
2274422744
m_destination->GetNumberInstance(),
2274522745
CName::NONE);
2274622746
}
22747-
LSC_CACHE_OPTS cacheOpts = translateLSCCacheControlsFromValue(inst->getOperand(12), true);
22747+
LSC_CACHE_OPTS cacheOpts = translateLSCCacheControlsFromValue(inst->getOperand(12), isRead);
2274822748

2274922749
if (isRead == false)
2275022750
{

0 commit comments

Comments
 (0)