summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2018-02-19Merge pull request #6367 from stenzek/gl-flushMarkus Wick
OGL: Use explicit flush instead of GL_SYNC_FLUSH_COMMANDS_BIT
2018-02-20Renderer: Handle resize events on-demand instead of pollingStenzek
We now differentiate between a resize event and surface change/destroyed event, reducing the overhead for resizes in the Vulkan backend. It is also now now safe to change the surface multiple times if the video thread is lagging behind.
2018-02-20OGL: Clear backbuffer before presenting instead of at start of frameStenzek
2018-02-20BPFunctions: Move upscaling of scissor rect to VideoCommonStenzek
2018-02-20BPFunctions: Move GX viewport conversion to VideoCommonStenzek
2018-02-14Vulkan: Remove redundant YUYV conversion shadersStenzek
These are no longer used as of hybrid XFB.
2018-02-11VideoConfig: Remove bForceCopyToRam fieldStenzek
It's the inverse of supports-copy-to-vram.
2018-02-09OGL: Use explicit flush instead of GL_SYNC_FLUSH_COMMANDS_BITStenzek
2018-02-09OGL: Don't leave staging texture buffer bound after mappingStenzek
This could cause glReadPixels() calls which assume no buffer is bound (e.g. CPU EFB access) to fail. The problem was limited to devices which don't support persistent mapping, as the map path is not otherwise.
2018-02-07Merge pull request #6334 from stenzek/startupAnthony
Video Backend Initialization/Core Boot Improvements
2018-02-07Merge pull request #6333 from stenzek/vulkan-transitionAnthony
Vulkan: Fix invalid stage mask in layout transitions
2018-02-05Do not link to libusbhid on FreeBSD/NetBSDGreg V
Both libusbhid (system library) and libhidapi (3rd party library) provide a function called hid_init. Dolphin was being linked to both. The WiimoteScannerHidapi constructor was calling hid_init without arguments. libusbhid's hid_init expects one argument (a file path). It was being called as if it was defined without arguments, which resulted in a garbage path being passed in, and because of that, the Qt GUI was failing to launch with the following error: 'dolphin-emu-qt2: @ : No such file or directory'
2018-02-01BPMemory: Handle fog configuration where both A and C are infinity/NaNStenzek
The console appears to behave against standard IEEE754 specification here, in particular around how NaNs are handled. NaNs appear to have no effect on the result, and are treated the same as positive or negative infinity, based on the sign bit. However, when the result would be NaN (inf - inf, or (-inf) - (-inf)), this results in a completely fogged color, or unfogged color respectively. We handle this by returning a constant zero for the A varaible, and positive or negative infinity for C depending on the sign bits of the A and C registers. This ensures that no NaN value is passed to the GPU in the first place, and that the result of the fog calculation cannot be NaN.
2018-01-29Merge pull request #6303 from TraceBullet/auto-adjust-window-sizeStenzek
Fix Auto-Adjust Window Size option making the window too large
2018-01-27VideoBackend: Remove PeekMessages methodStenzek
The video thread and backend no longer create any windows, therefore there will never be any messages dispatched to their thread.
2018-01-27VideoBackends: Combine Initialize/Prepare and Cleanup/Shutdown methodsStenzek
Also allows the work previously done in Prepare to return a failure status.
2018-01-26Fix Auto-Adjust Window Size option making the window too largeTraceBullet
2018-01-26AbstractTexture: Fix crash in Vulkan backend when freeing textureStenzek
2018-01-26Vulkan: Fix invalid stage mask in layout transitionsStenzek
2018-01-26Vulkan: Fix waiting on non-existant fence when reading backStenzek
2018-01-22AbstractTexture: Move Bind() method to RendererStenzek
This makes state tracking simpler, and enables easier porting to command lists later on.
2018-01-11Vulkan: Fix possible mismatch between EFB framebuffer and render passStenzek
This could happen when changing MSAA settings or internal resolution at runtime.
2018-01-11Vulkan: Move pipeline barrier outside render pass for EFB peeksStenzek
2018-01-11Vulkan: Fix FramebufferManagerBase::m_EFBLayers being set out-of-rangeStenzek
2018-01-11Vulkan: Move render pass management to ObjectCacheStenzek
2018-01-11Vulkan: Add missing layout transition when resolving MSAA depth buffersStenzek
2018-01-05Standardise some enums from ALL_CAPS to CamelCaseJonathan Hamilton
2018-01-05Workaround qualcomm driver bugJonathan Hamilton
It seems it doesn't like modifying inout variables in place - so instead use a temporary for ocol0/ocol1 and only write them once at the end of the shader
2018-01-05Implement dual-source blending in shaderJonathan Hamilton
For some GLES drivers that don't support dual-source blending, but do support GL_EXT_shader_framebuffer_fetch, this might be useful.
2017-12-10OGL: Fix incorrect usage of glGetTextureSubImageStenzek
Was causing issues with texture dumping on newer drivers.
2017-12-06VideoCommon: Drop now unused efb2tex matrix generation.degasus
2017-12-06D3D: Use VideoCommon EFB-to-texture shadersStenzek
2017-12-03OGL/TextureConverter: Remove unnecessary using declarationLioncash
2017-12-03OGL/TextureConverter: Resolve -Wmissing-variable-declaration warningsLioncash
2017-12-03Merge pull request #6232 from lioncash/d3d-vert-mgrJosJuice
D3D/VertexManager: Add missing includes
2017-12-02VKTexture: Add missing override specifier to the other ↵Lioncash
ScaleRectangeFromTexture() prototype
2017-12-02VKTexture: Remove unimplemented ScaleRectangleFromTexture() prototypeLioncash
2017-12-02D3D/VertexManager: Add missing includesLioncash
Gets rid of reliance on indirect includes
2017-12-02VideoBackends: Fix -Wswitch warningsLéo Lam
2017-12-02VideoCommon: Rename TextureConversionShader namespace.degasus
2017-12-02VideoCommon: Create a namespace for TextureConversionShaderGen.degasus
2017-12-02VideoBackends: Use VideoCommon shader generators for efb2tex copies.Markus Wick
This will generate one shader per copy format. For now, it is the same shader with the colmat hard coded. So it should already improve the GPU performance a bit, but a rewrite of the shader generator is suggested. Half of the patch is done by linkmauve1: VideoCommon: Reorganise the shader writes.
2017-11-30D3DBase: Mark file-scope variables as internally linked where applicableLioncash
2017-12-01Merge pull request #6193 from stenzek/readbacksStenzek
Abstract Staging Textures - VideoCommon interface for texture readbacks/uploads
2017-11-23Vulkan: Fix headless framedumping without USE_X11 setStenzek
2017-11-23OGL: Fix headless frame dumpingStenzek
Also skips swapping the window system buffers in headless mode, as there may not be a surface which can be swapped in the first place. Instead, we call glFlush() at the end of a frame in this case.
2017-11-23OGL: Update the window size after swapping buffers, not beforeStenzek
Prevents us from rendering beyond the viewport bounds.
2017-11-22Vulkan: Drop StagingTexture2D class as it is now duplicated functionalityStenzek
2017-11-22AbstractTexture: Drop slow map readback pathStenzek
2017-11-22VideoCommon: Re-implement asynchronous frame dumpingStenzek
This was lost as a result of hybrid XFB, now it is back, and ~10% faster in very brief testing.