summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2017-03-14Merge pull request #4973 from z0z0z/masterMarkus Wick
Disable pinned memory for AMD mesa drivers
2017-03-14OGL: Remove support for NV_depth_buffer_float.Jules Blok
We can't clamp the depth values to the 24-bit range while this extension is active.
2017-03-11Merge pull request #5065 from JosJuice/characterStenzek
Fix issue 10146 (compilation issue because of colliding defines)
2017-03-11Fix issue 10146 (compilation issue because of colliding defines)JosJuice
2017-03-10Merge pull request #4935 from Armada651/depth-range-fixMarkus Wick
VideoBackends: Set the maximum range when the depth range is oversized.
2017-03-10D3D11: Fix error on startup with >2.5xIR selectedStenzek
2017-03-09Merge pull request #5051 from stenzek/renderer-fixesMarkus Wick
VideoBackends: Fix crashes introduced by #4999
2017-03-09Unify the way of setting game ID, title ID, revisionJosJuice
The existing code from ConfigManager, ES and MIOS is merged into a new set of functions called SetRunningGameMetadata.
2017-03-10VideoBackends: Move max texture size to VideoConfigStenzek
This stops the virtual method call from within the Renderer constructor. The initialization here for GL had to be moved to VideoBackend, as the Renderer constructor will not have been executed before the value is required.
2017-03-08Merge pull request #4999 from stenzek/renderer-staticsMarkus Wick
VideoCommon: Eliminate static state in Renderer
2017-03-05Merge pull request #5007 from lioncash/swapMat M
Common: Move byte swapping utilities into their own header
2017-03-04Merge pull request #5011 from stenzek/d3d-texture-corruptionMarkus Wick
D3D11: Use default usage for TextureCache entries
2017-03-04D3D11: Drop unused method ReplaceRGBATexture2DStenzek
2017-03-04D3D11: Use D3D11_USAGE_DEFAULT for all TextureCache texturesStenzek
2017-03-04Vulkan: Fix underflow in StreamBuffer::WaitForClearSpaceStenzek
This could cause the assertion on line 212 to fail when uploading large amounts of data in between command buffer executions.
2017-03-04VideoCommon: Move last EFB scale handling to CalculateTargetSizeStenzek
2017-03-04VideoCommon: Rename Renderer s_ prefixes to m_Stenzek
2017-03-04VideoCommon: Move some common initialization logic to RenderBaseStenzek
2017-03-04VideoCommon: Eliminate static state in RendererStenzek
2017-03-03Common: Move byte swapping utilities into their own headerLioncash
This moves all the byte swapping utilities into a header named Swap.h. A dedicated header is much more preferable here due to the size of the code itself. In general usage throughout the codebase, CommonFuncs.h was generally only included for these functions anyway. These being in their own header avoids dumping the lesser used utilities into scope. As well as providing a localized area for more utilities related to byte swapping in the future (should they be needed). This also makes it nicer to identify which files depend on the byte swapping utilities in particular. Since this is a completely new header, moving the code uncovered a few indirect includes, as well as making some other inclusions unnecessary.
2017-03-02Vulkan: Fix issue where target rectangle changes weren't detectedStenzek
This was causing issues when toggling the crop setting, as well as some widescreen hacks.
2017-03-02Merge pull request #4993 from ligfx/fixsonicadventure2Stenzek
OGL SetBlendMode: always set blend equation and func
2017-03-01CMakeLists: Normalize whitespaceLioncash
Normalizes tabs to spaces to follow our codebase's indentation style.
2017-03-01OGL SetBlendMode: always set blend equation and funcMichael Maltese
Before #4581, an invocation of `SetBlendMode` could invoke `glBlendEquationSeparate` and `glBlendFuncSeparate` even when it was setting `glDisable(GL_BLEND)`. I couldn't figure out how to map the old behavior over to the new BlendingState code, so I changed it to always call the two blend functions. Fixes https://bugs.dolphin-emu.org/issues/10120 : "Sonic Adventure 2 Battle: graphics crash when loading first Dark level".
2017-02-26Disable pinned memory for AMD mesa driversz0z0z
2017-02-26VideoBackends: Use vertex shader depth range if ztexture is used.Jules Blok
2017-02-24VideoBackends: Remove depth range clamping hacks.Jules Blok
Oversized depth ranges are handled correctly now, we don't need to hack around them with clamps anymore.
2017-02-24OGL: Add support for glDepthRangedNV to handle oversized depth ranges.Jules Blok
2017-02-21VideoBackends: Set the maximum range when the depth range is oversized.Jules Blok
The depth values generated by the vertex shader need to be clamped correctly.
2017-02-19VideoBackends: Add a developer option to disable the shader cache.Jules Blok
Makes it easier to disable the cache while working on the shaders.
2017-02-18Merge pull request #4924 from stenzek/vulkan-list-restartStenzek
Vulkan: Fix GPU hangs on AMD Polaris
2017-02-18VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptrLioncash
Much safer as opposed to just returning raw allocated memory.
2017-02-18Vulkan: Handle BUG_PRIMITIVE_RESTARTStenzek
2017-02-18Vulkan: Use TRIANGLE_LIST when primitive restart is not supportedStenzek
2017-02-18Vulkan: Don't enable primitive restart on list topologiesStenzek
2017-02-15C++ conformance fixes (MSVC /permissive-)Phil Christensen
We (the Microsoft C++ team) use the dolphin project as part of our "Real world code" tests. I noticed a few issues in windows specific code when building dolphin with the MSVC compiler in its conformance mode (/permissive-). For more information on /permissive- see our blog https://blogs.msdn.microsoft.com/vcblog/2016/11/16/permissive-switch/. These changes are to address 3 different types of issues: 1) Use of qualified names in member declarations struct A {      void A::f() { } // error C4596: illegal qualified name in member declaration                      // remove redundant 'A::' to fix }; 2) Binding a non-const reference to a temporary struct S{};    // If arg is in 'in' parameter, then it should be made const. void func(S& arg){}    int main() {    //error C2664: 'void func(S &)': cannot convert argument 1 from 'S' to 'S &'    //note: A non-const reference may only be bound to an lvalue    func( S() );       //Work around this by creating a local, and using it to call the function    S s;    func( s ); } 3) Add missing #include <intrin.h> Because of the workaround you are using in the code you will need to include this. This is because of changes in the libraries and not /permissive-
2017-02-08Merge pull request #4859 from lioncash/opcodedecoderMatthew Parlane
OpcodeDecoding: Convert #defines into enum constants
2017-02-08OpcodeDecoding: Convert #defines into enum constantsLioncash
Gets several constants out of global scope.
2017-02-08cmake: Don't use unqualified target_link_librariesFlorent Castelli
You can't mix unqualified and qualified link libraries (PUBLIC / PRIVATE). Use the modern form.
2017-02-03FramebufferManagerBase: Return a std::pair from GetTargetSizeLioncash
Keeps associated data together. It also eliminates the possibility of out parameters not being initialized properly. For example, consider the following example: -- some FramebufferManager implementation -- void FBMgrImpl::GetTargetSize(u32* width, u32* height) override { // Do nothing } -- somewhere else where the function is used -- u32 width, height; framebuffer_manager_instance->GetTargetSize(&width, &height); if (texture_width != width) <-- Uninitialized variable usage { ... } It makes it much more obvious to spot any initialization issues, because it requires something to be returned, as opposed to allowing an implementation to just not do anything.
2017-02-03D3D: Add CommonTypes include to D3DTexture.hLioncash
Resolves a compile error on the Windows CMake build.
2017-02-01ShaderGenCommon: Remove unnecessary includesLioncash
2017-02-01LightingShaderGen: Remove unnecessary includesLioncash
2017-01-29Vulkan: Refactor initialization to only use a single instanceStenzek
Hopefully will fix the crash in vkDestroyInstance on the NV Shield TV, and likely reduce boot times slightly for drivers that take a while to create instances.
2017-01-23RenderBase: Forward declare EFBAccessTypeLioncash
2017-01-23VideoBackendBase: Convert EFBAccessType into an enum classLioncash
2017-01-21cmake: Build D3D and D3D12 video backendsFlorent Castelli
2017-01-13Merge pull request #4496 from Mystro256/masterMatthew Parlane
Fix GCC build issue with Fedora (linux)
2017-01-07VideoSW: Fix GL ES shader.degasus
2017-01-06OGL: Use VideoCommon blend state for framebuffer configuration.degasus