VERY experimental Nintendo Switch 2 emulator
C++
glsl: Fix tracking of info.uses_shadow_lod
ameerjf2f16e3a1dc1
diff --git a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cppindex 5e32ac7844..5ead930f1b 100644--- a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp+++ b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp@@ -505,10 +505,6 @@ void VisitUsages(Info& info, IR::Inst& inst) {case IR::Opcode::BoundImageQueryDimensions:case IR::Opcode::BoundImageQueryLod:case IR::Opcode::BoundImageGradient:- case IR::Opcode::ImageSampleImplicitLod:- case IR::Opcode::ImageSampleExplicitLod:- case IR::Opcode::ImageSampleDrefImplicitLod:- case IR::Opcode::ImageSampleDrefExplicitLod:case IR::Opcode::ImageGather:case IR::Opcode::ImageGatherDref:case IR::Opcode::ImageFetch:@@ -520,6 +516,10 @@ void VisitUsages(Info& info, IR::Inst& inst) {inst.GetAssociatedPseudoOperation(IR::Opcode::GetSparseFromOp) != nullptr;break;}+ case IR::Opcode::ImageSampleImplicitLod:+ case IR::Opcode::ImageSampleExplicitLod:+ case IR::Opcode::ImageSampleDrefImplicitLod:+ case IR::Opcode::ImageSampleDrefExplicitLod:case IR::Opcode::ImageQueryLod: {const auto flags{inst.Flags<IR::TextureInstInfo>()};const TextureType type{flags.type};