| Age | Commit message (Collapse) | Author |
|
|
|
They are right, our perf query implementation is terrible.
But raising a warning makes it just even slower.
|
|
The appropriate place for these would be AbstractTexture, once it is
finished.
|
|
|
|
|
|
|
|
|
|
This also removes an extra copy of the image for custom textures.
|
|
This leaves DDS textures using DXT1/3/5 compressed in-memory, which can
be passed directly to the backend.
|
|
The backends don't use this list at all, and since more than one
backend supports post-processing now, it's duplicate code.
|
|
No new features, just parity with OpenGL.
|
|
The parameter types will be different for each backend currently,
anyway (e.g. textures/render passes/etc).
|
|
Vulkan: Use BlendingState from VideoCommon
|
|
Vulkan: MSAA and frame dumping fixes
|
|
How GL_DITHER works is implementation-defined, and we handle the
non-blended case in the pixel shader.
|
|
It was a no-op on all backends apart from GL anyhow.
|
|
Remove the internal BlendState union. Also fixes Kirby's Return to
Dreamland shadows.
|
|
This is because we re-use BlendingState for our internal drawing (e.g.
RasterFont) and for these shaders, we can't assume the presence of a
second color output.
|
|
This removes the need for token pasting, which isn't supported in GLSL
ES. Shouldn't cause any issues unless people are using reserved keywords
as option names.
|
|
Prevents destroying a framebuffer that may still be in use by a previous
frame dump.
|
|
|
|
This is invalid and was causing the NVIDIA driver to throw an error.
|
|
|
|
Running with GPU texture decoding enabled could cause us to run out of
descriptors within a single frame.
|
|
This occured when a game set an out-of-range EFB clear region.
|
|
|
|
|
|
RenderBase: Return tuples from CalculateTargetScale and ConvertStereoRectangle instead of using out parameters
|
|
TextureCache: Fix incomplete GPU texture decoding of non-square mips
|
|
parameters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This also changes bSupportsEarlyFragmentTests to
bSupportsImageLoadStore, as it is used for both.
|
|
|
|
This ensures that they are complete textures by decoding time, as when
using compute shaders we write directly to the destination texture.
|
|
The loop was allocating one-too-many levels, as well as incorrect sizes
for each level. Probably not an issue as mipmapped render targets aren't
used, but the logic should be correct anyway.
|
|
This was a regression from the remove-everything-static-from-renderer
PR. As the comment indicates, it would be nice to move all of this logic
out of the Renderer constructor, but this is a much larger change.
|
|
The FrameBufferManager::CreateTexture (from the OpenGL backend) method introduced by commit 69cedf41 incorrectly compares the texture variable (which contains a name provided by glGenTextures) against GL_TEXTURE_2D_MULTISAMPLE_ARRAY and GL_TEXTURE_2D_MULTISAMPLE.
It should instead use the texture_type variable for this (as done in the first branch of the if).
|
|
@JMC47 requested this to be able to do performance comparisons.
|
|
|
|
This commit should have zero performance effect if SSBOs are supported.
If they aren't (e.g. on all Macs), this commit alters FramebufferManager
to attach a new stencil buffer and VertexManager to draw to it when
bounding box is active. `BBoxRead` gets the pixel data from the buffer
and dumbly loops through it to find the bounding box.
This patch can run Paper Mario: The Thousand-Year Door at almost full
speed (50–60 FPS) without Dual-Core enabled for all common bounding
box-using actions I tested (going through pipes, Plane Mode, Paper
Mode, Prof. Frankly's gate, combat, walking around the overworld, etc.)
on my computer (macOS 10.12.3, 2.8 GHz Intel Core i7, 16 GB 1600 MHz
DDR3, and Intel Iris 1536 MB).
A few more demanding scenes (e.g. the self-building bridge on the way
to Petalburg) slow to ~15% of their speed without this patch (though
they don't run quite at full speed even on master). The slowdown is
caused almost solely by `glReadPixels` in `OGL::BoundingBox::Get`.
Other implementation ideas:
- Use a stencil buffer that's separate from the depth buffer. This would
require ARB_texture_stencil8 / OpenGL 4.4, which isn't available on
macOS.
- Use `glGetTexImage` instead of `glReadPixels`. This is ~5 FPS slower
on my computer, presumably because it has to transfer the entire
combined depth-stencil buffer instead of only the stencil data.
Getting only stencil data from `glGetTexImage` requires
ARB_texture_stencil8 / OpenGL 4.4, which (again) is not available on
macOS.
- Don't use a PBO, and use `glReadPixels` synchronously. This has no
visible performance effect on my computer, and is theoretically
slower.
|
|
|
|
|
|
|