From b2577833f976e773c575bc9477be1b4d494b60ab Mon Sep 17 00:00:00 2001 From: raven02 Date: Thu, 21 May 2015 07:24:10 +0800 Subject: [PATCH] d3d12: DP2A --- rpcs3/Emu/RSX/D3D12/D3D12VertexProgramDecompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/D3D12/D3D12VertexProgramDecompiler.cpp b/rpcs3/Emu/RSX/D3D12/D3D12VertexProgramDecompiler.cpp index 7c560789de..7b81daed63 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12VertexProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/D3D12/D3D12VertexProgramDecompiler.cpp @@ -31,7 +31,7 @@ std::string D3D12VertexProgramDecompiler::getFunction(enum class FUNCTION f) case FUNCTION::FUNCTION_DP2: return "dot($0.xy, $1.xy).xxxx"; case FUNCTION::FUNCTION_DP2A: - return ""; + return "(dot($0.xy, $1.xy) + $2.x).xxxx"; case FUNCTION::FUNCTION_DP3: return "dot($0.xyz, $1.xyz).xxxx"; case FUNCTION::FUNCTION_DP4: @@ -172,7 +172,7 @@ void D3D12VertexProgramDecompiler::insertMainStart(std::stringstream & OS) for (const ParamType PT : m_parr.params[PF_PARAM_NONE]) { for (const ParamItem &PI : PT.items) - OS << " " << PT.type << " " << PI.name << " = " << PI.value << ";" << std::endl; + OS << " " << PT.type << " " << PI.name << " = float4(0., 0., 0., 1.);" << std::endl; } for (const ParamType PT : m_parr.params[PF_PARAM_IN])