| Age | Commit message (Collapse) | Author |
|
Apparently this is broken despite being allowed by the spec.
|
|
VideoCommon: Remove unused MathUtil.h include from VideoCommon.h
|
|
|
|
|
|
Matches EFB2RAM.
|
|
Also adds a DriverDetails bug to disable on drivers where this is still
broken.
|
|
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.
|
|
|
|
|
|
Matches the software renderer.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
Code: Rename AVIDump to FrameDump
|
|
|
|
Fixed various errors spotted with Application Verifier
|
|
VideoCommon/RenderBase: Fix crop
|
|
VideoCommon/Statistics: Use std::array for projection values
|
|
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
|
|
We can use this to shorten up the initialization code a little bit.
Despite being saved to savestates, this is a non-breaking change.
|
|
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.
|
|
Makes the members within the interface much nicer to look at, and also
makes copying them over much nicer too.
|
|
Common/MsgHandler: Tidy up interface and namespace code
|
|
Closes another gap in the Common library where code isn't being
namespaced under it.
|
|
This fixes some mistakes from #8049 that caused crop to behave like
stretch and have a funny offset.
|
|
This is a library header, so it should be using '<' and '>' to delineate
that.
|
|
These aren't used anywhere, so they can be removed.
|
|
Same behavior, less code, and it doesn't require the type ThisFrame
itself to actually be a trivially-copyable type.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
Renderer: Adjust source rectangle when crop would draw off screen
|
|
VideoCommon/PixelShaderGen: Make look-up table arrays immutable where applicable
|
|
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.
|
|
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.
|
|
VertexLoader_*: Minor cleanup
|
|
|
|
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.
|
|
|
|
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.
|
|
Allows the compiler to place the data within the read-only segment.
|
|
Gives them all internal linkage.
|
|
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.
|
|
Allows the compiler to place these arrays within the read-only segment.
|
|
|
|
While we're at it, convert the define into a constexpr variable.
|
|
VideoCommon/VertexLoader_Normal: Construct look-up table at compile-time
|
|
VideoCommon/ShaderGenCommon: Simplify initialization of ShaderUid class
|