Fernando Sahmkow
f1adfe6591
MaxwellDMA: Fixes, corrections and relaxations.
This commit fixes offsets on Linear -> Tiled copies, corrects z pos
fortiled->linear copies, corrects bytes_per_pixel calculation in tiled
-> linear copies and relaxes some limitations set by latest dma fixes
refactors.
7 years ago
ReinUsesLisp
93a5cdecbb
textures: Fix texture buffer size calculation
7 years ago
Fernando Sahmkow
b62d22a77d
texture_cache: Style and Corrections
7 years ago
Fernando Sahmkow
7afd5d2367
surface: Correct format S8Z24
7 years ago
Fernando Sahmkow
18322c1369
decoders: correct block calculation
7 years ago
ReinUsesLisp
91b16d383a
maxwell_3d: Partially implement texture buffers as 1D textures
7 years ago
Fernando Sahmkow
53e9e3966a
texture_cache: General Fixes
Fixed ASTC mipmaps loading
Fixed alignment on openGL upload/download
Fixed Block Height Calculation
Removed unalign_height
7 years ago
ReinUsesLisp
1d10810d2b
video_core: Use un-shifted block sizes to avoid integer divisions
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).
7 years ago
ReinUsesLisp
f46a979f19
gl_texture_cache: Add fast copy path
7 years ago
ReinUsesLisp
3b430b5605
gl_texture_cache: Initial implementation
7 years ago
ReinUsesLisp
3466bf45e8
maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap mode
7 years ago
Lioncash
d6db5ebae2
video_core/textures/astc: Remove unused variables
Silences a few compilation warnings.
7 years ago
Fernando Sahmkow
aebe67fac7
Fix Layered ASTC Textures
By adding the missing layer offset in ASTC compression.
7 years ago
Fernando Sahmkow
56c2b0ea86
Apply Const correctness to SwizzleKepler and replace u32 for size_t on iterators.
7 years ago
Fernando Sahmkow
15368c6070
Implement Block Linear copies in Kepler Memory.
7 years ago
Lioncash
053aae66c1
video_core/textures/convert: Replace include with a forward declaration
Avoids dragging in a direct dependency in a header.
7 years ago
Lioncash
44d91d561a
video_core/texures/texture: Remove unnecessary includes
Nothing in this header relies on common_funcs or the memory manager.
This gets rid of reliance on indirect inclusions in the OpenGL caches.
7 years ago
bunnei
d3f26c1546
video_core: Refactor to use MemoryManager interface for all memory access.
# Conflicts:
# src/video_core/engines/kepler_memory.cpp
# src/video_core/engines/maxwell_3d.cpp
# src/video_core/morton.cpp
# src/video_core/morton.h
# src/video_core/renderer_opengl/gl_global_cache.cpp
# src/video_core/renderer_opengl/gl_global_cache.h
# src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
7 years ago
ReinUsesLisp
3288b12a28
video_core/texture: Fix up sampler lod bias
7 years ago
ReinUsesLisp
a9c05dfcd7
vk_sampler_cache: Implement a sampler cache
7 years ago
ReinUsesLisp
1fc1607e10
video_core/texture: Add a raw representation of TSCEntry
7 years ago
ReinUsesLisp
d949475417
gl_rasterizer: Encapsulate sampler queries into methods
7 years ago
ReinUsesLisp
3989075e5f
gl_rasterizer_cache: Move format conversion to its own file
7 years ago
ReinUsesLisp
64612bf940
decoders: Minor style changes
7 years ago
ReinUsesLisp
c1e8fe0067
video_core/texture: Fix BitField size for depth_minus_one
7 years ago
ReinUsesLisp
04fe4a72b9
maxwell_3d: Allow texture handles with TIC id zero
Also remove "enabled" field from Tegra::Texture::FullTextureInfo because
it would become unused.
7 years ago
David Marcec
1dfb0a513a
Fixed uninitialized memory due to missing returns in canary
Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used.
7 years ago
FernandoS27
b509890e4c
Implemented Tile Width Spacing
7 years ago
Frederic L
d2dd9cfc1d
Eliminated unnessessary memory allocation and copy ( #1702 )
7 years ago
Rodolfo Bogado
23a2acdf61
fix sampler configuration, thanks to Marcos for his investigation
7 years ago
Frederic Laing
9d588877ef
textures/decoders: Replace magic numbers
7 years ago
Frederic Laing
8dcfc75e4e
textures/decoders: Minor cleanup
7 years ago
greggameplayer
ec188ec832
Implement ASTC_2D_10X8 & ASTC_2D_10X8_SRGB ( #1666 )
* Implement ASTC_2D_10X8 & ASTC_2D_10X8_SRGB
( needed by Mario+Rabbids Kingdom Battle )
* Small placement correction
7 years ago
Rodolfo Bogado
6233b6b235
set sampler max lod, min lod, lod bias and max anisotropy
7 years ago
FernandoS27
82d04c5e99
Fix ASTC Decompressor to support depth parameter
7 years ago
FernandoS27
fe596b4c6e
Fix ASTC formats
7 years ago
FernandoS27
be78be20dc
Fixed mipmap block autosizing algorithm
7 years ago
Rodolfo Bogado
1670155ee2
Implement sRGB Support, including workarounds for nvidia driver issues and QT sRGB support
7 years ago
Lioncash
a3c2defab1
decoders: Remove unused variable within SwizzledData()
7 years ago
FernandoS27
88ff802e1a
Fixed Layered Textures Loading and Cubemaps
7 years ago
bunnei
fa24c17b95
decoders: Introduce functions for un/swizzling subrects.
7 years ago
FernandoS27
39ba6950b8
Shorten the implementation of 3D swizzle to only 3 functions
7 years ago
FernandoS27
92e9faba25
Fix a Crash on Zelda BotW and Splatoon 2, and simplified LoadGLBuffer
7 years ago
FernandoS27
1a70753709
Propagate depth and depth_block on modules using decoders
7 years ago
FernandoS27
8b1e913058
Remove old Swizzle algorithms and use 3d Swizzle
7 years ago
FernandoS27
2650e33c48
Implement Precise 3D Swizzle
7 years ago
FernandoS27
8b32bd526b
Implement Fast 3D Swizzle
7 years ago
Hexagon12
f50514b25b
Added ASTC 5x4; 8x5
7 years ago
FernandoS27
eec2311ec1
Implemented helper function to correctly calculate a texture's size
7 years ago
FernandoS27
020cee90ef
Fixed block height settings for RenderTargets and Depth Buffers, and added block width and block depth
7 years ago