summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2020-04-13Merge pull request #8584 from jordan-woyak/widescreen-heuristic-fixJMC47
VideoCommon: Tweak widescreen heuristic.
2020-04-09Core: Skip duplicate frames when using frame advanceJosJuice
It used to be the case that frame advance skipped duplicate frames (i.e. it would take 30 frame advances to get through one second of emulated time in a 30 fps game), but this broke in 9c5c3c0. Skipping duplicate frames making TASing less annoying.
2020-04-09Core: Clarify Callback_VideoCopiedToXFB and FrameUpdateJosJuice
2020-04-02Analytics: Add quirk for mismatched xf/bp texgens/colorsStenzek
2020-04-02VertexManagerBase: Skip drawing objects with mismatched xf/bp stagesStenzek
Hardware tests have shown that if the number of texgens/channels do not match, you get garbage rendering. Presumably because the output registers from the XF stage are fed into the incorrect input registers for TEV/BP. Currently, this causes Dolphin to crash/generate invalid shaders with an assertion failure in the hardware backends. Instead, we log an error. Perhaps in the future we should just spit out all texgens/colors anyway from both stages, and let cross-stage optimization take care of DCE'ing it away. But doing so would require changing the UIDs and invalidating everyone's shader caches.
2020-03-25Remove warnings of -Wsign-compareJun Su
Cast the variable to the coresponding type.
2020-03-24Cleanup warnings of -Wunused-lambda-captureJun Su
Remove unused lambda captures.
2020-03-15VideoCommon: Allow texture folders to be determined by a <gameid>.txt fileiwubcode
2020-03-11VideoBackends: Make it possible for PrepareWindow to change the surfaceStenzek
Again, needed for MoltenVK.
2020-02-09VideoCommon: Remove widescreen heuristic debug logs.Jordan Woyak
2020-02-09VideoCommon: Tweak widescreen heuristic and clean up some related Renderer ↵Jordan Woyak
logic.
2020-02-04VideoCommon: Amend formatting code to handle the upgrade to fmtLioncash
It seems that the newer version of fmt gets tripped up by bitfields within structs. However, we can just specify the intended type where necessary to get around this.
2020-01-26VertexLoaderX64: Don't use PDEP on AMD ZenTechjar
2020-01-25Merge pull request #8582 from jordan-woyak/osd-disabled-fixTilka
VideoCommon/OSD: Process OSD messages even when they are disabled.
2020-01-25Merge pull request #8581 from jordan-woyak/ciface-ar-awareTilka
InputCommon: Make "Cursor" inputs aware of the rendered aspect ratio.
2020-01-25Merge pull request #8336 from Ebola16/PSConnor McLaughlin
Add Dolphin version and current video backend to shader compilation logs
2020-01-24VideoCommon/OSD: Process OSD messages even when they are disabled.Jordan Woyak
2020-01-24InputCommon: Make "Cursor" inputs aware of the rendered aspect ratio.Jordan Woyak
2020-01-24Add Dolphin version and current video backend to shader compilation logsRyan Meredith
2020-01-23VideoCommon/TextureConversionShader: Make use of fmt where applicableLioncash
Now that we've converted the shader generation over to ShaderCode, we can now make use of the fmt-capable WriteFmt function.
2020-01-23VideoCommon/TextureConversionShader: Convert over to using ShaderCodeLioncash
Migrates the shader generator off the use of a global array, eliminating the use of some global state. This also allows us to move the shader generation over to using fmt in a subsequent change.
2020-01-14Add an option to present/skip presenting duplicate framesStenzek
Currently, we do not display every second frame in 25fps/30fps games which run to vsync. This improves performance as there's less rendering for the GPU to perform, but when combined with vsync, could cause frame pacing issues. This commit adds an option to force every frame generated by the console to be displayed to the host, which may improve pacing for these games.
2019-12-29Use std::istringstream or std::ostringstream instead of std::stringstream ↵David Korth
where possible. This removes std::iostream from the inheritance chain, which reduces overhead slightly.
2019-12-28Compile fixes for Windows-on-ARM64Stenzek
2019-12-28Add an ARM64 target to Visual Studio projectsStenzek
2019-12-22FrameDump: Set first_frame if movie frame number <= 1Stenzek
The frame number is incremented before the first frame is swapped out. Fixes ffmpeg creating invalid video files on output if the emulator only runs for a single frame, e.g. FifoCI.
2019-12-07Merge pull request #8508 from lioncash/fmt-texAnthony
VideoCommon/TextureConverterShaderGen: Convert over to fmt
2019-12-07Merge pull request #8509 from lioncash/shader-strAnthony
VideoCommon/FramebufferShaderGen: Minor clean up
2019-12-07Merge pull request #8511 from lioncash/if-constexprAnthony
VideoCommon/OpcodeDecoding: Make use of if constexpr
2019-12-07Merge pull request #8513 from lioncash/bounding-boxAnthony
VideoCommon/BoundingBox: Make interface for querying bounding box data
2019-12-05VideoCommon/BoundingBox: Move PixelShaderManager::SetBoundingBoxActive() ↵Lioncash
calls into Enable()/Disable() Now that we have an actual interface to manage things, we can stop duplicating the calls to to the pixel shader manager and remove the need to remember to actually do so when disabling or enabling the bounding box.
2019-12-05VideoCommon/BoundingBox: Make interface for querying bounding box dataLioncash
Rather than expose the bounding box members directly, we can instead provide an interface for code to use. This makes it nicer to transition from global data, as the interface function names are already in place.
2019-12-05VideoCommon/IndexGenerator: Eliminate static stateLioncash
Now that we've extracted all of the stateless functions that can be hidden, it's time to make the index generator a regular class with active data members. This can just be a member that sits within the vertex manager base class. By deglobalizing the state of the index generator we also get rid of the wonky dual-initializing that was going on within the OpenGL backend. Since the renderer is always initialized before the vertex manager, we now only call Init() once throughout the execution lifecycle.
2019-12-05VideoCommon/IndexGenerator: Make use of if constexprLioncash
We can use if constexpr with the template functions that pass in a non-type template parameter, allowing the removal of branches that aren't taken at compile time. Compilers will generally do this by default, however, we now give a gentle prodding to the compiler if this would otherwise not be the case.
2019-12-05VideoCommon/IndexGenerator: Move stateless functions into anonymous namespaceLioncash
These don't rely on any of the static members within the IndexGenerator class, so we can make all of these functions fully internal to the translation unit.
2019-12-05VideoCommon/IndexGenerator: Make use of anonymous namespaceLioncash
More things will be moved into this in subsequent changes. While we're at it, we can also make use of std::array.
2019-12-05VideoCommon/OpcodeDecoding: Make use of if constexprLioncash
We can make use of if constexpr in several scenarios here to allow compilers to exise the relevant code paths out. Technically a decent compiler would do this already, but now we can give compilers a little more nudging here in the event that isn't the case.
2019-12-05VideoCommon/OpcodeDecoding: Remove unused headersLioncash
Nothing provided by these headers are used, so we can remove them.
2019-12-05VideoCommon/OpcodeDecoding: Resolve implicit signedness conversionLioncash
cmd2 is a u32, so any bitwise arithmetic on it with a type of the same size or smaller will result in a u32 value. This is also implicitly converted to an unsigned type in the if statement as well, given that size_t * int -> size_t. This is just more explicit about the operations occurring and also likely silences a sign conversion warning.
2019-12-05VideoCommon/OpcodeDecoding: Remove use of goto in Run()Lioncash
With the use of a lambda and a change in switch fallthrough, we can completely eliminate the use of goto within Run().
2019-12-05VideoCommon/OpcodeDecoding: Make use of anonymous namespaceLioncash
Provides a region for all internal utilities.
2019-12-05VideoCommon/OpcodeDecoding: Amend comment formattingLioncash
Amends a documentation comment that acquired some wonky formatting during the introduction of clang-format a few years ago.
2019-12-05VideoCommon/OpcodeDecoding: Move g_bRecordFifoData into namespaceLioncash
Keeps the global localized with the code that it's primarily related to. Now it's obvious from a glance what the global variable is affecting.
2019-12-05VideoCommon/OpcodeDecoding: Normalize variable namingLioncash
Provides consistent naming of variables within the translation unit. While we're at it, we can mark them const where applicable.
2019-12-05VideoCommon/FramebufferShaderGen: Make use of std::ostringstream internallyLioncash
We only use these string streams to output into a final std::string instance, we don't read into types with them. Because of this, we can just make use of std::ostringstream, rather than the fully-fledged std::stringstream.
2019-12-05VideoCommon/FramebufferShaderGen: Make use of std::string_view where applicableLioncash
Prevents the use of the null pointer as an input to any functions.
2019-12-04VideoCommon/FramebufferShaderGen: Remove unused Config structLioncash
This isn't used anywhere within the codebase, so it can be removed entirely.
2019-12-04VideoCommon/FramebufferShaderGen: Use an anonymous namespace where applicableLioncash
Places all internal helpers and types within an anonymous namespace.
2019-12-04VideoCommon/FramebufferShaderGen: Add missing initial source file commentsLioncash
Makes the source files consistent with the rest of the VideoCommon code.
2019-12-04VideoCommon/FramebufferShaderGen: Collapse stream insertionsLioncash
No behavioral change. This is intended to make the transition to fmt less noisy in subsequent changes by combining insertions of multiple string literals into one where applicable.