File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments