| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
video_core: Remove redundant pixel format type
|
| |
| |
| |
| | |
We already get the format type before converting shadow formats and during shadow formats.
|
| |
| |
| |
| | |
Provides a convenient way to avoid unnecessary zero initializing.
|
| |
| |
| |
| | |
This is a redundant assignment that can be removed.
|
| |
| |
| |
| | |
These are bugs waiting to happen.
|
|\ \
| |/
|/| |
video_core: Fix, add and rename pixel formats
|
| |
| |
| |
| |
| |
| | |
Normalizes pixel format names to match Vulkan names. Previous to this
commit pixel formats had no convention, leading to confusion and
potential bugs.
|
|/
|
|
|
|
|
| |
Change GOB sizes from free-functions to constexpr constants.
Add SwizzleSliceToVoxel, a function that swizzles a 2D array of pixels
into a 3D texture and use it for 3D copies.
|
|
|
|
|
|
| |
Handle blits to images as 2D, even when they have block depth.
- Fixes rendering issues on Luigi's Mansion 3
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows rendering to 3D textures with more than one slice.
Applications are allowed to render to more than one slice of a texture
using gl_Layer from a VTG shader.
This also requires reworking how 3D texture collisions are handled, for
now, this commit allows rendering to slices but not to miplevels. When a
render target attempts to write to a mipmap, we fallback to the previous
implementation (copying or flushing as needed).
- Fixes color correction 3D textures on UE4 games (rainbow effects).
- Allows Xenoblade games to render to 3D textures directly.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Allows reporting more cases where logic errors may exist, such as
implicit fallthrough cases, etc.
We currently ignore unused parameters, since we currently have many
cases where this is intentional (virtual interfaces).
While we're at it, we can also tidy up any existing code that causes
warnings. This also uncovered a few bugs as well.
|
|\
| |
| | |
Revert "Merge pull request #3499 from ReinUsesLisp/depth-2d-array"
|
| |
| |
| |
| |
| |
| |
| | |
This reverts commit 41905ee467b24172ba93e3fcd665bb4e4806a45a, reversing
changes made to 35145bd529c3517e2c366efc764a762092d96edf.
It causes regressions in several games.
|
|/ |
|
|
|
|
|
|
|
| |
Sometimes games will sample a 2D array TIC with a 2D access in the
shader. This causes bad interactions with the rest of the texture cache.
To emulate what the game wants to do, force a depth=1 on 2D textures
(not 2D arrays) and let the texture cache handle the rest.
|
|
|
|
|
|
| |
Layered framebuffer attachments is a feature that allows applications to
write attach layered textures to a single attachment. What layer the
fragments are written to is decided from the shader using gl_Layer.
|
|
|
|
|
|
| |
This commit adds a series of HLE methods for handling 3D textures in
general. This helps games that generate 3D textures on every frame and
may reduce loading times for certain games.
|
|
|
|
|
|
|
| |
This commit aims to redo the full setup of invalid textures and
guarantee correct behavior across backends in the case of finding one by
using black dummy textures that match the target of the expected
texture.
|
|
|
|
|
|
| |
Use a large flat array to look up texture formats. This allows us to
properly implement formats with different component types. It should
also be faster.
|
|
|
|
|
|
|
|
|
| |
Abstracted ComponentType was not being used in a meaningful way.
This commit drops its usage.
There is one place where it was being used to test compatibility between
two cached surfaces, but this one is implied in the pixel format.
Removing the component type test doesn't change the behaviour.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This makes conflicts between non compress and compress textures to be
auto recycled. It also limits the amount of mipmaps a texture can have
if it goes above it's limit.
|
|
|
|
|
|
|
| |
Fixed ASTC mipmaps loading
Fixed alignment on openGL upload/download
Fixed Block Height Calculation
Removed unalign_height
|
| |
|
|
|
|
|
| |
Instead of using Common::AlignUp, use Common::AlignBits to align the
texture compression factor.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of storing all block width, height and depths in their shifted
form:
block_width = 1U << block_shift;
Store them like they are provided by the emulated hardware (their
block_shift form). This way we can avoid doing the costly
Common::AlignUp operation to align texture sizes and drop CPU integer
divisions with bitwise logic (defined in Common::AlignBits).
|
| |
|
| |
|
|
|