Skip to content

Commit dd8c721

Browse files
AnBodrovaigcbot
authored andcommitted
Changes in code.
1 parent dfac18b commit dd8c721

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4589,8 +4589,7 @@ void EmitPass::emitLdInstruction(llvm::Instruction* inst)
45894589
m_currShader->m_Platform->supportSampleAndLd_lz())
45904590
{
45914591
// Check if lod is 0
4592-
CVariable* src =
4593-
GetSymbol(inst->getOperand(2));
4592+
CVariable* src = GetSymbol(inst->getOperand(2));
45944593
if (src->IsImmediate() && src->GetImmediateValue() == 0)
45954594
{
45964595
zeroLOD = true;
@@ -4607,8 +4606,7 @@ void EmitPass::emitLdInstruction(llvm::Instruction* inst)
46074606
{
46084607
index = CorrectLdIndex(i, m_currShader->m_Platform->hasOldLdOrder());
46094608
}
4610-
if (zeroLOD &&
4611-
index == 2)
4609+
if (zeroLOD && index == 2)
46124610
{
46134611
//3D resources skip lod and read z coordinate
46144612
index = 3;

0 commit comments

Comments
 (0)