summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2014-02-16Merge pull request #37 from degasus/VideoCommonApiFixesTony Wasserka
VideoCommon API cleanups
2014-02-16Remove the old MMIO access "interface".Pierre Bourdon
2014-02-16MMIO: Port the SW CP/PE MMIOs to the new interface.Pierre Bourdon
Migration is now complete.
2014-02-16MMIO: Port the VideoCommon CP MMIOs to the new interface (and provide ↵Pierre Bourdon
framework for other video related mappings).
2014-02-16Silence some Windows compiler warningsTillmann Karras
by adding explicit type casts.
2014-02-15inline SetViewport into VertexShaderManagerdegasus
2014-02-15merge some common parts of Swap() into VideoCommondegasus
2014-02-15use EFBRectangle for scissor rectdegasus
This one is backend independed. The backend should recalc such things on their own.
2014-02-15move perfquery enable checks into videocommon (caller side)degasus
2014-02-15rename UpdateViewport to SetViewport like all others setters in RenderBase.hdegasus
2014-02-15fix ogl video config crashdegasus
This will happen when playing on any other backend than ogl which have a non-trival GLInterface::GetMode() method.
2014-02-15move shared parts from VertexManager::vFlush into VideoCommondegasus
2014-02-15Kill off some usages of the ArraySize macro.Lioncash
This required the use of std::array in some cases.
2014-02-13Turn loops into range-based formTillmann Karras
and some things suggested by cppcheck and compiler warnings.
2014-02-10Replace all include guard ifdefs with "#pragma once"lioncash
2014-02-09Merge pull request #54 from lioncash/cleanupRyan Houdek
Cleanup mismatching struct/enum indentations.
2014-02-10Merge pull request #53 from lioncash/remove-another-xchgPierre Bourdon
Remove function Xchg from SWStatistics.cpp.
2014-02-09Remove function Xchg from SWStatistics.cpp. Like the one previous, this can ↵Lioncash
be replaced with std::swap
2014-02-09Clean up some struct indentationsLioncash
Also cleaned up the indentations of some variable declarations.
2014-02-09Cleanup enum indentations.Lioncash
2014-02-08Cleanup GLExtensions on how it fails.Ryan Houdek
If there is an issue with a reported extension, disable it instead of failing out entirely. Fixes an issue with buffer_storage that I had overlooked as well.
2014-02-08Improve GLExtensions compile time.Ryan Houdek
This changes from using logical and to bitwise and, which causes the compile time to drop from an absurd amount of time to around five seconds on my crappy laptop.
2014-02-04Merge pull request #14 from degasus/uboWorkaroundRemoveTony Wasserka
OGL: Remove non-UBO code path.
2014-02-04SWCommandProcessor: fix the CPReg structure fieldsPierre Bourdon
This structure fields should match byte-to-byte the layout of MMIO registers: it is addressed using the MMIO reg address when doing a CP MMIO read. This was unfortunately not the case, causing CP reads to be mostly broken with the software renderer.
2014-02-01OGL: remove ubo workarounddegasus
This was only keeped for some broken mesa versions. Meanwhile most used versions should be fixed for almost a year.
2014-01-31Merge pull request #11 from degasus/VertexLoaderCleanupTony Wasserka
Vertex loader cleanup.
2014-01-31VideoCommon: remove Cache Displaylistdegasus
This option was known to break every second game and only boost a bit. It also seems to be broken because of streaming into pinned memory and buffer storage buffers. v2: also remove dlc_desc
2014-01-31PortableVertexFormat: use AttributeFormat for posmtx attribute formatdegasus
2014-01-31PortableVertexFormat: use AttributeFormat for texcoord attribute formatdegasus
2014-01-31PortableVertexFormat: use AttributeFormat for color attribute formatdegasus
2014-01-31PortableVertexFormat: use AttributeFormat for normal attribute formatdegasus
2014-01-31PortableVertexFormat: add a struct which hold all needed information for ↵degasus
every vertex and use this for position atm, position attribute is hardcoded both in VertexLoader and in backends. v2: fix coding style + cleanup lookup table
2014-01-30NativeVertexFormat: swap unsigned / signed formats to match GX orderdegasus
2014-01-29[Android] Fix Adreno v53 development drivers rotating framebufferRyan Houdek
Older Qualcomm drivers rotated the framebuffer 90 degrees and this fix didn't work. Now for some obscene reason it rotates a full 180 degrees. This can at least be worked around by flipping around the image on our end.
2014-01-28OGL: remove version check for buffer_storage on windowsdegasus
On Windows, nvidia don't give us their driver version, so we can't workaround any issues. As buffer_storage is broken on some drivers, we wanted to disble it for them. So we can't. Luckyly only "some" released driver versions are affected as this extension is only available since some months. Let's hope that nobody have to use one of this driver version, else they will get a black screen ...
2014-01-26BBox: Changed the rounding again, the old one fixed Paper Mario but had bugs ↵crudelios
in Mickey's Magical Mirror. This change fixes the glitches in both games. Also fixed some compiler warnings.
2014-01-26OSX: don't avoid unsync mapping on nvida gpus just because the windows ↵degasus
driver doesn't like it OSX has their own driver, so performance issues aren't shared with the nvidia driver (unlike the closed source linux and windows nvidia driver). So now they'll also use the MapAndSync backend like all other osx drivers. fixes issue 6596 I've also cleaned up the if/else block selecting the best backend a bit.
2014-01-25Videosoftware: Fix memory cleanup code.Scott Mansell
2014-01-23Fix OpenGL 2.1 devices that support everything we need.Ryan Houdek
The only two devices that do this are Mesa software rasterizer and Intel Ironlake(With a few hacks). Basically since it doesn't support OpenGL 3.0, it can't grab the version the new way. So failing that, it sets to GL 2.1, and continues. Further along, on Ironlake at least, it tries grabbing the extensions the new GL 3.0 way and fails. So have a fallback that grabs the extensions string the old way, in probably the most elegant way possible.
2014-01-23OpenGL: remove unused OpenGL headersdegasus
2014-01-23D3D: move streaming buffer fallback into D3D backenddegasus
Neith OGL nor VideoCommon doen't use it, so there is no need to have it in VideoCommon.
2014-01-23OpenGL: Stream vertices + indicesdegasus
2014-01-23OpenGL: refactor all of our StreamBuffersdegasus
The old way was to use big switch/case statements based on a type of buffer. The new one is to use inheritance. This change prohibits us to change the buffer type while running, but I doubt we'll ever do so. Performance should also be a bit better. Also a nice cleanup. Added some comments about this different kind of buffers.
2014-01-23OpenGL: change StreamBuffer in a streaming waydegasus
This is a bit slower on map_and_* because of flushing and _very_ much slower on buffer(sub)?data because of a new memcpy. But this design allow us to decode directly into a gpu buffer, eg vertexloader will profit :)
2014-01-23[GLExt-Cleanup] This cleans up some extra bits unneeded in the extension headersRyan Houdek
gl.h and glext.h provide most of the function pointer typedefs and defines for extensions and core features. The only one it doesn't provide is GL 1.1 function typedefs, but this is to be expected. If anything needs defines or typedefs in their header in the future, that's as easy as before.
2014-01-21VideoCommon: merge trivial parts of VertexManager::Flushdegasus
2014-01-21OpenGL: remove small optimizationdegasus
This one was introduced to reduce the glBindTexture and glActiveTexture calls. But it was quite a bit of logic and only an improvment on uploading/creating a texture, which is done rarely.
2014-01-21OpenGL: fix our ubo workaround when blend_func_extended is missingdegasus
2014-01-21Finally Merge branch 'videosoftware-xfb'Scott Mansell
This adds xfb support to the videosoftware backend, which increases it's accuracy and more imporantly, enables the usage of many homebrew apps which write directly to the xfb on the videosoftware backend. Conflicts: Source/Core/VideoBackends/Software/SWRenderer.cpp Source/Core/VideoBackends/Software/SWmain.cpp
2014-01-20Move GLInterface.h into GLInterface directoryScott Moreau