summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
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
2023-04-04Merge pull request #11417 from K0bin/vk-submit-thread-cleanupPierre Bourdon
VideoBackends:Vulkan: Clean up submission thread using WorkQueueThread
2023-03-24Vulkan: Enable subgroupShuffle.degasus
It is used as workaround for the missing subgroupBroadcastDynamicId flag on SPIR-V < 1.5.
2023-03-20VideoBackends:Vulkan: Use WorkQueueThreadRobin Kertels
2023-03-20VideoBackends:Vulkan: Clean up submission thread BlockingLoop usageRobin Kertels
2023-03-14Divide by MSAA for PerfQuery in all backends.Admiral H. Curtiss
2023-03-14Return quarter value for PerfQuery in all backends.Admiral H. Curtiss
2023-03-02Software: Implement GetSurfaceInfo()Pokechu22
Before, it used a fallback where it returned a default object, where the width and height were set to 0. Presenter::Initialize() used GetSurfaceInfo to set the backbuffer size, then used that size when initializing the on-screen UI (even for the software renderer, where the on-screen UI isn't currently present), which meant that ImGui got a window size of 0 and thus resulted in a failed assertion. Although BindBackbuffer checks for size changes, it doesn't help because ImGui has already been initialized, and the size hasn't actually changed since initialization occured. Fixes one aspect of https://bugs.dolphin-emu.org/issues/13172.
2023-02-24VideoBackends: rework d3d11 to specify samplers/bound textures using a ↵iwubcode
bitset with a constant size, instead of hardcoding each individual enumeration value
2023-02-17Merge pull request #11577 from JosJuice/android-armeabi-v7aMarkus Wick
Android: Fix armeabi-v7a build
2023-02-17Android: Fix armeabi-v7a buildJosJuice
This very much isn't a build configuration that we're going to ship, but I want to be able to tell people that they can build it on their own if they really want to see how terribly it performs :) Just like before, you'll need to edit two lines in app/build.gradle to define ENABLE_GENERIC=ON and actually enable armeabi-v7a if you want an armeabi-v7a build. This commit just fixes some compilations errors that crop up if you do so.
2023-02-16VideoBackends:Vulkan: Fix printing validation errorsRobin Kertels
2023-02-15Fix uninitialized variable warnings (C26495)Pokechu22
2023-02-14VideoCommon: Fix stereoscopic 3D on OpenGL < 4.3 (macOS)TellowKrinkle
2023-02-13Merge pull request #11550 from iwubcode/set_common_samplers_countScott Mansell
VideoCommon: add constant value for maximum number of pixel samplers
2023-02-10Merge pull request #11523 from degasus/OGL_KHR_subgroupJMC47
VideoBackend/OGL: Prefer KHR_shader_subgroup over NV_shader_thread.