Skip to content

Commit 577887b

Browse files
bcheng0127sys_zuul
authored andcommitted
suffer code emit bug fix
Change-Id: I338a988e9af82504fbad92c2d4735bfce7e4315e
1 parent 5311efb commit 577887b

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
@@ -4610,7 +4610,7 @@ void EmitPass::emitSimdShuffle(llvm::Instruction* inst)
46104610
if (isSimd32)
46114611
{
46124612
const bool isSrcInSecondHalf = dataIndex >= 16;
4613-
dataIndex = dataIndex % 16;
4613+
dataIndex = dataIndex % numLanes(m_encoder->GetSimdSize());
46144614

46154615
if (m_destination->IsUniform())
46164616
{

0 commit comments

Comments
 (0)