From 8fa3f0721e3e9a1ebcc0477f0d9a14606f272a96 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 21 Mar 2017 14:35:08 +0300 Subject: [PATCH] fix false alphakill flags when texture fetch is optimized away --- rpcs3/Emu/RSX/Common/ShaderParam.h | 11 +++++++++++ .../Emu/RSX/D3D12/D3D12FragmentProgramDecompiler.cpp | 8 ++++++-- rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp | 8 ++++++-- rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp | 8 ++++++-- 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/ShaderParam.h b/rpcs3/Emu/RSX/Common/ShaderParam.h index 6d3fd4d79b..5f9702cb12 100644 --- a/rpcs3/Emu/RSX/Common/ShaderParam.h +++ b/rpcs3/Emu/RSX/Common/ShaderParam.h @@ -110,6 +110,17 @@ struct ParamArray return nullptr; } + bool HasParamTypeless(const ParamFlag flag, const std::string& name) + { + for (u32 i = 0; i