From e04b6cd7c02cb726b6960dc2bddc1a022b8f252e Mon Sep 17 00:00:00 2001 From: kd-11 Date: Wed, 23 Oct 2019 00:41:30 +0300 Subject: [PATCH] rsx: Copypasta fix - r1 is always float4 never half4. Its a full-width register unlike the other outputs which are optionally half-width. --- rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp b/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp index 1e8777e267..4fa77e098c 100644 --- a/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp @@ -668,7 +668,7 @@ std::string FragmentProgramDecompiler::BuildCode() if (m_ctrl & CELL_GCM_SHADER_CONTROL_DEPTH_EXPORT) { // Hw tests show that the depth export register is default-initialized to 0 and not wpos.z!! - m_parr.AddParam(PF_PARAM_NONE, float4_type, "r1", init_value); + m_parr.AddParam(PF_PARAM_NONE, getFloatTypeName(4), "r1", init_value); shader_is_valid = (!!temp_registers[1].h1_writes); }