summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2017-05-13VS2017 build fix after upgrading projectlcsondes
2017-05-03OpenGL: Mute nvidia performance warning about stalling the GPU.degasus
They are right, our perf query implementation is terrible. But raising a warning makes it just even slower.
2017-04-29TextureCache: Move host texture utility functions to VideoCommonStenzek
The appropriate place for these would be AbstractTexture, once it is finished.
2017-04-29Vulkan: Support native compressed texturesStenzek
2017-04-29D3D12: Support native compressed texturesStenzek
2017-04-29D3D11: Support native compressed texturesStenzek
2017-04-29OGL: Use native compressed textures on supported driversStenzek
2017-04-29TextureCache: Support compressed textures and pass pitch/size to uploadStenzek
This also removes an extra copy of the image for custom textures.
2017-04-29HiresTextures: Support parsing DDS files directlyStenzek
This leaves DDS textures using DXT1/3/5 compressed in-memory, which can be passed directly to the backend.
2017-04-25VideoConfigDiag: Move post-processing shader list to post processorStenzek
The backends don't use this list at all, and since more than one backend supports post-processing now, it's duplicate code.
2017-04-25Vulkan: Implement post-processing backendStenzek
No new features, just parity with OpenGL.
2017-04-25VideoCommon: Move the blit methods to the backend classStenzek
The parameter types will be different for each backend currently, anyway (e.g. textures/render passes/etc).
2017-04-18Merge pull request #5284 from stenzek/vulkan-videocommon-blending-stateStenzek
Vulkan: Use BlendingState from VideoCommon
2017-04-18Merge pull request #5270 from stenzek/vulkan-aaStenzek
Vulkan: MSAA and frame dumping fixes
2017-04-18OGL: Drop BlendingState.ditherStenzek
How GL_DITHER works is implementation-defined, and we handle the non-blended case in the pixel shader.
2017-04-18VideoCommon: Drop SetDitherMode()Stenzek
It was a no-op on all backends apart from GL anyhow.
2017-04-18Vulkan: Use BlendingState from VideoCommonStenzek
Remove the internal BlendState union. Also fixes Kirby's Return to Dreamland shadows.
2017-04-18VideoCommon: Add usedualsrc field to BlendingStateStenzek
This is because we re-use BlendingState for our internal drawing (e.g. RasterFont) and for these shaders, we can't assume the presence of a second color output.
2017-04-16OGL: Use struct for post-processing shader optionsStenzek
This removes the need for token pasting, which isn't supported in GLSL ES. Shouldn't cause any issues unless people are using reserved keywords as option names.
2017-04-15Vulkan: Ensure all frames are written before resizing framedump bufferStenzek
Prevents destroying a framebuffer that may still be in use by a previous frame dump.
2017-04-15Vulkan: Ensure framedump texture is incorrect layout for render/readbackStenzek
2017-04-15Vulkan: Clamp framebuffer resolve rectangle to texture sizeStenzek
This is invalid and was causing the NVIDIA driver to throw an error.
2017-04-15Vulkan: Fix invalid resolve at swap time when MSAA is enabledStenzek
2017-04-14Vulkan: Raise the number of texel buffer/storage image descriptorsStenzek
Running with GPU texture decoding enabled could cause us to run out of descriptors within a single frame.
2017-04-14Vulkan: Fix incorrect render pass area for out-of-range clearsStenzek
This occured when a game set an out-of-range EFB clear region.
2017-04-12Vulkan: Linear filter >1xIR EFB copies, matching the other backendsStenzek
2017-04-12VideoBackends: Support updated texture encoding shader generatorsStenzek
2017-04-11Merge pull request #5234 from lioncash/tupleMarkus Wick
RenderBase: Return tuples from CalculateTargetScale and ConvertStereoRectangle instead of using out parameters
2017-04-09Merge pull request #5220 from stenzek/small-nonsquare-mipsAnthony
TextureCache: Fix incomplete GPU texture decoding of non-square mips
2017-04-09RenderBase: Return a tuple from ConvertStereoRectangle instead of using out ↵Lioncash
parameters
2017-04-07TextureCache: Fix incomplete GPU texture decoding of non-square mipsStenzek
2017-04-07FileSearch: Namespace functions under the Common namespaceLioncash
2017-04-04D3D: Drop redundant interface TextureEncoderStenzek
2017-04-01Vulkan: Implement compute-shader based GPU texture decodingStenzek
2017-04-01Vulkan: Compute shader supportStenzek
2017-04-01OGL: Add GPUTimer class for measuring execution time of a draw/dispatchStenzek
2017-04-01OGL: Implement GPU texture decoding backendStenzek
2017-04-01VideoBackends: Add configuration field for GPU texture decodingStenzek
2017-04-01OGL: Support compute shaders and emitting GLSL 4.3Stenzek
This also changes bSupportsEarlyFragmentTests to bSupportsImageLoadStore, as it is used for both.
2017-04-01VideoBackends: Add support flag for compute shadersStenzek
2017-04-01OGL: Use ARB_texture_storage to allocate TextureCache entriesStenzek
This ensures that they are complete textures by decoding time, as when using compute shaders we write directly to the destination texture.
2017-04-01OGL: Fix render-target texture mipmap allocationStenzek
The loop was allocating one-too-many levels, as well as incorrect sizes for each level. Probably not an issue as mipmapped render targets aren't used, but the logic should be correct anyway.
2017-03-31OGL: Fix MSAA being forced to 1xStenzek
This was a regression from the remove-everything-static-from-renderer PR. As the comment indicates, it would be nice to move all of this logic out of the Renderer constructor, but this is a much larger change.
2017-03-17OGL: Fix texture_type checks in CreateTextureVincent Duvert
The FrameBufferManager::CreateTexture (from the OpenGL backend) method introduced by commit 69cedf41 incorrectly compares the texture variable (which contains a name provided by glGenTextures) against GL_TEXTURE_2D_MULTISAMPLE_ARRAY and GL_TEXTURE_2D_MULTISAMPLE. It should instead use the texture_type variable for this (as done in the first branch of the if).
2017-03-15videoconfig: add BBoxPreferStencilImplementationMichael Maltese
@JMC47 requested this to be able to do performance comparisons.
2017-03-15OGL: only create stencil buffer when neededMichael Maltese
2017-03-15OGL: implement Bounding Box on systems w/o SSBOMichael Maltese
This commit should have zero performance effect if SSBOs are supported. If they aren't (e.g. on all Macs), this commit alters FramebufferManager to attach a new stencil buffer and VertexManager to draw to it when bounding box is active. `BBoxRead` gets the pixel data from the buffer and dumbly loops through it to find the bounding box. This patch can run Paper Mario: The Thousand-Year Door at almost full speed (50–60 FPS) without Dual-Core enabled for all common bounding box-using actions I tested (going through pipes, Plane Mode, Paper Mode, Prof. Frankly's gate, combat, walking around the overworld, etc.) on my computer (macOS 10.12.3, 2.8 GHz Intel Core i7, 16 GB 1600 MHz DDR3, and Intel Iris 1536 MB). A few more demanding scenes (e.g. the self-building bridge on the way to Petalburg) slow to ~15% of their speed without this patch (though they don't run quite at full speed even on master). The slowdown is caused almost solely by `glReadPixels` in `OGL::BoundingBox::Get`. Other implementation ideas: - Use a stencil buffer that's separate from the depth buffer. This would require ARB_texture_stencil8 / OpenGL 4.4, which isn't available on macOS. - Use `glGetTexImage` instead of `glReadPixels`. This is ~5 FPS slower on my computer, presumably because it has to transfer the entire combined depth-stencil buffer instead of only the stencil data. Getting only stencil data from `glGetTexImage` requires ARB_texture_stencil8 / OpenGL 4.4, which (again) is not available on macOS. - Don't use a PBO, and use `glReadPixels` synchronously. This has no visible performance effect on my computer, and is theoretically slower.
2017-03-15extract OGL::FramebufferManager::BindLayeredTextureMichael Maltese
2017-03-15extract OGL::FramebufferManager::CreateTextureMichael Maltese
2017-03-15VideoConfig: add bSupportsFragmentStoresAndAtomicsMichael Maltese