summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src
AgeCommit message (Collapse)Author
2013-11-03Run code through clang-modernize -loop-convert to create range-based for ↵comex
loops, and manually fix some stuff up.
2013-11-02Actually, filename really does need to be a parameter because of some random ↵comex
debug thing.
2013-11-02fix non-HAVE_WX casecomex
2013-11-02Handle screenshot saving in RenderBase. Removes dependency on D3DX11 for ↵comex
screenshots (texture dumping is still broken).
2013-10-31Merge remote-tracking branch 'shuffle2/vc12'comex
Conflicts: Source/Core/Common/Common.vcxproj Source/Core/Common/Common.vcxproj.filters
2013-10-29VideoCommon: drop UpdateViewportWithCorrectiondegasus
It's only used once in BPFunction which itself is also only used once. So the setter is moved to BPStructs like all other ones.
2013-10-29VideoCommon: remove constants.depthparams[2+3] as they aren't used in the ↵degasus
shader at all
2013-10-29ogl: remove some unneeded includesdegasus
2013-10-29VideoCommon: move ViewportCorrection into VideoCommondegasus
D3D doesn't allow bigger viewports than rendertargets. But flipper does, so the viewport will be clipped and the transformation matrix will be changed. This was done in the D3D backend itself. This is now moved into VideoCommon. This don't reduce code, but in this way, VideoCommon doesn't depend on the backends.
2013-10-29VideoCommon: Drop D3D9 SSAA implementationdegasus
This isn't needed for both OGL+D3D11 as they support sample shading directly. So we could use the common MSAA util shaders instead of writing custom ones.
2013-10-26Update to VS2013 and a slew of build-related updates. Notes:Shawn Hoffman
* Currently there is no DEBUGFAST configuration. Defining DEBUGFAST as a preprocessor definition in Base.props (or a global header) enables it for now, pending a better method. This was done to make managing the build harder to screw up. However it may not even be an issue anymore with the new .props usage. * D3DX11SaveTextureToFile usage is dropped and not replaced. * If you have $(DXSDK_DIR) in your global property sheets (Microsoft.Cpp.$(PlatformName).user), you need to remove it. The build will error out with a message if it's configured incorrectly. * If you are on Windows 8 or above, you no longer need the June 2010 DirectX SDK installed to build dolphin. If you are in this situation, it is still required if you want your built binaries to be able to use XAudio2 and XInput on previous Windows versions. * GLew updated to 1.10.0 * compiler switches added: /volatile:iso, /d2Zi+ * LTCG available via msbuild property: DolphinRelease * SDL updated to 2.0.0 * All Externals (excl. OpenAL and SDL) are built from source. * Now uses STL version of std::{mutex,condition_variable,thread} * Now uses Build as root directory for *all* intermediate files * Binary directory is populated as post-build msbuild action * .gitignore is simplified * UnitTests project is no longer compiled
2013-10-19Remove some unnecessary includes as well as simplifying exisiting ones if ↵Lioncash
possible.
2013-10-16Fix rendering on Adreno and Mali. This adds a new DriverDetails bug to know ↵Ryan Houdek
if the bufferstreaming is broken. Thanks degasus for fixing this.
2013-10-15ShaderGen: fix for commit bd80de14f4cadegasus
2013-10-15ShaderGen: drop PerPixelLighting + 8Texcoord hackdegasus
D3D9 only supports 8 texcoords. But we need a new one for ppl, so we just store it in the first 4 texcoords in the free 4th component. This isn't needed for both d3d11 and ogl3, so just remove it.
2013-10-15ShaderGen: remove nonsense for() if() {}degasus
2013-10-13Perf: Use unordered_map instead of map in very slightly hot function.comex
Incrementing an unordered_map's iterator is a bit faster.
2013-10-13Remove unused variable waitingForPEInterruptDisable.comex
2013-10-13PixelShaderGen: Refine the comment from revision 3fbe1b1ccdcf.NeoBrainX
2013-10-13VideoCommon: Update FastDepth's commentdegasus
2013-10-13VideoCommon: revert the ViewPort changesdegasus
xfregs isn't written when calling this function, so we have to use such an invalid flag :-(
2013-10-12VideoCommon: reimplement Dirty() in PixelShaderManagerdegasus
This isn't needed in VertexShaderManager as it's still in the old dirty flag way. But it's very importend for PixelShaderManager as some float4s aren't initialized as 0.0f
2013-10-12VideoCommon: fix dstAlphadegasus
2013-10-12VideoCommon: remove SetVSConstant4fdegasus
2013-10-12OGL: update ubo workarounddegasus
2013-10-12VideoCommon: refactor PixelShaderManager settersdegasus
The old way was to use a dirty flag per setter. Now we just update the const buffer per setter directly. The old optimization isn't needed any more as the setters don't call the backend any more. The follow parts are rewritten: Alpha ZTextureType zbias FogParam FogColor Color TexDim IndMatrix MaterialColor FogRangeAdjust Lights
2013-10-12videoCommon: remove not supported constant typesdegasus
I'm pretty sure GPUs can read u8 values, but this isn't exported by the API. But hey, see unpackSnorm4x8 :-)
2013-10-12D3D: also uses VideoCommon constant buffer handlingdegasus
As now both backends uses the VideoCommon one, the old setting API was removed.
2013-10-12ogl: implement useful constant buffer uploaddegasus
this will remove the additional memcpy introduced in my last commit
2013-10-12VideoCommon: keep a copy of the const buffer in VideoCommondegasus
The upload in the backend isn't done, it's just pushed by the mostly removed SetMulti*SConstant4fv. Also no optimizations was done on VideoCommon side, but I can start now :-) Sorry for the hacky way, but I think this is a nice (working) snapshot for a much bigger change.
2013-10-07Put Plugins/ in Core/, rename to VideoBackendsJasper St. Pierre
2013-10-06Fix PixelShaderGen from the previous commit.Ryan Houdek
2013-10-06[Android] Missed a few things for PowerVR544MP3 'support.' It doesn't ↵Ryan Houdek
actually get any video output on it just like Tegra 4.
2013-10-06Only emit the texgens if they are used, not every single time do all of them.Ryan Houdek
2013-10-06Removing more references to D3D9.Tony Wasserka
2013-10-06Remove another D3D9 reference.Tony Wasserka
2013-10-06Remove more references to D3D9...Tony Wasserka
2013-10-06Shader generators: Remove any references to D3D9 and cleanup the affected code.Tony Wasserka
2013-10-06Remove some now unused VideoConfig settings.Tony Wasserka
2013-10-06Remove D3D9 related files.Lioncash
Cf. issue 6167 for a list of shortcomings that made us decide on removing the backend.
2013-10-06[Android] Tegra 4 'support.' This brings up the OpenGL backend to support ↵Ryan Houdek
Tegra 4 to the point where it will run games but it doesn't have any video output for some reason. This is a large change that doesn't actually change much functionally. Walking through the changes. It changes the string in the Android backend select to just OpenGL ES. Adds a check in the Android code to check for Tegra 4 and to enable the option to select the OpenGL ES backend. Adds a DriverDetails bug under BUG_ISTEGRA as a blanket case of Tegra 4 support. The changes that effects most lines in this change. Removing all float suffixes in the pixel/vertex/util shaders since OpenGL ES 2 doesn't support float suffixes. Disables the shaders for reinterpreting the EFB format since Tegra 4 doesn't support integers. Changes GLFunctions.cpp to grab the correct Tegra extension functions. Readds the GLSL 1.2 'hacks' as GLSLES2 'hacks' since they are required for GLSL ES 2 Adds a GLSLES2 to the GLSL_VERSION enum. Disable the SamplerCache on Tegra since Tegra doesn't support samplers... Enable glBufferSubData on Tegra since it is the only mobile GPU to correctly work with it. Disable glDrawRangeElements on Tegra since it doesn't support it, This uses glDrawElements instead.
2013-09-28Support a gcm revision-specific game ini for cheats + partially fix gecko ↵comex
codes in default ini. The local ini is not revision-specific because it would require renaming everything. Meh.
2013-09-26Quick build fix.Ryan Houdek
2013-09-26[Android] The dynamic UBO access isn't actually fixed, contrary to what rev ↵Ryan Houdek
cd646d8e236 said. I presumed it fixed with v4x drivers, but I didn't have the LG G2 with me to test 100% at the time. This won't afflict any Adreno device with v4x drivers since UBOs are disabled for them since they are _broken_.
2013-09-25[Android] The issue with the dynamic UBO access on Adreno platforms was ↵Ryan Houdek
fixed with v41 of the video drivers. v41 and above of the video drivers fix the spiky polygon problems that are noticed ingames.
2013-09-24Merge branch 'fix-field-ordering'Scott Mansell
Fixes 6387 Closes 6635
2013-09-23[Android] Fix the ability to stop the game and start another.Ryan Houdek
2013-09-23Remove all refrences of field ordering from video backends.Scott Mansell
They were unused.
2013-09-22ogl: drop glsl120 supportdegasus
2013-09-22Fix stack misalignment fix.comex