dolphin/Source/Core/VideoCommon
Scott Mansell 1b771deb56 Move worldpos into it's own varying.
Previously it was packed into spare slots in clippos.xy and normal.w,
but it's ugly and more importantly it's causing bugs.

This was discovered during the debugging of a zfreeze branch, which
expected clippos.xy to be xy position coordinates in clipspace (as
the name suggested).

Turns out the stereoscopy shader had also run into this trap, modifying
clippos.x (introducing errors with per-pixel lighting).

This commit has been moved outside of the zfreeze PR for fast merging.
2015-01-03 09:23:09 +13:00
..
AVIDump.cpp Renamed EuRGB60 to PAL60 2014-11-18 16:51:21 -05:00
AVIDump.h Proper Audio/Video Dumping 2014-10-09 00:06:04 -04:00
BoundingBox.cpp VertexLoader: Add a VertexLoader pointer to each function call 2014-12-21 14:13:04 +01:00
BoundingBox.h VertexLoader: Add a VertexLoader pointer to each function call 2014-12-21 14:13:04 +01:00
BPFunctions.cpp VideoCommon: Merge LineGeometryShader into GeometryShaderGen. 2014-12-15 22:47:42 +01:00
BPFunctions.h VideoCommon: Merge LineGeometryShader into GeometryShaderGen. 2014-12-15 22:47:42 +01:00
BPMemory.cpp Include CommonTypes.h instead of Common.h. 2014-09-08 15:39:58 -04:00
BPMemory.h Silence some -Wswitch-default warnings. 2014-12-11 22:23:05 -06:00
BPStructs.cpp VideoCommon: split VertexLoaderBase from VertexLoader 2014-12-21 14:12:43 +01:00
BPStructs.h Add the 'desynced GPU thread' mode. 2014-09-28 21:34:29 -04:00
CMakeLists.txt VideoCommon: split VertexLoaderBase from VertexLoader 2014-12-21 14:12:43 +01:00
CommandProcessor.cpp Remove AtBreakpoint() from ReadIdle. Fixes Rogue Squadron 2 without 2014-12-27 19:16:50 -05:00
CommandProcessor.h Add the 'desynced GPU thread' mode. 2014-09-28 21:34:29 -04:00
ConstantManager.h GeometryShaderGen: Pack uniforms more tightly. 2014-12-18 00:36:40 +01:00
CPMemory.cpp Changes to allow LoadCPReg to work in a preprocess mode which affects a separate state. 2014-09-28 21:25:06 -04:00
CPMemory.h VideoCommon: split VertexLoaderBase from VertexLoader 2014-12-21 14:12:43 +01:00
DataReader.h VertexLoader: Move the old Datareader function into VertexLoader 2014-12-09 18:56:27 +01:00
Debugger.cpp Core: Remove UpdateFPSDisplay 2014-08-19 10:05:58 -04:00
Debugger.h Remove some unnecessary semicolons 2014-09-11 13:05:31 -04:00
DriverDetails.cpp DriverDetails: Remove Intel Structs bug since it doesn't affect us anymore. 2014-12-28 23:28:00 +01:00
DriverDetails.h DriverDetails: Remove Intel Structs bug since it doesn't affect us anymore. 2014-12-28 23:28:00 +01:00
Fifo.cpp FIFO: allocate slightly more for SIMD vertex loader overreads 2014-12-10 05:52:55 -08:00
Fifo.h VideoCommon: fifo cleanups 2014-12-09 18:56:27 +01:00
FPSCounter.cpp FPSCounter: Initialize members. 2014-07-26 14:37:18 +02:00
FPSCounter.h FPSCounter: Remove redundant destructor. 2014-07-18 12:49:40 +02:00
FramebufferManagerBase.cpp FramebufferManagerBase: Remove obsolete parameters. 2014-12-25 00:58:16 +01:00
FramebufferManagerBase.h Renderer: Use old method of calculating the source rectangle. 2014-12-25 02:37:22 +01:00
GeometryShaderGen.cpp Move worldpos into it's own varying. 2015-01-03 09:23:09 +13:00
GeometryShaderGen.h VideoCommon: Make IsPassthrough() a function of the ShaderUid. 2014-12-19 14:10:53 +01:00
GeometryShaderManager.cpp VideoConfig: Fix convergence parameter. 2014-12-29 12:03:59 +01:00
GeometryShaderManager.h GeometryShaderManager: Set stereo parameters in a SetConstants() call. 2014-12-20 13:16:26 +01:00
HiresTextures.cpp Allow custom textures to load from unicode paths. 2014-09-22 12:51:30 -04:00
HiresTextures.h Remove some unnecessary semicolons 2014-09-11 13:05:31 -04:00
ImageWrite.cpp Various formatting and consistency fixes 2014-11-13 22:42:18 -05:00
ImageWrite.h Include CommonTypes.h instead of Common.h. 2014-09-08 15:39:58 -04:00
IndexGenerator.cpp Include CommonTypes.h instead of Common.h. 2014-09-08 15:39:58 -04:00
IndexGenerator.h Video backends: warn on usage of GL_DRAW_QUADS_2. 2014-05-17 11:55:32 -07:00
LightingShaderGen.h PixelShaderGen: Don't assign to input variables. 2014-12-28 23:37:05 +01:00
LookUpTables.h Include CommonTypes.h instead of Common.h. 2014-09-08 15:39:58 -04:00
MainBase.cpp OGL: implement bounding box support with ssbo 2014-11-17 21:20:32 +01:00
MainBase.h Unify three types of non-FIFO requests to the GPU thread around Common::Event and Common::Flag. 2014-08-26 12:43:39 -04:00
NativeVertexFormat.h VideoCommon: split VertexLoaderBase from VertexLoader 2014-12-21 14:12:43 +01:00
OnScreenDisplay.cpp OGL: draw shadows within rasterfont itself 2014-12-20 13:31:41 +01:00
OnScreenDisplay.h Add missing includes where headers depend on other headers having been included first. 2014-10-21 21:22:16 -04:00
OpcodeDecoding.cpp VideoCommon: clean up VertexLoader 2014-12-09 18:56:27 +01:00
OpcodeDecoding.h VideoCommon: cleanup OpcodeDecoder 2014-12-09 18:56:27 +01:00
PerfQueryBase.cpp clang-modernize -use-nullptr 2014-03-09 21:14:26 +01:00
PerfQueryBase.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
PixelEngine.cpp OGL: implement bounding box support with ssbo 2014-11-17 21:20:32 +01:00
PixelEngine.h Reimplement Bounding Box calculation using the software renderer. 2014-10-10 12:27:06 +01:00
PixelShaderGen.cpp Move worldpos into it's own varying. 2015-01-03 09:23:09 +13:00
PixelShaderGen.h ShaderGen: Make use of padding to store the stereo flag. 2014-11-23 14:27:38 +01:00
PixelShaderManager.cpp GPU: Only load the relevant color components upon writes to the tev color registers. 2014-09-21 10:38:22 +02:00
PixelShaderManager.h GPU: Only load the relevant color components upon writes to the tev color registers. 2014-09-21 10:38:22 +02:00
PostProcessing.cpp Revert "Catch broken configurations inside of the Post Processing shaders." 2014-08-25 14:33:41 +02:00
PostProcessing.h PostProcessing: Add layered stereoscopy support. 2014-11-23 14:23:41 +01:00
RenderBase.cpp Renderer: Cosmetics. 2014-12-28 18:35:23 +01:00
RenderBase.h Renderer: Cosmetics. 2014-12-28 18:35:23 +01:00
sfont.inc VideoCommon: Start putting common texture decoding code in TextureDecoder_Common 2014-09-04 18:36:53 -07:00
ShaderGenCommon.h Move worldpos into it's own varying. 2015-01-03 09:23:09 +13:00
Statistics.cpp Statistics: Reformat stats string 2014-06-27 09:36:50 +02:00
Statistics.h VideoCommon: remove unused stats 2014-06-27 09:35:26 +02:00
TextureCacheBase.cpp VideoConfig: Rename "StereoMonoEFBDepth" to "StereoEFBMonoDepth" 2014-12-24 23:30:40 +01:00
TextureCacheBase.h VideoConfig: Rename "StereoMonoEFBDepth" to "StereoEFBMonoDepth" 2014-12-24 23:30:40 +01:00
TextureConversionShader.cpp Common: Remove locale based functions from CommonFuncs. 2014-12-05 20:55:29 -05:00
TextureConversionShader.h Include CommonTypes.h instead of Common.h. 2014-09-08 15:39:58 -04:00
TextureDecoder.h Add missing includes where headers depend on other headers having been included first. 2014-10-21 21:22:16 -04:00
TextureDecoder_Common.cpp Silence some -Wswitch-default warnings. 2014-12-11 22:23:05 -06:00
TextureDecoder_Generic.cpp Fix build failing when disabling precompiled headers. 2014-09-19 18:17:51 -04:00
TextureDecoder_x64.cpp Destroy OpenMP 2014-11-06 18:38:24 -08:00
VertexLoader.cpp VertexLoader: Skip vertices with position index = -1 2014-12-21 14:29:44 +01:00
VertexLoader.h VertexLoader: Skip vertices with position index = -1 2014-12-21 14:29:44 +01:00
VertexLoader_Color.cpp VertexLoader: Add a VertexLoader pointer to each function call 2014-12-21 14:13:04 +01:00
VertexLoader_Color.h VertexLoader: Add a VertexLoader pointer to each function call 2014-12-21 14:13:04 +01:00
VertexLoader_Normal.cpp VertexLoader: Add a VertexLoader pointer to each function call 2014-12-21 14:13:04 +01:00
VertexLoader_Normal.h Add missing includes where headers depend on other headers having been included first. 2014-10-21 21:22:16 -04:00
VertexLoader_Position.cpp VertexLoader: Skip vertices with position index = -1 2014-12-21 14:29:44 +01:00
VertexLoader_Position.h Add missing includes where headers depend on other headers having been included first. 2014-10-21 21:22:16 -04:00
VertexLoader_TextCoord.cpp VertexLoader: Add a VertexLoader pointer to each function call 2014-12-21 14:13:04 +01:00
VertexLoader_TextCoord.h VertexLoader: Change VtxDesc to use u64 instead of u32 2014-09-01 11:18:02 +02:00
VertexLoaderBase.cpp VertexLoader: Add a test loader which compares two vertex loaders 2014-12-21 14:13:04 +01:00
VertexLoaderBase.h VideoCommon: split VertexLoaderBase from VertexLoader 2014-12-21 14:12:43 +01:00
VertexLoaderManager.cpp VideoCommon: split VertexLoaderBase from VertexLoader 2014-12-21 14:12:43 +01:00
VertexLoaderManager.h VideoCommon: clean up VertexLoader 2014-12-09 18:56:27 +01:00
VertexLoaderUtils.h VideoSW: rewrite VertexLoader to use the VideoCommon one 2014-12-13 10:29:08 +01:00
VertexManagerBase.cpp GeometryShaderManager: Set stereo parameters in a SetConstants() call. 2014-12-20 13:16:26 +01:00
VertexManagerBase.h VideoCommon: clean up VertexLoader 2014-12-09 18:56:27 +01:00
VertexShaderGen.cpp Move worldpos into it's own varying. 2015-01-03 09:23:09 +13:00
VertexShaderGen.h VideoCommon: Assume we always use a geometry shader, not just for stereoscopy. 2014-12-15 22:47:41 +01:00
VertexShaderManager.cpp VertexShaderManager: Turn off the epsilon hack for Nvidia 3D Vision. 2014-12-29 17:05:39 +01:00
VertexShaderManager.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
VideoBackendBase.cpp Migrate global init stuff into UICommon. 2014-10-05 20:47:37 -04:00
VideoBackendBase.h OGL: implement bounding box support with ssbo 2014-11-17 21:20:32 +01:00
VideoCommon.h VideoCommon: Rename s_pCurBufferPointer 2014-12-09 18:56:27 +01:00
VideoCommon.vcxproj VideoCommon: split VertexLoaderBase from VertexLoader 2014-12-21 14:12:43 +01:00
VideoCommon.vcxproj.filters VideoCommon: split VertexLoaderBase from VertexLoader 2014-12-21 14:12:43 +01:00
VideoConfig.cpp VideoConfig: Don't disable stereoscopy if Real XFB is enabled but not in use. 2014-12-29 19:15:31 +01:00
VideoConfig.h VideoConfig: Fix convergence parameter. 2014-12-29 12:03:59 +01:00
VideoState.cpp VideoCommon: Add a separate constants buffer for the geometry shader. 2014-12-14 21:23:13 +01:00
VideoState.h Convert some more header inclusions into forward declarations 2014-07-29 20:55:07 -04:00
XFMemory.cpp Video backends: mass-replace "xfregs" with "xfmem". 2014-05-16 18:58:07 -07:00
XFMemory.h VideoCommon: cleanup OpcodeDecoder 2014-12-09 18:56:27 +01:00
XFStructs.cpp VideoCommon: Add a separate constants buffer for the geometry shader. 2014-12-14 21:23:13 +01:00
XFStructs.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00