From 4d00ac3486fb70ccf7015b17b81f8cddac8d4b0c Mon Sep 17 00:00:00 2001 From: crosire Date: Thu, 19 Apr 2018 00:25:41 +0200 Subject: [PATCH 1/4] Bump up version --- res/d3d8to9.rc | Bin 4446 -> 4446 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/res/d3d8to9.rc b/res/d3d8to9.rc index 3aa67c3fb355ddbf6b3341b816db1bcd6744648b..0fb78511198c0aa1f85ff9cebcc31906051ad0a0 100644 GIT binary patch delta 35 rcmcbobWdqR69=Qk=4K9NW_Ak(Jq7~?y~*)hl9L^HI5w~2-oOd~x(NxO delta 35 rcmcbobWdqR69=RD=4K9NW_EK1Jq7~?y~*)hl9L^HI5w~2-oOd~x!MVy From 52a32ef4d8f569ec299bcad13f1a531ce12504c1 Mon Sep 17 00:00:00 2001 From: crosire Date: Sun, 3 Jun 2018 13:47:57 +0200 Subject: [PATCH 2/4] Fix single component selection for "oFog" output in vertex shaders if instruction is "mad" instead of "mov" Fixes #81 --- source/d3d8to9_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/d3d8to9_device.cpp b/source/d3d8to9_device.cpp index 7ddf0e3..2b7e9ef 100644 --- a/source/d3d8to9_device.cpp +++ b/source/d3d8to9_device.cpp @@ -1411,7 +1411,7 @@ HRESULT STDMETHODCALLTYPE Direct3DDevice8::CreateVertexShader(const DWORD *pDecl SourceCode = std::regex_replace(SourceCode, std::regex("(oFog|oPts)\\.x"), "$1 /* removed swizzle */"); SourceCode = std::regex_replace(SourceCode, std::regex("(add|sub|mul|min|max) (oFog|oPts), ([cr][0-9]+), (.+)\\n"), "$1 $2, $3.x /* added swizzle */, $4\n"); SourceCode = std::regex_replace(SourceCode, std::regex("(add|sub|mul|min|max) (oFog|oPts), (.+), ([cr][0-9]+)\\n"), "$1 $2, $3, $4.x /* added swizzle */\n"); - SourceCode = std::regex_replace(SourceCode, std::regex("mov (oFog|oPts)(.*), (-?)([crv][0-9]+(?![\\.0-9]))"), "mov $1$2, $3$4.x /* select single component */"); + SourceCode = std::regex_replace(SourceCode, std::regex("(mov|mad) (oFog|oPts)(.*), (-?)([crv][0-9]+(?![\\.0-9]))"), "$1 $2$3, $4$5.x /* select single component */"); // Destination register cannot be the same as first source register for m*x* instructions. if (std::regex_search(SourceCode, std::regex("m.x."))) From 6adcf59eed2875f5c7bbe156391696bf835e422e Mon Sep 17 00:00:00 2001 From: crosire Date: Sun, 3 Jun 2018 13:50:05 +0200 Subject: [PATCH 3/4] Update Visual Studio project files to Visual Studio 2017 --- d3d8to9.sln | 2 +- d3d8to9.vcxproj | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/d3d8to9.sln b/d3d8to9.sln index 2165dc1..7253a9e 100644 --- a/d3d8to9.sln +++ b/d3d8to9.sln @@ -1,6 +1,6 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 +# Visual Studio 15 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "d3d8to9", "d3d8to9.vcxproj", "{7EE21ADA-3B02-4CD6-A891-C2257A54B061}" EndProject Global diff --git a/d3d8to9.vcxproj b/d3d8to9.vcxproj index 8c351b0..6c60edd 100644 --- a/d3d8to9.vcxproj +++ b/d3d8to9.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -17,13 +17,13 @@ DynamicLibrary true - v140 + v141 Unicode DynamicLibrary false - v140 + v141 true Unicode From 00023b33eb556612336fd4fe9b9d5914d34abb37 Mon Sep 17 00:00:00 2001 From: crosire Date: Sun, 3 Jun 2018 13:50:12 +0200 Subject: [PATCH 4/4] Bump up version --- res/d3d8to9.rc | Bin 4446 -> 4446 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/res/d3d8to9.rc b/res/d3d8to9.rc index 0fb78511198c0aa1f85ff9cebcc31906051ad0a0..292e945a69f11482b3fad453415738f29076908f 100644 GIT binary patch delta 35 rcmcbobWdqR69=Q^=4K9NW_C*kJq7~?y~*)hl9L^HI5w~2-oOd~x;P1< delta 35 rcmcbobWdqR69=Qk=4K9NW_Ak(Jq7~?y~*)hl9L^HI5w~2-oOd~x(NxO