summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2019-07-21Vulkan: Disable reversed viewport depth on macOS/MoltenVKStenzek
Apparently this is broken despite being allowed by the spec.
2019-07-19Merge pull request #8249 from lioncash/rectConnor McLaughlin
VideoCommon: Remove unused MathUtil.h include from VideoCommon.h
2019-07-19FramebufferShaderGen: Fix format reinterpret shaders on GLESStenzek
2019-07-19TextureCache: Don't crash when conversion pipelines fail to compileStenzek
2019-07-18EFB2Tex: Set alpha channel of Z24X8 copies to 1Stenzek
Matches EFB2RAM.
2019-07-18Vulkan: Use reversed depth range in viewportStenzek
Also adds a DriverDetails bug to disable on drivers where this is still broken.
2019-07-16VideoCommon: Remove unused MathUtil.h include from VideoCommon.hLioncash
This header doesn't actually make use of MathUtil.h within itself, so this can be removed. Many other source files used VideoCommon.h as an indirect include to include MathUtil.h, so these includes can also be adjusted. While we're at it, we can also migrate valid inclusions of VideoCommon.h into cpp files where it can feasibly be done to minimize propagating it via other headers.
2019-07-14TextureCache: Support reinterpreting formats for VRAM texturesStenzek
2019-07-14TextureCache: Combine ApplyPaletteToEntry and ConvertTextureStenzek
2019-07-14TextureConversionShader: Swap bytes for RG8/GB8 formatStenzek
Matches the software renderer.
2019-07-10VideoCommon/Statistics: Remove unused DECSTAT macroLioncash
This isn't used anywhere, so it can be removed. This also potentially fixes an underlying compilation error waiting to happen, given DECSTAT could have potentially been used, someone disables statistics (for whatever reason), then gets a compilation error due to the #else case not containing an empty definition of DECSTAT.
2019-07-10VideoCommon/Statistics: Rename stats global to g_statsLioncash
Makes the global variable follow our convention of prefixing g_ on global variables to make it obvious in surrounding code that it's not a local variable.
2019-07-10VideoCommon/Statistics: Make all member functions non-staticLioncash
Rather than making Statistics' member functions operate on the global variable instance of itself, we can make these functions member functions and operate on a by-instance state, removing the direct dependency on the global variable itself. This also makes for less reading, as there's no need to repeat "stats." for all variable accesses.
2019-07-10VideoCommon/Statistics: Normalize statistic variable namesLioncash
Normalizes all variables related to statistics so that they follow our coding style. These are relatively low traffic areas, so this modification isn't too noisy.
2019-06-30Merge pull request #8128 from altimumdelta/FrameDumpUpgradePrep1Connor McLaughlin
Code: Rename AVIDump to FrameDump
2019-06-30VideoCommon: Rename AVIDump to FrameDumpaltimumdelta
2019-06-30Merge pull request #8215 from CookiePLMonster/appverifier-sanitizeConnor McLaughlin
Fixed various errors spotted with Application Verifier
2019-06-29Merge pull request #8205 from Techjar/crop-fixLéo Lam
VideoCommon/RenderBase: Fix crop
2019-06-29Merge pull request #8207 from lioncash/macroLéo Lam
VideoCommon/Statistics: Use std::array for projection values
2019-06-23Make DolphinAnalytics a true singleton - static local variables are ↵Silent
initialized in a thread safe manner since C++11 Also works around a Visual Studio 2017 bug where static inline class fields are destructed multiple times
2019-06-20VideoCommon/VertexShaderManager: Use std::array where applicableLioncash
We can use this to shorten up the initialization code a little bit. Despite being saved to savestates, this is a non-breaking change.
2019-06-20VideoCommon/Statistics: Remove unused setter macros for statisticsLioncash
Now that the floating point members are assigned in bulk, we can remove their setter macro. While we're at it, we can also remove the setter for unsigned int, given it's not used.
2019-06-20VideoCommon/Statistics: Use std::array for projection valuesLioncash
Makes the members within the interface much nicer to look at, and also makes copying them over much nicer too.
2019-06-20Merge pull request #8194 from lioncash/common-msgLéo Lam
Common/MsgHandler: Tidy up interface and namespace code
2019-06-19Common/MsgHandler: Namespace code within the Common namespaceLioncash
Closes another gap in the Common library where code isn't being namespaced under it.
2019-06-18VideoCommon/RenderBase: Fix cropTechjar
This fixes some mistakes from #8049 that caused crop to behave like stretch and have a funny offset.
2019-06-17VideoCommon/Statistics: Amend imgui includeLioncash
This is a library header, so it should be using '<' and '>' to delineate that.
2019-06-17VideoCommon/Statistics: Remove unused header inclusionsLioncash
These aren't used anywhere, so they can be removed.
2019-06-17VideoCommon/Statistics: Replace memset with assignment in ResetFrame()Lioncash
Same behavior, less code, and it doesn't require the type ThisFrame itself to actually be a trivially-copyable type.
2019-06-17VideoCommon/Statistics: Use ImGui::TextUnformatted() where applicableLioncash
ImGui::Text() assumes that the incoming text is intended to be formatted, but we don't actually use it to format anything. We can be explicit by using the relevant function. This also has a plus of not needing to go through the formatter itself, but the gains from that are probably minimal.
2019-06-17VideoCommon/Statistics: Replace DRAW_STAT macro with variadic lambdaLioncash
We don't need to use the preprocessor here. We can just use a variadic lambda function instead and forward the arguments to the formatting function.
2019-06-15VideoCommon/RenderBase: Reset scissor rectangle after ImGui renderingTechjar
This fixes the problem where OBS game capture only grabs the region inside an ImGui window whenever one is open, when using the OpenGL backend. Shouldn't have any negative effects, as the scissor would've been something completely arbitrary anyways. This may affect other capture software that uses the same hooking method, but I've only tested OBS.
2019-06-08VideoCommon/DriverDetails: Make look-up table immutableLioncash
Previously, this array potentially wouldn't be placed within the read-only segment, since it wasn't marked const. We can make the lookup table const, along with any other nearby variables.
2019-06-08Merge pull request #8049 from stenzek/cropConnor McLaughlin
Renderer: Adjust source rectangle when crop would draw off screen
2019-06-08Merge pull request #8139 from lioncash/constConnor McLaughlin
VideoCommon/PixelShaderGen: Make look-up table arrays immutable where applicable
2019-06-07Core/ConfigManager: Use forward declarations where applicableLioncash
Avoids dragging in IniFile, EXI device and SI device headers in this header which is quite widely used throughout the codebase. This also uncovered a few cases where indirect inclusions were being relied upon, which this also fixes.
2019-06-01Common/CommonFuncs: Remove now-unneccessary ArraySize functionLioncash
Since C++17, non-member std::size() is present in the standard library which also operates on regular C arrays. Given that, we can just replace usages of ArraySize with that where applicable. In many cases, we can just change the actual C array ArraySize() was called on into a std::array and just use its .size() member function instead. In some other cases, we can collapse the loops they were used in, into a ranged-for loop, eliminating the need for en explicit bounds query.
2019-05-31Merge pull request #8143 from lioncash/loaderLéo Lam
VertexLoader_*: Minor cleanup
2019-05-31VideoCommon/CMakeLists: Specify headers in target sourcesLioncash
2019-05-31VideoCommon: Constrain the array_base registersbooto
The array_base registers as part of CP state do not seem to incorporate the upper bits in the physical address they try to access.
2019-05-30VideoCommon/ShaderGenCommon: Fix memcmp size in ShaderUid operatorsTechjar
2019-05-30VertexLoader_TextCoord: Tidy up public function definitionsLioncash
We can use u32 instead of unsigned int to shorten up these definitions and make them much nicer to read. While we're at it, change the size array to house u32 elements to match the return value of the function.
2019-05-30VertexLoader_TextCoord: Make lookup tables immutableLioncash
Allows the compiler to place the data within the read-only segment.
2019-05-30VertexLoader_TextCoord: Place helper functions in anonymous namespaceLioncash
Gives them all internal linkage.
2019-05-30VertexLoader_Position: Tidy up public function definitionsLioncash
We can use u32 instead of unsigned int to shorten up these definitions and make them much nicer to read. While we're at it, change the size array to house u32 elements to match the return value of the function.
2019-05-30VertexLoader_Position: Make lookup tables immutableLioncash
Allows the compiler to place these arrays within the read-only segment.
2019-05-30VertexLoader_Position: Place helper functions in anonymous namespaceLioncash
2019-05-30VertexLoader_Color: Place helper functions in anonymous namespaceLioncash
While we're at it, convert the define into a constexpr variable.
2019-05-30Merge pull request #8140 from lioncash/vertexLéo Lam
VideoCommon/VertexLoader_Normal: Construct look-up table at compile-time
2019-05-30Merge pull request #8141 from lioncash/initLéo Lam
VideoCommon/ShaderGenCommon: Simplify initialization of ShaderUid class