From 7f09def94ec9703b3c7657852c9c4e2efa650c3c Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sat, 4 Jan 2020 15:02:59 +0300 Subject: [PATCH] rsx/vp: Properly initialize output registers. - All registers tested on hw show contents to be 0, 0, 0, 1. Make default output registers match this pattern. --- rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp b/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp index a6f3dbd799..4ff17c52a5 100644 --- a/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp @@ -66,7 +66,7 @@ std::string VertexProgramDecompiler::GetDST(bool is_sca) const auto reg_type = getFloatTypeName(4); const auto reg_name = std::string("dst_reg") + std::to_string(d3.dst); - const auto default_value = (d3.dst == 0 ? reg_type + "(0.0f, 0.0f, 0.0f, 1.0f)" : reg_type + "(0.0, 0.0, 0.0, 0.0)"); + const auto default_value = reg_type + "(0.0f, 0.0f, 0.0f, 1.0f)"; ret += m_parr.AddParam(PF_PARAM_OUT, reg_type, reg_name, default_value) + mask; } }