dolphin/Source/Core/VideoCommon/Src
Rodolfo Osvaldo Bogado 8de76f8fe8 ok big changes here:
in videocommon little fix for the alpha test values, return to the original values as they are more accurate.
in D3D:
huge change in state management, now all the state management is centralized and redundant state changes are eliminated.
Fixed the overlapped viewport error in non ati cards:
the error was caused by this: when a viewport is defined larger than the current rendertarget, an error is thrown and the last valid viewport is used, this is the reference behavior, in ati cards if a larger viewport is defined, no eror is returned, the rendering is valid and is rendered using the projection defined by the viewport but limited to the rendertarget are, exactly like opengl or the GC hardware.
to solve this in reference drivers defined a large rendertarget (2x the size of the original) and proceed to render in a centered quad insithe the larger rendertarget, in this way larger viewports always falls inside a valid rendertarget size, the drawback of this is the waste of resources. it can be dynamized, depending or games or changed at runtime when a oversized viewport is detected, but i live that to future commits.
please test this and let me know the results.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4841 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-15 15:52:08 +00:00
..
OpenCL OpenCL: Fixed and enabled CMPR decompression 2009-10-22 01:42:21 +00:00
AVIDump.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
AVIDump.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
BPFunctions.h D3D: Fix some texture wrapping issues by setting the texture state for every texture used at draw time. Hopefully there will not be a noticable slowdown, thanks to the state caching. Also some minor cleanup. Should fix issues like repeated shadows. TODO: In theory it should have worked without this, so I should investigate why this change was needed. 2010-01-12 23:40:30 +00:00
BPMemory.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
BPMemory.h fix Jit64::fmrx (well, fixes soul calibur 2 SPS at least) cottonvibes wrote this :) 2009-10-29 04:01:31 +00:00
BPStructs.cpp D3D: Fix some texture wrapping issues by setting the texture state for every texture used at draw time. Hopefully there will not be a noticable slowdown, thanks to the state caching. Also some minor cleanup. Should fix issues like repeated shadows. TODO: In theory it should have worked without this, so I should investigate why this change was needed. 2010-01-12 23:40:30 +00:00
BPStructs.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
CPMemory.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
CPMemory.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
CommandProcessor.cpp This could alleviate the suffering of dual core synchronization a bit. 2010-01-14 10:52:14 +00:00
CommandProcessor.h Fixed Issue 1711 (a bug that prevents some games from booting) 2009-12-31 16:25:12 +00:00
DataReader.h D3D: Fix 8-bit signed normals. Fixes lighting problems in Super Smash Bros Melee. misc tiny things 2009-09-13 21:18:04 +00:00
Fifo.cpp This could alleviate the suffering of dual core synchronization a bit. 2010-01-14 10:52:14 +00:00
Fifo.h 1. This should fix Issue 1625 (Bizarre Auto Frame Limit) 2010-01-07 20:01:41 +00:00
HiresTextures.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
HiresTextures.h DX9: - Add hires texture loading. 2009-12-22 06:47:42 +00:00
ImageWrite.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
ImageWrite.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
IndexGenerator.cpp Sps fixed in all the games tested, code cleanup and reordering 2009-10-06 14:24:10 +00:00
IndexGenerator.h Sps fixed in all the games tested, code cleanup and reordering 2009-10-06 14:24:10 +00:00
LookUpTables.h Don't use lookup tables. It's better to use CPU registers and reduce memory accesses. 2009-07-30 20:29:52 +00:00
NativeVertexFormat.h D3D: Fix 8-bit signed normals. Fixes lighting problems in Super Smash Bros Melee. misc tiny things 2009-09-13 21:18:04 +00:00
NativeVertexWriter.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
NativeVertexWriter.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
OnScreenDisplay.cpp Moving more things out of GL into VideoCommon... 2009-09-03 20:37:35 +00:00
OnScreenDisplay.h Moving more things out of GL into VideoCommon... 2009-09-03 20:37:35 +00:00
OpcodeDecoding.cpp STAND BACK - NEWLINE POLICE 2009-11-15 22:26:39 +00:00
OpcodeDecoding.h I hope you all like this. Changes: 2009-10-02 14:03:07 +00:00
PixelEngine.cpp small code cleanup: rename "dual core" stuff to CPUThread, bOnThread, etc. 2009-10-23 15:26:35 +00:00
PixelEngine.h Moving pixel engine and command processor from core to video common. This will break previous save states. Adds decoding single pixels to texture decoder. 2009-10-10 21:19:39 +00:00
PixelShaderGen.cpp ok big changes here: 2010-01-15 15:52:08 +00:00
PixelShaderGen.h Implemented secondary path for hardware with no multiples render target support, so please a lot of testing from people with problems in the last release. 2009-11-10 12:45:03 +00:00
PixelShaderManager.cpp NSMB background fix. Fixes 1654. 2009-12-21 20:30:01 +00:00
PixelShaderManager.h a minor cleanup in xf registers, an some small bug fixes. please test and give me feedback 2009-11-19 02:28:41 +00:00
Profiler.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
Profiler.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
Render.h ok big changes here: 2010-01-15 15:52:08 +00:00
SConscript Delete the misnamed GlobalControl.cpp/h, move the (ugly) projection hack code that was there into VertexShaderManager where it belongs. 2009-12-05 13:56:23 +00:00
Statistics.cpp D3D various: "Safe texture cache" option, texture replace instead of destroy/create when possible, a commented out "optimization" that didn't speed things up (use DrawPrimitive instead of DrawIndexedPrimitive when possible), reduce code duplication in Flush(), don't periodically clean out the shader caches since it's not really beneficial - shaders are cheap to keep. some code cleanup. 2009-09-19 13:14:55 +00:00
Statistics.h D3D various: "Safe texture cache" option, texture replace instead of destroy/create when possible, a commented out "optimization" that didn't speed things up (use DrawPrimitive instead of DrawIndexedPrimitive when possible), reduce code duplication in Flush(), don't periodically clean out the shader caches since it's not really beneficial - shaders are cheap to keep. some code cleanup. 2009-09-19 13:14:55 +00:00
TextureConversionShader.cpp mixed commit: 2009-12-07 18:48:31 +00:00
TextureConversionShader.h Well this commit has 2 parts: 2009-11-20 18:46:30 +00:00
TextureDecoder.cpp ok big changes here: 2010-01-15 15:52:08 +00:00
TextureDecoder.h mixed commit: 2009-12-07 18:48:31 +00:00
VertexLoader.cpp Fix missing shading in NSMBWii etc in the D3D plugin. Now, I'm not entirely sure why the existing code didn't work properly, but hey, this fixes it :) 2010-01-12 00:08:02 +00:00
VertexLoader.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
VertexLoaderManager.cpp Frameskipping! Complete with GUI! Even my most naive approach resulted in great speeds, even with graphic-intensive games such as Pikmin. 2009-08-08 01:39:56 +00:00
VertexLoaderManager.h make DLCache compile on linux, required some weird casting so tell me 2009-08-10 06:18:10 +00:00
VertexLoader_Color.cpp Got rid of all of jp's ////////////////////////////// lines (nearly 500 of them)! 2009-09-02 21:00:45 +00:00
VertexLoader_Color.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
VertexLoader_Normal.cpp D3D: Fix 8-bit signed normals. Fixes lighting problems in Super Smash Bros Melee. misc tiny things 2009-09-13 21:18:04 +00:00
VertexLoader_Normal.h D3D: Fix 8-bit signed normals. Fixes lighting problems in Super Smash Bros Melee. misc tiny things 2009-09-13 21:18:04 +00:00
VertexLoader_Position.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
VertexLoader_Position.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
VertexLoader_TextCoord.cpp Linux: Tons of warning cleanup plus workaround a nasty crash problem in StatusBarMessage. 2009-09-08 21:16:05 +00:00
VertexLoader_TextCoord.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
VertexShaderGen.cpp this is a dev commit, a cleanup in the pixel shader generator to make the generate code a lot cleaner and readable, and a little fill rate optimization when using alpha test, i don't thing any game is limited by fill rate but the code looks more cleaner and is ordered in the same way is executed in hardware. 2010-01-12 03:39:14 +00:00
VertexShaderGen.h D3D: Minor bug fix and some code cleanup for DirectX API call reduction. 2009-09-10 03:36:32 +00:00
VertexShaderManager.cpp minor code cleanup 2009-12-05 14:01:29 +00:00
VertexShaderManager.h Delete the misnamed GlobalControl.cpp/h, move the (ugly) projection hack code that was there into VertexShaderManager where it belongs. 2009-12-05 13:56:23 +00:00
VideoCommon.h D3D various: "Safe texture cache" option, texture replace instead of destroy/create when possible, a commented out "optimization" that didn't speed things up (use DrawPrimitive instead of DrawIndexedPrimitive when possible), reduce code duplication in Flush(), don't periodically clean out the shader caches since it's not really beneficial - shaders are cheap to keep. some code cleanup. 2009-09-19 13:14:55 +00:00
VideoConfig.cpp Add "Auto Aspect Ratio" to both graphics plugins. It's the new default, so you can forget about switching aspect manually from now on. In the Auto mode, aspect ratio is automatically set depending on whether it's a Wii or GC game, and whether the global Wii Widescreen setting has been set. There is still the possibility to override, which can be useful for the very few GC games that do support widescreen. 2010-01-13 21:11:02 +00:00
VideoConfig.h Add "Auto Aspect Ratio" to both graphics plugins. It's the new default, so you can forget about switching aspect manually from now on. In the Auto mode, aspect ratio is automatically set depending on whether it's a Wii or GC game, and whether the global Wii Widescreen setting has been set. There is still the possibility to override, which can be useful for the very few GC games that do support widescreen. 2010-01-13 21:11:02 +00:00
VideoState.cpp Moving pixel engine and command processor from core to video common. This will break previous save states. Adds decoding single pixels to texture decoder. 2009-10-10 21:19:39 +00:00
VideoState.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
XFBConvert.cpp Woops, that is why getting work group size failed 2009-10-07 07:44:35 +00:00
XFBConvert.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
XFMemory.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
XFMemory.h a minor cleanup in xf registers, an some small bug fixes. please test and give me feedback 2009-11-19 02:28:41 +00:00
XFStructs.cpp a minor cleanup in xf registers, an some small bug fixes. please test and give me feedback 2009-11-19 02:28:41 +00:00
XFStructs.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
memcpy_amd.cpp GL Vertex loader moved to VideoCommon. 2008-12-26 13:09:16 +00:00