| Age | Commit message (Collapse) | Author |
|
This field was previously left uninitialized, which resulted in corrupted
UID caches being created.
|
|
Fix race condition caused by opening graphics options while running
|
|
glBlitFramebuffer() does not bypass the scissor test, which meant that
part of texture copies (e.g. XFB) could have been clipped when running
under OpenGL ES, as glCopyImageSubData() is not supported.
|
|
floatindex is clamped to the range [0, 9]. For non-negative numbers
floor() is equivalent to trunc(). Truncation happens implicitly when
converting to uint, so the floor() is unnecessary.
|
|
VideoSoftware: make use of Clamp()
|
|
GL/TextureCache: Clean up inline shader code
|
|
|
|
|
|
|
|
It's not providing a large performance improvement anymore, after the
more recent drivers introduced a new shader compiler.
|
|
|
|
|
|
|
|
The software backend doesn't actually use X11 in any capacity directly.
|
|
Software Renderer "Dump Objects" needs dedicated folder and tooltip
|
|
|
|
OGL/Streambuffer: Use coherent mapping by default.
|
|
Use some C++17 features available since GCC 6
|
|
|
|
|
|
|
|
Coherent mappings have a lower overhead and less GL codes.
So enables coherent mapping by default for all drivers.
Both Qualcomm and ARM performs very bad with explicit flushing, so this change helps them as well.
AFAIK there was one GPU generation which was slower on coherent mapping: nvidia tesla
So Geforce 200 and 300 series should be tested with this PR before merging.
As this was last tested many years ago, this issue might have been fixed as well.
Those GPUs are close to 10 years old and not supported any more by nvidia.
|
|
|
|
Using 8-bit integer math here lead to precision loss for depth copies,
which broke various effects in games, e.g. lens flare in MK:DD.
It's unlikely the console implements this as a floating-point multiply
(fixed-point perhaps), but since we have the float round trip in our
EFB2RAM shaders anyway, it's not going to make things any worse. If we
do rewrite our shaders to use integer math completely, then it might be
worth switching this conversion back to integers.
However, the range of the values (format) should be known, or we should
expand all values out to 24-bits first.
|
|
Avoids performing avoidable file-scope heap allocations
|
|
|
|
This is only ever used internally, so we can limit its scope to the only
usage point.
|
|
|
|
Instead, expose functions to operate with it. This way we keep the
internal representation concealed.
|
|
|
|
TextureConversionShader: Don't sample from adjacent rows when not needed
|
|
Config: Fix implicit conversions/enum config types
|
|
|
|
This allows GLSL_EFB_POKE_GEOMETRY_GS to compile again.
|
|
This excludes the second argument from template deduction.
Otherwise, it is required to manually cast the second argument to
the ConfigInfo type (because implicit conversions won't work).
e.g. to set the value for a ConfigInfo<std::string> from a string
literal, you'd need a ugly `std::string("yourstring")`.
|
|
D3D/Vulkan: Fix incorrect clamp in EFB RAM copy
|
|
Also move it to MathUtils where it belongs with the rest of the
power-of-two functions. This gets rid of pollution of the current scope
of any translation unit with b<value> macros that aren't intended to be
used directly.
|
|
This could cause darker-than-expected EFB copies if clamping was not
enabled, and the user forced EFB copies to RAM only.
|
|
|
|
OGL/FramebufferManager: Clean up inline GLSL code
|
|
|
|
|
|
No longer needed as we perform gamma correction during the XFB copy.
|
|
|
|
Also makes y_scale a dynamic parameter for EFB copies, as it doesn't
make sense to keep it as part of the uid, otherwise we're generating
redundant shaders.
|
|
RE4's brightness screen is actually very good for spotting these.
Bug 1: Colors at the end of the scanlines are clamped, instead of a black
border
Bug 2: U and V color channels share coordinates, instead of being offset
by a pixel.
|
|
|
|
|
|
|
|
Enforces the termination of GENERIC_LOGs with semicolons.
|