summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2023-01-31Implement AbstractGfx for OpenGLScott Mansell
Mostly involves moving contents of OGLRender to OGLGfx and OGLConfig
2023-01-31Split AbstractGfx out of RendererScott Mansell
Almost all the virtual functions in Renderer are part of dolphin's "graphics api abstraction layer", which has slowly formed over the last decade or two. Most of the work was done previously with the introduction of the various "AbstractX" classes, associated with texture cache cleanups and implementation of newer graphics APIs (Direct3D 12, Vulkan, Metal). We are simply taking the last step and yeeting these functions out of Renderer. This "AbstractGfx" class is now completely agnostic of any details from the flipper/hollywood GPU we are emulating, though somewhat specialized. (Will not build, this commit only contains changes outside VideoBackends)
2023-01-31Rename FrameDump.{cpp,h} to FrameDumpFFMpeg.{cpp,h}Scott Mansell
The name kind of conflicts with a new FrameDumper class
2023-01-31Move Presenting, Dumping and ImGui out of RendererScott Mansell
2023-01-31Refactor to remove virtual from RenderXFBToScreenScott Mansell
Slightly simplifies the upcoming refactor
2023-01-31TextureCache: Add content lockingScott Mansell
Texture cache occasionally mutates textures for efficiency. Which is awkward if we want to borrow those textures from texture cache to do something else, such as a graphics debugger, or async presentation on another thread. Content locking provides a way to signal that the contents of a texture cache entry should not change. Texture cache will be forced to use alternative strategies.
2023-01-31TextureCache: Refactor with smart pointersScott Mansell
The whole ownership model was getting a bit of a mess, with a some of special cases to deal with. And I'm planning to make it even more complex in the future. So here is some upfront work to convert it over to reference counted pointers.
2023-01-31Move TCacheEntry out of TextureCacheBaseScott Mansell
Allows for fowards declaration
2023-01-30VideoCommon: Better logic op invert approximationTellowKrinkle
2023-01-30Merge pull request #11205 from TellowKrinkle/AutoPresentPierre Bourdon
VideoBackends:Metal: Default to presentDrawable when vsync is on
2023-01-30Merge pull request #11509 from Sam-Belliveau/improved-speed-counterScott Mansell
Tie Speed to CPU Speed and not VPS
2023-01-29VideoCommon: Don't create pipelines with no render targetsTellowKrinkle
Some backends don't like it when you do that
2023-01-29Tie Speed to CPU Speed and not VPSSam Belliveau
2023-01-27VideoBackends: add a way to load data into a specific level AND layer, ↵iwubcode
default to layer 0
2023-01-27PowerPC: Parametrize LR macro.Admiral H. Curtiss
2023-01-27PowerPC: Remove PC macro.Admiral H. Curtiss
2023-01-26Merge pull request #11208 from TellowKrinkle/CPUCullPierre Bourdon
Cull vertices on the CPU
2023-01-25VideoCommon: Explicitly disable fp_contract for CPUCullTellowKrinkle
2023-01-25VideoCommon: Cull vertices on the CPUTellowKrinkle
2023-01-25VideoCommon: Add class for quickly transforming and culling vertices on the CPUTellowKrinkle
2023-01-19Merge pull request #11367 from Sam-Belliveau/lagbegonePierre Bourdon
VideoCommon: VI Skip
2023-01-17Merge pull request #11432 from Pokechu22/generic-vertex-loader-test-errorPierre Bourdon
VertexLoader: Fix loading tangent/binormal caches with NormalIndex3
2023-01-14Add VISkipSam Belliveau
2023-01-13VertexLoader: Don't write position_cache if vertex is skippedPokechu22
This is the behavior in the x64 and ARM64 vertex loaders. I don't know if it makes sense (the whole skipped vertex system seems jank, but several games behave incorrectly without it).
2023-01-13VertexLoader: Fix loading tangent/binormal caches with NormalIndex3Pokechu22
2023-01-13VertexLoaderTester: Add assertions for position/binormal/tangent cachesPokechu22
2023-01-13VertexLoaderTester: Use asserts instead of logsPokechu22
Logs don't show up in unit tests, and since this is debugging functionality (though not enabled for tests by default) it's better to do it this way.
2023-01-06CoreTiming: Throttle Before Every Event Using ChronoSam Belliveau
2023-01-06PerformanceTracker: Add ownership of m_log_name.Sam Belliveau
2023-01-06PerformanceTracker: Use shared_mutex instead of mutex so multiple threads ↵Sam Belliveau
can read at the same time.
2023-01-06PerformanceMetrics: Fix Line Width Issue on Non HiDPI ScreensSam Belliveau
2023-01-05Merge pull request #11402 from Pokechu22/too-many-indicesMai
IndexGenerator: Fix off-by-one in GetRemainingIndices
2023-01-04IndexGenerator: Fix off-by-one in GetRemainingIndicesPokechu22
Fixes https://bugs.dolphin-emu.org/issues/13136.
2023-01-04IndexGenerator: Add assertion for overflow in GetRemainingIndicesPokechu22
This assertion is currently triggered by Pocoyo Racing (https://bugs.dolphin-emu.org/issues/13136).
2023-01-04HW/ProcessorInterface: Rename member variables to fit naming convention.Admiral H. Curtiss
2023-01-04HW/ProcessorInterface: Refactor to class, move to Core::System.Admiral H. Curtiss
2023-01-03VertexManagerBase: Move free space check to after the buffer is resetPokechu22
Fixes incorrect logspam when the buffer needed to be reset on flushes (which we already were doing, but 52feed04dbf9d487138944ed834bd877620eef74 moved it to after the check was made). This is https://bugs.dolphin-emu.org/issues/10312. I also converted it to an assert, as if this does happen, things are going to render incorrectly, so we want to make it obvious.
2023-01-03Merge pull request #11386 from ↵Admiral H. Curtiss
Pokechu22/manual-texture-sampling-stereoscopic-layer-bounds-check PixelShaderGen: Clamp texture layer when using manual texture sampling with stereoscopic 3D
2022-12-29VideoCommon: De-globalize GeometryShaderManager class.Admiral H. Curtiss
2022-12-28VideoCommon/VertexShaderManager: Rename private variables.Admiral H. Curtiss
2022-12-28VideoCommon: De-globalize VertexShaderManager class.Admiral H. Curtiss
2022-12-27PixelShaderGen: Clamp texture layer when using manual texture sampling with ↵Pokechu22
stereoscopic 3D Otherwise, texelFetch() will use an out-of-bounds layer for game textures (that have 1 layer; EFB copies have 2 layers in stereoscopic 3D mode), which is undefined behavior (often resulting in a black image). The fast texture sampling path uses texture(), which always clamps (see https://www.khronos.org/opengl/wiki/Array_Texture#Access_in_shaders), so it was unaffected by this difference.
2022-12-27VideoCommon/PixelShaderManager: Rename s_ variables.Admiral H. Curtiss
2022-12-27VideoCommon: De-globalize PixelShaderManager class.Admiral H. Curtiss
2022-12-26Fix Speed Counter Sample SizeSam Belliveau
2022-12-23Remove Redundant Access SpecifiersSam Belliveau
2022-12-23New FrameTime/VBlank Analyzer + GraphSam Belliveau
2022-12-21Replace BitUtils with C++20: Counting ZeroesMinty-Meeo
With the upgrade to C++20, std::countl_zero and std::countr_zero can replace these home-spun implementations from the BitUtil.h library.
2022-12-18Common: Use C++20 <bit> header in BitSet.hJosJuice
2022-12-11VideoCommon/PixelEngine: Pass Core::System to methods.Admiral H. Curtiss