summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2023-11-11Rename bpmem.copyMipMapStrideChannels to bpmem.copyDestStridePokechu22
As far as I can tell, it has nothing to do with the mipmap/half_scale functionality, but does change based on the width of the destination texture (and the destination texture is half the width if half_scale is set). The comment that was there (which dates back to the initial megacommit) seems to not have accounted for the width aspect; it was first used as an actual stride in bbbe898839467c312c31456334540c20fedc7be3 (the first commit that used it at all).
2023-10-25VideoBackends:OGL: Handle when SSBOs are only supported in some shader stagesTellowKrinkle
2023-10-06Metal: update binding mapping for SPRV due to change for custom shader ↵iwubcode
uniforms in other backends (Metal is still not supported) Co-authored-by: TellowKrinkle <tellowkrinkle@gmail.com>
2023-10-06VideoCommon: avoid Vulkan validation errors when custom shader ubo isn't set upiwubcode
Co-authored-by: TellowKrinkle <tellowkrinkle@gmail.com>
2023-10-06VideoBackends / VideoCommon: add new uniform buffer object for custom shader ↵iwubcode
materials (slot 3, geometry shader buffer moves to slot 4 if available)
2023-09-03Merge pull request #12004 from TellowKrinkle/MetalMultiTargetOatmealDome
VideoBackends:Metal: Multi render target support
2023-08-13VideoBackends: update SRVDescriptorTable size in DX12 to use pixel sampler ↵iwubcode
constant
2023-08-10Merge pull request #12061 from iwubcode/cubemap_backends_onlyJMC47
VideoBackends: add support for cube maps for OGL, Vulkan, and D3D
2023-08-04D3D12: Only use framebuffer integer descriptor if allocatedDentomologist
Verify that DXFramebuffer's integer RTV descriptor's cpu_handle has been allocated before using it, and if it hasn't use the non-integer RTV descriptor instead. This fixes a Dolphin crash in Twilight Princess, and possibly other games (Issue 13312). As an optimization to save space in the descriptor heap, DXFramebuffer's integer descriptor is only initialized if the given abstract texture format has different integer and non-integer RTV formats. This previously wasn't accounted for by GetIntRTVDescriptorArray, which could cause DX12::Gfx::BindFramebuffer to call OMSetRenderTargets with an invalid descriptor which would lead to a crash. Triggering the bug was fortunately rare because integer formats are only used when blending is disabled and logic ops are enabled. Furthermore, the standard integer abstract format is RGBA8 which has different integer and non-integer RTV formats, causing the integer descriptor to be initialized and avoiding the bug. The crash started appearing in a2702c6 because it changed the swapchain's abstract texture format from RGBA8 to RGB10_A2. Unlike RGBA8, RGB10_A2 has the same integer and non-integer RTV formats and so the bug can be triggered if the other requirements are met.
2023-07-21VideoBackends: add support for cube maps for OGL, Vulkan, and D3Diwubcode
2023-07-11Merge pull request #12042 from JosJuice/logic-op-no-win7OatmealDome
D3D: Remove Windows 7 mention in logic ops warning
2023-07-11D3D: Remove Windows 7 mention in logic ops warningJosJuice
Dolphin no longer supports Windows 7, so the fact that there are (were?) more people who use Windows 7 than who use a GPU that doesn't support the required feature is no longer relevant.
2023-07-01Merge pull request #11923 from iwubcode/multi-texture-compute-supportAdmiral H. Curtiss
VideoBackends: support multiple compute images for some backends
2023-06-29VKGfx: Add parentheses around ambiguous if statements.Admiral H. Curtiss
2023-06-28VideoBackends: support multiple compute images for some backends (D3D, OGL, ↵iwubcode
Vulkan)
2023-06-28VideoBackends:Metal: Multi render target supportTellowKrinkle
2023-06-23Merge pull request #11850 from Filoppi/post_process_fixesAdmiral H. Curtiss
Video: implement color correction to match the Wii/GC NTSC/PAL color spaces (and gamma)
2023-06-19Video: implement color correction to match the NTSC and PAL color spaces ↵Filoppi
(and gamma) that GC and Wii targeted. To further increase the accuracy of the post process phase, I've added (scRGB) HDR support, which is necessary to fully display the PAL and NTSC-J color spaces, and also to improve the quality of post process texture samplings and do them in linear space instead of gamma space (which is very important when playing at low resolutions). For SDR, the quality is also slightly increased, at least if any post process runs, as the buffer is now R10G10B10A2 (on Vulkan, DX11 and DX12) if supported; previously it was R8G8B8A8 but the alpha bits were wasted. Gamma correction is arguably the most important thing as Dolphin on Windows outputted in "sRGB" (implicitly) as that's what Windows expects by default, though sRGB gamma is very different from the gamma commonly used by video standards dating to the pre HDR era (roughly gamma 2.35). Additionally, the addition of HDR support (which is pretty straight forward and minimal), added support for our own custom AutoHDR shaders, which would allow us to achieve decent looking HDR in Dolphin games without having to use SpecialK or Windows 11 AutoHDR. Both of which don't necessarily play nice with older games with strongly different and simpler lighting. HDR should also be supported in Linux. Development of my own AutoHDR shader is almost complete and will come next. This has been carefully tested and there should be no regression in any of the different features that Dolphin offers, like multisampling, stereo rendering, other post processes, etc etc. Fixes: https://bugs.dolphin-emu.org/issues/8941 Co-authored-by: EndlesslyFlowering <EndlesslyFlowering@protonmail.com> Co-authored-by: Dogway <lin_ares@hotmail.com>
2023-06-19Merge pull request #11963 from iwubcode/d3d12_fixAdmiral H. Curtiss
VideoBackends: fix d3d12 error when validation layers enabled
2023-06-18Video: fix Vulkan RGBA10_2 format to the actual most common one (used as ↵Filoppi
swapchain format)
2023-06-17EnumUtils: Add Common::ToUnderlyingget
Mirrors the C++23 <utility> function, std::to_underlying
2023-06-17VideoBackends: fix d3d12 validation layer error introduced by multi-output ↵iwubcode
texture breaking logic ops support
2023-06-11VideoBackends:Vulkan: Allow loading custom drivers on AndroidRobin Kertels
... using libadrenotools
2023-06-10Merge pull request #11911 from TellowKrinkle/MTLParallelCompilationOatmealDome
VideoBackends:Metal: Enable shouldMaximizeConcurrentCompilation when available
2023-06-09Merge pull request #11699 from Pokechu22/gl-check-maximum-samplesAdmiral H. Curtiss
OpenGL: Check the list of supported AA modes instead of hardcoding
2023-06-09Merge pull request #11859 from iwubcode/backend-multi-outputAdmiral H. Curtiss
VideoBackends: add support to allow rendering to multiple output targets
2023-06-08OpenGL: Check the list of supported AA modes instead of hardcodingPokechu22
2023-06-08VideoCommon: Pass WindowSystemInfo to InitBackendInfoPokechu22
2023-06-08VideoBackends:Metal: Enable shouldMaximizeConcurrentCompilation when availableTellowKrinkle
2023-06-08Merge pull request #11901 from Filoppi/add_texture_typesAdmiral H. Curtiss
Video: add R10B10G10A2 and R16G16B16A16F texture types
2023-06-08Video: add R10B10G10A2 and R16G16B16A16F texture types (needed by PR 11850)Filoppi
2023-06-08Video: Fix crash when getting the AA modesFilippo Tarpini
DX12 would often crash when starting and stopping the emulation many times, due to the device enumerator failing for some reason. Checking for success fixes it.
2023-06-03VideoBackends: add support to allow rendering to multiple output texturesiwubcode
2023-05-28VideoBackends:Metal: Allocate bounding box uploads on a cpu bufferTellowKrinkle
AMD Metal drivers have a goofy bug where the bbox buffer stops being coherent with the cpu if you copy to it from a private (gpu) buffer and don't do anything else with it in that command buffer.
2023-04-29Merge pull request #11757 from TellowKrinkle/BCniOSOatmealDome
Enable BCn texture support on iOS where available
2023-04-28VideoBackends:Metal: Enable BCn support on iOSTellowKrinkle
2023-04-23Merge pull request #11628 from Pokechu22/gles-32-only-multisampleAdmiral H. Curtiss
OGL: Only specify precision for sampler2DMSArray when it is defined
2023-04-19Common/LinearDiskCache: Move interface into Common namespaceLioncash
Gets the interface out of the global namespace.
2023-04-18Merge pull request #11759 from TellowKrinkle/MTLPerfQueryFixesOatmealDome
VideoBackends:Metal: Fix perf queries
2023-04-18Merge pull request #11760 from Minty-Meeo/embracing-nullptrAdmiral H. Curtiss
Embrace nullptr over NULL and 0
2023-04-18Merge pull request #11708 from TellowKrinkle/MetalMaxPixSamplersOatmealDome
VideoBackends:Metal: Use max pixel samplers constant
2023-04-15Embrace nullptr over NULL and 0get
2023-04-15Common/MathUtil: Move IntLog2 into MathUtil namespaceLioncash
Gets this out of the global namespace.
2023-04-14VideoBackends:Metal: Fix perf queriesTellowKrinkle
Fixes an issue where perf queries could end up including counts from previous queries
2023-04-08OGL: Use GL_OES_texture_storage_multisample_2d_array when supportedPokechu22
See https://bugs.dolphin-emu.org/issues/13198
2023-04-08OGL: Only specify precision for sampler2DMSArray when it is definedPokechu22
See https://bugs.dolphin-emu.org/issues/13198
2023-04-08OGL: Remove bSupports2DTextureStorageMultisample and ↵Pokechu22
bSupports3DTextureStorageMultisample bSupports2DTextureStorageMultisample is completely unused, while bSupports3DTextureStorageMultisample is practically unused. In the past, these were checked and fell back to sampler2DMS instead of sampler2DMSArray on GLES 3.1, but this path was removed in f039149198657c1891e1c6462ed30c31ed4b8486 and Dolphin always uses array textures now.
2023-04-08OGL: Convert SupportedESPointSize to an enum classPokechu22
2023-04-08VideoBackends:Metal: Use max pixel samplers constantTellowKrinkle
2023-04-06CMake: Check `WIN32` instead of `CMAKE_SYSTEM_NAME STREQUAL Windows`Pokechu22