From 67e8e0a367f730b74bdc1e84dff4db6be52566d5 Mon Sep 17 00:00:00 2001 From: raven02 Date: Fri, 22 May 2015 08:09:53 +0800 Subject: [PATCH] RSX: DP2A for fragment decompiler --- rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp b/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp index 1bd5616c5a..f044e2fe90 100644 --- a/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp +++ b/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp @@ -30,7 +30,7 @@ std::string GLFragmentDecompilerThread::getFunction(FUNCTION f) case FUNCTION::FUNCTION_DP2: return "vec4(dot($0.xy, $1.xy))"; case FUNCTION::FUNCTION_DP2A: - return ""; + return "vec4(dot($0.xy, $1.xy) + $2.x)"; case FUNCTION::FUNCTION_DP3: return "vec4(dot($0.xyz, $1.xyz))"; case FUNCTION::FUNCTION_DP4: