summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2022-08-04Vulkan: Call setSourceFile in addition to addSourceTextPokechu22
2022-08-04Sanitize and use increased precision when normalizing light directionsPokechu22
This normalization was added in 02ac5e95c84a1d9a46df1dc4102342fb653e36ee, and changed to use floats in 4bf031c0646e91b35777f1ba4e2b0328063bb666. The conversion to floats means that sometimes there is insufficient precision for the normalization process, which results in values of NaN or infinity. Performing the whole process with doubles prevents that, but games also sometimes set the values to NaN or infinity directly (possibly accidentally due to the values not being initialized due to them not being used in the current configuration?). The version of Mesa currently in use on FifoCI (20.3.5) has issues with NaN. Although this bug has been fixed (https://gitlab.freedesktop.org/mesa/mesa/-/commit/b3f3287eac066eae16dce0e47aad3229dcff8257 in 21.2.0), FifoCI is stuck with the older version. This change may or may not be incorrect, but it should result in the same behavior as already present in Dolphin, while working around the Mesa bug.
2022-08-02Timer: protect usages of ms timers from rolloverShawn Hoffman
2022-08-02Common::Timer: use chrono::steady_clock internallyShawn Hoffman
2022-08-01Common/Hash: use zlib-ng for adler32. small cleanups.Shawn Hoffman
2022-07-26Merge pull request #10885 from JosJuice/android-graphics-modsJosJuice
Android: Add graphics mods support to GUI
2022-07-26Merge pull request #10889 from shuffle2/spngAdmiral H. Curtiss
replace libpng with libspng
2022-07-25CPUDetect: improve win/arm64 supportShawn Hoffman
read brand_string on macos/arm64 remove unused flags report family/model info instead of vendor name
2022-07-25replace libpng with libspngShawn Hoffman
2022-07-23Merge pull request #10868 from tellowkrinkle/UsesDSBFixJosJuice
VideoCommon: Fix IsDualSrc check for dst blend factors
2022-07-23Android: Add graphics mods support to CheatsActivityJosJuice
2022-07-23Convert CP/XF matrix indices mismatch panic alert to a warningPokechu22
https://bugs.dolphin-emu.org/issues/12977 indicates that this happens on startup of Spider-Man 2, even in single-core. I don't have the game, so I can't directly determine why this is happening, but presumably real hardware does not hang in this case, so we can make it less obtrusive.
2022-07-21VideoBackends:Metal: MSAA supportTellowKrinkle
2022-07-21VideoBackends:Metal: Use DriverDetails for bugsTellowKrinkle
2022-07-21VideoBackends: Add Metal rendererTellowKrinkle
2022-07-19Merge pull request #10874 from JosJuice/cmpr-layoutAdmiral H. Curtiss
VideoCommon: Fix CMPR compute shader layout
2022-07-18VideoCommon: Fix CMPR compute shader layoutJosJuice
Looks like a copy-paste gone wrong. The compute shaders for the other formats use a group size of 8 * 8, whereas the CMPR compute shader is supposed to use a flattened 64 * 1 as I understand it.
2022-07-17VideoCommon: Fix IsDualSrc check for dst blend factorsTellowKrinkle
2022-07-17Fix OpenGL error on M1 Mac.Joon Park
Followup to #10466. Resolves the following error: ERROR: 0:85: '&' does not operate on 'uvec3' and 'int'
2022-07-17Merge pull request #10747 from tellowkrinkle/LateUIDFixupJMC47
Add a post-cache shader UID fixup pass
2022-07-16Add notes about precision of YUV->RGB conversion factors for XFBPokechu22
2022-07-16Rework TextureConversionShader for hardware accuracy and simplicityPokechu22
2022-07-16Rework TextureConverterShaderGen for hardware accuracy and simplicityPokechu22
2022-07-16Restructure parameters to TetxureConverterShaderGen/TextureConversionShaderPokechu22
This will be used for later refactoring for increased accuracy.
2022-07-15VideoCommon: Increase uniform stream buffer size to 64mbTellowKrinkle
Densha De Go uses 27mb per frame, and we want enough space for the CPU to be encoding one frame while the GPU is rendering the previous
2022-07-15VideoCommon: Remove dstalpha from BlendingStateTellowKrinkle
It's not supported by any PC graphics API, and therefore completely unused
2022-07-15VideoCommon: Always use fbfetch in ubershaders if availableTellowKrinkle
Reduce the number of different pipelines needed. Also works around drivers that break when you combine fbfetch with dual source blending
2022-07-15Add extra Low and High fields to CopyFilterCoefficientsPokechu22
This struct is the only one in BPMemory that uses u64 as its base. These fields are to allow viewing it as two u32s instead. It's not used by Dolphin right now, but it is used in the copy of BPMemory.h used by hwtests.
2022-07-15Create dedicated enum for EFB/XFB gamma correctionPokechu22
This also changes the behavior for the invalid gamma value, which was confirmed to behave the same as 2.2. Note that currently, the gamma value is only used for XFB copies, even though hardware testing indicates it also works for EFB copies. This will be changed in a later commit.
2022-07-15Only use intensity formats if both intensity_fmt and auto_conv are setPokechu22
auto_conv is normally always set for EFB copies, but hardware testing indicates that intensity_fmt does nothing if auto_conv is not set.
2022-07-15Rename EFB copy bit 2 from yuv to unknown_bitPokechu22
It was named yuv in 522746b2c223f37c45569ee7fd4a226b278cb6d9, but hardware testing indicates that that bit does nothing (the intensity format bit enables YUV conversion, instead).
2022-07-15Use fmt::to_string for texture format overlayPokechu22
This required adding parentheses to the font used by that.
2022-07-15Remove casts to integers for texture and EFB formatsPokechu22
The only remaining casts for these types that I know of are in TextureInfo (where format_name is set to the int version of the format, and since that affects filenames and probably would break resource packs, I'm not changing it) and in TextureDecoder_Common's TexDecoder_DrawOverlay, which will be handled separately.
2022-07-13VideoCommon: Better driver bug handlingTellowKrinkle
Adds a pass to process driver deficiencies between UID caching and use, allowing a full view of the whole pipeline, since some bugs/workarounds involve interactions between blend modes and the pixel shader
2022-07-13Merge pull request #10777 from tellowkrinkle/EFBFlushJMC47
VideoCommon: Remember to flush command buffers after multiple EFB copies
2022-07-13Merge pull request #10842 from tellowkrinkle/ClearBackendInfoJMC47
VideoCommon: Clear backend_info before populating
2022-07-13VideoCommon: Clear backend_info before populatingTellowKrinkle
2022-07-13VideoCommon: Properly mask fbfetch logic op emulationTellowKrinkle
2022-07-10Merge pull request #10749 from tellowkrinkle/IntelUbershadersJMC47
VideoCommon: Fix ubershaders on MoltenVK Intel
2022-07-09ShaderCache: Fix inverted usage of palette_format.Admiral H. Curtiss
2022-07-08Merge pull request #10819 from Dentomologist/fix_shader_compilation_warningsJMC47
VideoCommon: Fix D3D shader compilation warnings
2022-07-08Merge pull request #10673 from iwubcode/spirv-backendsJMC47
D3D: Generate HLSL from SPIRV*
2022-07-08VideoCommon: Fix D3D shader warning X3557 (single iteration loop)Dentomologist
Fix warning "loop only executes for 1 iteration(s), forcing loop to unroll" when vertex_in == 1
2022-07-08VideoCommon: Fix D3D shader warning X4000 (uninitialized variables)Dentomologist
Initialize alpha_A and alpha_B. They were previously only initialized in cases where they were used, but D3D isn't able to figure that out.
2022-07-08VideoCommon: Fix D3D shader warning X3571 (negative base for pow())Dentomologist
Add abs() to fix "pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them".
2022-07-06VideoCommon: Remember to flush command buffers after multiple EFB copiesTellowKrinkle
2022-07-02Merge pull request #8467 from CookiePLMonster/interruptable-shader-precompileAdmiral H. Curtiss
Make shader precompilation interruptable
2022-07-02Merge pull request #10624 from Minty-Meeo/resolve-gcc-warningsJosJuice
Resolve Linux GCC Warnings
2022-06-30Resolve GCC WarningsMinty-Meeo
2022-06-29VideoCommon: fix projection graphics mod affecting more than the intended ↵iwubcode
draw call