summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2017-10-11Vulkan: Improve readability of device/instance extension checksStenzek
2017-10-11Vulkan: Use VK_NV_glsl extension where available, and skip glslangStenzek
2017-10-11Merge pull request #6066 from stenzek/vulkan-resizeStenzek
Vulkan: Fixes for window resizing
2017-10-10Vulkan: Only use oldSwapchain in response to VK_ERROR_OUT_OF_DATE_KHRStenzek
Seems to be required on the latest NV driver, otherwise the presented images are never shown.
2017-10-10Vulkan: Set a flag to resize the swap chain when presenting failsStenzek
Drivers can return VK_ERROR_OUT_OF_DATE_KHR from vkQueuePresentKHR, and we should resize the image in this case, as well as when getting it back from vkAcquireNextImageKHR.
2017-10-10Vulkan: Fix bug where command buffer wouldn't be started after resizeStenzek
2017-10-08Vulkan: Fix crash when Core initialisation failsLéo Lam
The Vulkan backend was not shutting down the AsyncShaderCompiler and some other instances, causing asserts to hit, followed by a hard crash.
2017-09-17OGL/TextureCache: use std::array for the palette shader arrayLioncash
2017-09-17OGL/TextureCache: Move file statics to the TextureCache classLioncash
These rely on instance state, or are used within instance-based class member functions, so they should belong to the instance itself instead of being file statics.
2017-09-11Software/TextureSampler: const correctnessLioncash
2017-09-11VideoBackends: Move SamplerState to commonStenzek
2017-09-11VideoCommon: Add helpers for generating common render statesStenzek
2017-09-11Vulkan: Clear contents of EFB convert framebuffer at create timeStenzek
Fixes a validation layer warning when converting pixel formats.
2017-09-11Vulkan: Fix interface mismatch in RGB->YUYV shaderStenzek
2017-09-11Renderer: Move cull mode to a rasterization state objectStenzek
Also moves logic for primitive handling to VideoCommon.
2017-09-11Renderer: Move depth state to VideoCommon and seperate from bpmemStenzek
2017-09-10Merge pull request #6045 from lioncash/sw-vertloaderMarkus Wick
SWVertexLoader: Minor cleanup
2017-09-10Merge pull request #6041 from stenzek/streambuffer-fenceMarkus Wick
StreamBuffer: Don't wait on fences twice when reserve > commit
2017-09-09Common: Move version strings to their own headerLioncash
Ideally Common.h wouldn't be a header in the Common library, and instead be renamed to something else, like PlatformCompatibility.h or something, but even then, there's still some things in the header that don't really fall under that label This moves the version strings out to their own version header that doesn't dump a bunch of other unrelated things into scope, like what Common.h was doing. This also places them into the Common namespace, as opposed to letting them sit in the global namespace.
2017-09-09SWVertexLoader: Make SWVertexLoader a final classLioncash
It doesn't make sense to allow extending this class based off the way the VertexLoader API is set up.
2017-09-09SWVertexLoader: Make SetFormat() and ResetBuffer() privateLioncash
SetFormat() is only ever used internally. ResetBuffer() is only used to implement the VertexManagerBase class interface, so there's no need to make it protected.
2017-09-09SWVertexLoader: Remove GetIndexBuffer()Lioncash
It's only ever used in one place internally and is arguably unnecessary.
2017-09-09SWVertexLoader: Normalize class variable namesLioncash
Follows our coding style.
2017-09-09StreamBuffer: Don't wait on fences twice when reserve > commitStenzek
If we allocate a large amount of memory (A), commit a smaller amount, then allocate memory smaller than allocation A, we will have already waited for these fences in A, but not used the space. In this case, don't set m_free_iterator to a position before that which we know is safe to use, which would result in waiting on the same fence(s) next time.
2017-09-07Vulkan: Extend the NVIDIA MSAA bug to render-pass based clearsStenzek
Calling vkCmdClearAttachments with a partial rect, or specifying a render area in a render pass with the load op set to clear can cause the GPU to lock up, or raise a bounds violation. This only occurs on MSAA framebuffers, and it seems when there are multiple clears in a single command buffer. Worked around by back to the slow path (drawing quads) when MSAA is enabled.
2017-09-07D3D: Fix crash if shaders fail to compileStenzek
2017-09-06Merge pull request #6016 from Armada651/allow-tearingJules Blok
D3DBase: Support the "allow tearing" DXGI flags.
2017-09-06Merge pull request #6012 from stenzek/drop-nv-glslJules Blok
Vulkan: Drop VK_NV_glsl extension support
2017-09-06Merge pull request #6026 from stenzek/d3d-ubershader-logicopStenzek
ShaderGen: Output uint when logic op is enabled for D3D ubershaders
2017-09-06Merge pull request #6025 from spxtr/present_queueStenzek
Vulkan: Use a separate queue for presenting.
2017-09-05D3D: Properly handle dual source blendingiwubcode
2017-09-05Vulkan: Use a separate queue for presenting.spxtr
Before this change, we simply fail if the device does not expose one queue family that supports both graphics and present. Currently this is fine, since devices tend to lay out their queues in this way. NV, for instance, tends to have one queue family for all graphics operations and one more for transfer only. However, it's not a hard requirement, and it is cheap to use a separate queue, so we might as well.
2017-09-05VideoBackends: Clear uid bits that are unused for the current backendStenzek
Currently, this is only the logic op bit, but this will be extended to the framebuffer fetch/blend modes. In the future, when/if we move to VideoCommon pipelines, this state will be part of the pipeline UID anyway, and we can mask it out in the backend by using a two-level map, so the shaders/programs are shared.
2017-09-04D3DBase: Support the "allow tearing" DXGI flags.Jules Blok
This makes sure our framerate is unlocked when we disable V-Sync.
2017-09-03Merge pull request #6013 from stenzek/d3d-logic-opAnthony
D3D: Implement logic op support
2017-09-03Merge pull request #5337 from stenzek/d3d-common-blending-stateAnthony
D3D: Use blending state from VideoCommon
2017-09-04D3D: Support logic op through integer render target viewStenzek
This brings D3D to parity with OpenGL and Vulkan.
2017-09-03Merge pull request #6018 from lioncash/constMarkus Wick
Software/Tev: const correctness
2017-09-03Software/Tev: const correctnessLioncash
2017-09-03D3DTexture: Remove unused bindflags D3DTexture2D member variableLioncash
2017-09-03D3DTexture: in-class initialize class members where applicableLioncash
2017-09-03D3DBase: Use the correct version of CreateDXGIFactory.Jules Blok
2017-09-03Merge pull request #5948 from Armada651/d3d-explicit-stereoStenzek
D3DBase: Only use a stereo swapchain if quad-buffering is enabled.
2017-09-03D3D: Use Direct3D 11.1 where supportedStenzek
2017-09-03Revert "Vulkan: Use VK_NV_glsl extension where available, and skip glslang"Stenzek
This reverts commit d23fd17e1a2c7c617731d619020af021a7658e93. Dynamic sampler indexing is broken in VK_NV_glsl as of 385.41. The performance gap doesn't seem to be as wide with the updated driver, so to save maintaining two code paths, it's easier to just drop the extension support completely.
2017-09-03Renderer: Change SetBlendState to accept a BlendingStateStenzek
This decouples the state generation (from the emulated GPU) from the management of internal backend state.
2017-09-03D3D11: Use blending state from VideoCommonStenzek
2017-09-03D3D11: Create debug device when validation layer is enabled in optionsStenzek
2017-09-03Merge pull request #6004 from lioncash/d3dStenzek
D3D: Eliminate redundant ID3D11DeviceChild* casts
2017-09-03Merge pull request #6009 from lioncash/asyncStenzek
AsyncShaderCompiler: Make WorkItem-derived class constructors explicit