Skip to content

Commit ef8bef3

Browse files
vsemenov368igcbot
authored andcommitted
Enable Xe3p in VISA
.
1 parent 2680f8d commit ef8bef3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+16372
-432
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22810,8 +22810,15 @@ void EmitPass::emitLscIntrinsicTypedLoadStatus(llvm::GenIntrinsicInst *inst) {
2281022810

2281122811
LSC_ADDR_SIZE addrSize = LSC_ADDR_SIZE_32b;
2281222812
const unsigned int eltBitSize = 32;
22813-
const unsigned int numElements = 1;
22814-
const LSC_OP lscOp = LSC_LOAD_STATUS;
22813+
const bool isEfficient64bEnabled = m_currShader->m_Platform->hasEfficient64bEnabled();
22814+
const unsigned int numElements =
22815+
isEfficient64bEnabled ? numLanes(m_currShader->m_SIMDSize)
22816+
: 1; // The dest data payload is dword per SIMT lane/bit per SIMT lane (one dword).
22817+
if (isEfficient64bEnabled && resource.m_isStatefulForEfficient64b) {
22818+
// stateful access for efficient64b -> 64bit pointer with 32bit offset
22819+
addrSize = LSC_ADDR_SIZE_32bU;
22820+
}
22821+
const LSC_OP lscOp = isEfficient64bEnabled ? LSC_LOAD_QUAD_STATUS : LSC_LOAD_STATUS;
2281522822
if (destIsUniform) {
2281622823
m_encoder->SetSimdSize(SIMDMode::SIMD1);
2281722824
m_encoder->SetPredicate(nullptr);

0 commit comments

Comments
 (0)