Skip to content

Commit 376f04d

Browse files
jgu222gfxbot
authored andcommitted
Internal change
Change-Id: I8672f238854649d4a4b1bd47aa89255a0e0e13e5
1 parent f2dd822 commit 376f04d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4627,6 +4627,9 @@ void EmitPass::emitSimdBlockWrite( llvm::Instruction* inst, llvm::Value* ptrVal
46274627
uint32_t typeSizeInBytes = Ty->getScalarSizeInBits() / 8;
46284628
uint32_t totalBytes = nbElements * typeSizeInBytes * numLanes(m_SimdMode);
46294629

4630+
// Special case for uniform data. data is expected to be non-uniform.
4631+
data = BroadcastIfUniform(data);
4632+
46304633
// Special case for simd8 char block write, in which the total bytes = 8.
46314634
// (All the other cases, the total bytes is multiple of 16 (OW).
46324635
if (totalBytes == 8)

0 commit comments

Comments
 (0)