From 9276b76fbc0ac77bad5f15ba3d8038c53943249e Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Fri, 2 Mar 2012 18:43:44 +0100 Subject: VideoSoftware: Implement zfreeze (GXSetCoPlanar). Fixes Mario Golf: Toadstool Tour's menus. Reference: The OpenGL extension SGIX_reference_plane seems to provide the same functionality: http://www.opengl.org/registry/specs/SGIX/reference_plane.txt --- Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Source/Plugins/Plugin_VideoSoftware') diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp index f688a33b78..c212c93601 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp @@ -64,7 +64,12 @@ RasterBlock rasterBlock; void Init() { - tev.Init(); + tev.Init(); + + // Set initial z reference plane in the unlikely case that zfreeze is enabled when drawing the first primitive. + // TODO: This is just a guess! + ZSlope.dfdx = ZSlope.dfdy = 0.f; + ZSlope.f0 = 1.f; } inline int iround(float x) @@ -364,7 +369,8 @@ void DrawTriangleFrontFace(OutputVertexData *v0, OutputVertexData *v1, OutputVer float w[3] = { 1.0f / v0->projectedPosition.w, 1.0f / v1->projectedPosition.w, 1.0f / v2->projectedPosition.w }; InitSlope(&WSlope, w[0], w[1], w[2], fltdx31, fltdx12, fltdy12, fltdy31); - InitSlope(&ZSlope, v0->screenPosition[2], v1->screenPosition[2], v2->screenPosition[2], fltdx31, fltdx12, fltdy12, fltdy31); + if (!bpmem.genMode.zfreeze) + InitSlope(&ZSlope, v0->screenPosition[2], v1->screenPosition[2], v2->screenPosition[2], fltdx31, fltdx12, fltdy12, fltdy31); for(unsigned int i = 0; i < bpmem.genMode.numcolchans; i++) { -- cgit v1.2.3 From b0f75f17ae19484735675fea348f7e95740f597f Mon Sep 17 00:00:00 2001 From: marcosvitali Date: Mon, 5 Mar 2012 02:40:10 -0300 Subject: This release still fixed the hangs produced by fifo overflow without sacrifice performance. For example you can test Tutorial moves at the beginning of The last history now is fluid 30/60. Shuffle2: I've delete the hacky line, I think is not necessary anymore. Additional some clean in CommandProcessor. Please test The Last Story and others games affected in the previous commits and give me a feedback. --- Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp | 6 ++++++ Source/Plugins/Plugin_VideoSoftware/Src/VideoBackend.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'Source/Plugins/Plugin_VideoSoftware') diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp index abfd9155f5..c591bd0957 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp @@ -215,6 +215,12 @@ bool VideoSoftware::Video_IsPossibleWaitingSetDrawDone(void) return false; } +bool VideoSoftware::Video_IsHiWatermarkActive(void) +{ + return false; +} + + void VideoSoftware::Video_AbortFrame(void) { } diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/VideoBackend.h b/Source/Plugins/Plugin_VideoSoftware/Src/VideoBackend.h index 08b4c155ad..7c52e34291 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/VideoBackend.h +++ b/Source/Plugins/Plugin_VideoSoftware/Src/VideoBackend.h @@ -36,7 +36,7 @@ class VideoSoftware : public VideoBackend void Video_SetRendering(bool bEnabled); void Video_GatherPipeBursted(); - + bool Video_IsHiWatermarkActive(); bool Video_IsPossibleWaitingSetDrawDone(); void Video_AbortFrame(); -- cgit v1.2.3 From c3d13b048c40b9df99d401939bd747e1de5c878e Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sun, 18 Mar 2012 02:31:19 -0700 Subject: build against wxWidgets3 from Externals on Windows. use Externals version of libpng on Windows. --- .../Plugin_VideoSoftware.vcxproj | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'Source/Plugins/Plugin_VideoSoftware') diff --git a/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj b/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj index db6f072f20..7235327fb9 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj +++ b/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj @@ -115,7 +115,7 @@ - ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) + ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets3;..\..\..\Externals\wxWidgets3\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) true @@ -126,7 +126,7 @@ - ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) + ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets3;..\..\..\Externals\wxWidgets3\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) true @@ -137,7 +137,7 @@ - ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) + ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets3;..\..\..\Externals\wxWidgets3\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) true @@ -150,7 +150,7 @@ - ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) + ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets3;..\..\..\Externals\wxWidgets3\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) true @@ -163,12 +163,12 @@ - ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) + ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets3;..\..\..\Externals\wxWidgets3\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) - ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) + ..\..\Core\Common\Src;..\..\Core\Core\Src;..\..\Core\VideoCommon\Src;..\..\Core\DolphinWX\Src;..\..\..\Externals\GLew\include;..\..\..\Externals\wxWidgets3;..\..\..\Externals\wxWidgets3\Include;..\..\..\Externals;%(AdditionalIncludeDirectories) @@ -233,15 +233,6 @@ - - {0e231fb1-f3c9-4724-accb-de8bcb3c089e} - - - {1c8436c9-dbaf-42be-83bc-cf3ec9175abe} - - - {11f55366-12ec-4c44-a8cb-1d4e315d61ed} - {3e5c4e02-1ba9-4776-bdbe-e3f91ffa34cf} -- cgit v1.2.3 From c5d746f3d87f70beb803218fc42f0c4859544b64 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sun, 18 Mar 2012 06:41:12 -0700 Subject: remove scons files from VS projects --- Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj | 1 - Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj.filters | 1 - 2 files changed, 2 deletions(-) (limited to 'Source/Plugins/Plugin_VideoSoftware') diff --git a/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj b/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj index 7235327fb9..66cfab9b01 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj +++ b/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj @@ -239,7 +239,6 @@ - diff --git a/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj.filters b/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj.filters index 57784e2717..4bc1901325 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj.filters +++ b/Source/Plugins/Plugin_VideoSoftware/Plugin_VideoSoftware.vcxproj.filters @@ -56,7 +56,6 @@ - -- cgit v1.2.3 From 56b1373baff6f152e51fda96d8d7c0296bff2a70 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sun, 25 Mar 2012 12:55:02 -0700 Subject: Remove scons-related files --- Source/Plugins/Plugin_VideoSoftware/SConscript | 35 -------------------------- 1 file changed, 35 deletions(-) delete mode 100644 Source/Plugins/Plugin_VideoSoftware/SConscript (limited to 'Source/Plugins/Plugin_VideoSoftware') diff --git a/Source/Plugins/Plugin_VideoSoftware/SConscript b/Source/Plugins/Plugin_VideoSoftware/SConscript deleted file mode 100644 index c7a1197f46..0000000000 --- a/Source/Plugins/Plugin_VideoSoftware/SConscript +++ /dev/null @@ -1,35 +0,0 @@ -# -*- python -*- - -Import('env') -import os -import sys - -files = [ - 'Src/BPMemLoader.cpp', - 'Src/CPMemLoader.cpp', - 'Src/Clipper.cpp', - 'Src/DebugUtil.cpp', - 'Src/EfbCopy.cpp', - 'Src/EfbInterface.cpp', - 'Src/HwRasterizer.cpp', - 'Src/OpcodeDecoder.cpp', - 'Src/Rasterizer.cpp', - 'Src/SWCommandProcessor.cpp', - 'Src/SWPixelEngine.cpp', - 'Src/SWRenderer.cpp', - 'Src/SWStatistics.cpp', - 'Src/SWVertexLoader.cpp', - 'Src/SWVideoConfig.cpp', - 'Src/SWmain.cpp', - 'Src/SetupUnit.cpp', - 'Src/Tev.cpp', - 'Src/TextureEncoder.cpp', - 'Src/TextureSampler.cpp', - 'Src/TransformUnit.cpp', - 'Src/XFMemLoader.cpp', - ] - -if not env['nowx']: - files += ['Src/VideoConfigDialog.cpp'] - -env['LIBS'] += env.StaticLibrary('videosoftware', files) -- cgit v1.2.3