From a2f7f371dcb330cae43b2d88d62a7f6fe132154e Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Thu, 29 Oct 2015 22:33:08 +0100 Subject: [PATCH] d3d12: Add an extra varying. This fixes shader compilation for SH3 HD. --- rpcs3/Emu/RSX/D3D12/D3D12FragmentProgramDecompiler.cpp | 1 + rpcs3/Emu/RSX/D3D12/D3D12VertexProgramDecompiler.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/rpcs3/Emu/RSX/D3D12/D3D12FragmentProgramDecompiler.cpp b/rpcs3/Emu/RSX/D3D12/D3D12FragmentProgramDecompiler.cpp index c26f86c2ff..4ad6251a59 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12FragmentProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/D3D12/D3D12FragmentProgramDecompiler.cpp @@ -62,6 +62,7 @@ void D3D12FragmentDecompiler::insertIntputs(std::stringstream & OS) OS << " float4 tc6 : TEXCOORD6;" << std::endl; OS << " float4 tc7 : TEXCOORD7;" << std::endl; OS << " float4 tc8 : TEXCOORD8;" << std::endl; + OS << " float4 tc9 : TEXCOORD9;" << std::endl; OS << "};" << std::endl; } diff --git a/rpcs3/Emu/RSX/D3D12/D3D12VertexProgramDecompiler.cpp b/rpcs3/Emu/RSX/D3D12/D3D12VertexProgramDecompiler.cpp index 0c2c986baa..6954d1ed99 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12VertexProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/D3D12/D3D12VertexProgramDecompiler.cpp @@ -84,6 +84,7 @@ void D3D12VertexProgramDecompiler::insertOutputs(std::stringstream & OS, const s OS << " float4 dst_reg13 : TEXCOORD6;" << std::endl; OS << " float4 dst_reg14 : TEXCOORD7;" << std::endl; OS << " float4 dst_reg15 : TEXCOORD8;" << std::endl; + OS << " float4 dst_reg16 : TEXCOORD9;" << std::endl; OS << "};" << std::endl; }