summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/decoders.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades792023-02-141-1/+1
| | | | Signed-off-by: arades79 <scravers@protonmail.com>
* add static lifetime to constexpr values to force compile time evaluation where possiblearades792023-02-141-1/+1
| | | | Signed-off-by: arades79 <scravers@protonmail.com>
* Add break for default casesKyle Kienapfel2022-11-141-0/+3
| | | | | | | | | | | Visual Studio has an option to search all files in a solution, so I did a search in there for "default:" looking for any missing break statements. I've left out default statements that return something, and that throw something, even if via ThrowInvalidType. UNREACHABLE leads towards throw R_THROW macro leads towards a return
* decoders: Use 2's complement instead of unary -Morph2022-10-221-1/+1
| | | | Resolves C4146 on MSVC
* Decoders: Improve overall speed.Fernando Sahmkow2022-10-061-4/+11
|
* DMA & InlineToMemory Engines Rework.bunnei2022-10-061-150/+75
|
* video_core/textures/decoders: Avoid SWIZZLE_TABLEMerry2022-08-091-15/+45
|
* common: Change semantics of UNREACHABLE to unconditionally crashLiam2022-06-141-4/+4
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* video_core: Reduce unused includesameerj2022-03-191-2/+0
|
* Merge pull request #6879 from ameerj/decoder-assertbunnei2021-08-311-8/+0
|\ | | | | vk_blit_screen: Fix non-accelerated texture size calculation
| * vk_blit_screen: Fix non-accelerated texture size calculationameerj2021-08-161-8/+0
| | | | | | | | Addresses the potential OOB access in UnswizzleTexture.
* | decoders: Templates allow memcpy optimizationsyzct123452021-08-121-57/+116
|/
* decoders: Optimize swizzle copy performance (#6790)yzct123452021-08-021-9/+43
| | | This makes UnswizzleTexture up to two times faster. It is the main bottleneck in NVDEC video decoding.
* decoders: Break instead of continuelat9nq2021-06-041-2/+2
| | | | continue causes a memory leak in A Hat in Time.
* decoders: Avoid out-of-bounds accesslat9nq2021-06-041-0/+8
| | | | This is not a real fix, so assert here and continue before crashing.
* renderer_vulkan: Accelerate ASTC decodingameerj2021-03-131-23/+0
| | | | Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
* common/alignment: Rename AlignBits to AlignUpLog2ReinUsesLisp2021-01-151-4/+4
| | | | AlignUpLog2 describes what the function does better than AlignBits.
* video_core: Rewrite the texture cacheReinUsesLisp2020-12-301-171/+78
| | | | | | | | | | | | | | The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage.The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage. This commit aims to address those issues.
* textures/decoders: Fix block linear to pitch copiesReinUsesLisp2020-08-111-18/+24
| | | | | | | | | | | | There were two issues with block linear copies. First the swizzling was wrong and this commit reimplements them. The other issue was that these copies are generally used to download render targets from the GPU and yuzu was not downloading them from host GPU memory unless the extreme GPU accuracy setting was selected. This commit enables cached memory reads for all accuracy levels. - Fixes level thumbnails in Super Mario Maker 2.
* Merge pull request #4324 from ReinUsesLisp/formatsbunnei2020-07-211-89/+0
|\ | | | | video_core: Fix, add and rename pixel formats
| * video_core: Rearrange pixel format namesReinUsesLisp2020-07-131-89/+0
| | | | | | | | | | | | Normalizes pixel format names to match Vulkan names. Previous to this commit pixel formats had no convention, leading to confusion and potential bugs.
* | video_core/textures: Add and use SwizzleSliceToVoxel, and minor style changesReinUsesLisp2020-07-101-57/+77
|/ | | | | | | 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.
* MaxwellDMA: Optimize micro copies.Fernando Sahmkow2020-04-281-0/+14
|
* General: Resolve warnings related to missing declarationsLioncash2020-04-171-0/+3
|
* MaxwellDMA: Fixes, corrections and relaxations.Fernando Sahmkow2019-07-261-6/+8
| | | | | | | 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.
* texture_cache: Style and CorrectionsFernando Sahmkow2019-06-211-3/+4
|
* decoders: correct block calculationFernando Sahmkow2019-06-211-19/+15
|
* video_core: Use un-shifted block sizes to avoid integer divisionsReinUsesLisp2019-06-211-20/+35
| | | | | | | | | | | | 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).
* gl_texture_cache: Add fast copy pathReinUsesLisp2019-06-211-2/+1
|
* gl_texture_cache: Initial implementationReinUsesLisp2019-06-211-1/+2
|
* Apply Const correctness to SwizzleKepler and replace u32 for size_t on iterators.Fernando Sahmkow2019-04-161-7/+9
|
* Implement Block Linear copies in Kepler Memory.Fernando Sahmkow2019-04-161-0/+21
|
* video_core: Refactor to use MemoryManager interface for all memory access.bunnei2019-03-161-17/+15
| | | | | | | | | | | # 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
* gl_rasterizer_cache: Move format conversion to its own fileReinUsesLisp2019-02-271-1/+1
|
* decoders: Minor style changesReinUsesLisp2019-02-271-2/+2
|
* Fixed uninitialized memory due to missing returns in canaryDavid Marcec2018-12-191-1/+1
| | | | Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used.
* Implemented Tile Width SpacingFernandoS272018-11-261-9/+13
|
* Merge pull request #1717 from FreddyFunk/swizzle-gobbunnei2018-11-191-37/+33
|\ | | | | textures/decoders: Replace magic numbers
| * textures/decoders: Replace magic numbersFrederic Laing2018-11-171-37/+33
| |
* | Eliminated unnessessary memory allocation and copy (#1702)Frederic L2018-11-191-4/+11
|/
* textures/decoders: Minor cleanupFrederic Laing2018-11-151-16/+16
|
* Implement ASTC_2D_10X8 & ASTC_2D_10X8_SRGB (#1666)greggameplayer2018-11-131-0/+4
| | | | | | | * Implement ASTC_2D_10X8 & ASTC_2D_10X8_SRGB ( needed by Mario+Rabbids Kingdom Battle ) * Small placement correction
* Fix ASTC formatsFernandoS272018-11-011-5/+7
|
* Merge pull request #1524 from FernandoS27/layers-fixbunnei2018-10-251-3/+3
|\ | | | | rasterizer: Fix Layered Textures Loading and Cubemaps
| * Fixed Layered Textures Loading and CubemapsFernandoS272018-10-231-3/+3
| |
* | decoders: Remove unused variable within SwizzledData()Lioncash2018-10-241-1/+0
|/
* decoders: Introduce functions for un/swizzling subrects.bunnei2018-10-191-0/+40
|
* Merge pull request #1488 from Hexagon12/astc-typesbunnei2018-10-141-0/+2
|\ | | | | video_core: Added ASTC 5x4; 8x5 types
| * Added ASTC 5x4; 8x5Hexagon122018-10-131-0/+2
| |
* | Shorten the implementation of 3D swizzle to only 3 functionsFernandoS272018-10-141-70/+27
| |
* | Fix a Crash on Zelda BotW and Splatoon 2, and simplified LoadGLBufferFernandoS272018-10-131-1/+1
| |
* | Propagate depth and depth_block on modules using decodersFernandoS272018-10-131-19/+21
| |
* | Remove old Swizzle algorithms and use 3d SwizzleFernandoS272018-10-131-93/+69
| |
* | Implement Precise 3D SwizzleFernandoS272018-10-131-3/+71
| |
* | Implement Fast 3D SwizzleFernandoS272018-10-131-2/+74
| |
* | Implemented helper function to correctly calculate a texture's sizeFernandoS272018-10-121-0/+16
|/
* Reverse stride align restriction on FastSwizzle due to lost performanceFernandoS272018-09-211-3/+2
|
* Join both Swizzle methods within one interface functionFernandoS272018-09-211-11/+19
|
* Standarized Legacy Swizzle to look alike FastSwizzle and use a Swizzling Table insteadFernandoS272018-09-211-42/+38
|
* Remove same output bpp restriction on FastSwizzleFernandoS272018-09-211-4/+5
|
* Improved Legacy Swizzler to be better documented and work betterFernandoS272018-09-211-15/+21
|
* Improved fast swizzle and removed restrictions to itFernandoS272018-09-211-7/+12
|
* Merge pull request #1311 from FernandoS27/fast-swizzlebunnei2018-09-171-2/+49
|\ | | | | Optimized Texture Swizzling
| * Optimized Texture SwizzlingFernandoS272018-09-141-2/+49
| |
* | Implement ASTC_2D_8X8 (Bayonetta 2)raven022018-09-161-0/+2
|/
* Implement BC6H_UF16 & BC6H_SF16 (#1092)greggameplayer2018-08-311-0/+4
| | | | | | | | | * Implement BC6H_UF16 & BC6H_SF16 Require by ARMS * correct coding style * correct coding style part 2
* textures: Refactor out for Texture/Depth FormatFromPixelFormat.bunnei2018-08-101-81/+4
|
* Implement BC5/DXN2 (#996)Khangaroo2018-08-091-0/+3
| | | - Used by Kirby Star Allies.
* Implement RGB32F PixelFormat (#886) (used by Go Vacation)greggameplayer2018-08-021-0/+4
|
* Implement R16_G16Unknown2018-07-261-0/+3
| | | | | | | | | | | | | | | | | | correct trailing white spaces Delete tabs correct placement Add RG16F & RG16UI & RG16I & RG16S PixelFormats Return correct data according to changes done previously correct PixelFormat declaration correct coding style error correct coding style error part 2 correct RG16S Declaration error correct alignment
* GPU: Implemented the Z32_S8_X24 depth buffer format.Subv2018-07-251-0/+3
|
* GPU: Implemented the R16 and R16F texture formats.Subv2018-07-241-0/+3
|
* GPU: Implement texture format R32F.Subv2018-07-241-0/+3
|
* gl_rasterizer_cache: Implement RenderTargetFormat RG32_FLOAT.bunnei2018-07-241-0/+4
|
* video_core: Use nested namespaces where applicableLioncash2018-07-211-4/+2
| | | | Compresses a few namespace specifiers to be more compact.
* decoders: Fix calc of swizzle image_width_in_gobs.bunnei2018-07-191-1/+4
|
* gl_rasterizer_cache: Implement texture format G8R8.bunnei2018-07-151-0/+3
|
* gl_rasterizer_cache: Implement depth format Z16_UNORM.bunnei2018-07-151-0/+3
|
* GPU: Implemented the BC7U texture format.Subv2018-07-071-0/+3
| | | | Note: Our version of glad exports GL_COMPRESSED_RGBA_BPTC_UNORM as GL_COMPRESSED_RGBA_BPTC_UNORM_ARB, maybe it's time we update it.
* GPU: Implemented the 32 bit float depth buffer format.Subv2018-07-041-0/+2
|
* gl_rasterizer_cache: Implement PixelFormat S8Z24.bunnei2018-07-031-0/+2
|
* GPU: Implemented the Z24S8 depth format and load the depth framebuffer.Subv2018-07-021-0/+31
|
* GPU: Implemented the RGBA32_UINT rendertarget format.Subv2018-06-301-0/+4
|
* gl_rasterizer: Implement texture format ASTC_2D_4X4.bunnei2018-06-181-0/+3
|
* GPU: Implemented the R11FG11FB10F texture and rendertarget formats.Subv2018-06-061-0/+3
|
* GPU: Implemented the DXN1 (BC4) texture format.Subv2018-06-021-1/+5
|
* gl_rasterizer_cache: Implement PixelFormat RGBA16F.bunnei2018-05-311-0/+3
|
* GPU: Implemented the R8 texture format (0x1D)Subv2018-05-301-0/+4
|
* GPU: Implemented the A1B5G5R5 texture format (0x14)Subv2018-05-271-0/+3
|
* GPU: Make the Textures::CopySwizzledData function accessible from the outside of the file.Subv2018-04-251-3/+2
|
* gl_rasterizer_cache: Update to be based on GPU addresses, not CPU addresses.bunnei2018-04-251-0/+1
|
* GPU: Implement the A2BGR10 texture format.Subv2018-04-221-0/+3
|
* GPU: Add support for the DXT23 and DXT45 compressed texture formats.Subv2018-04-191-1/+9
|
* GPU: Implemented the B5G6R5 format.Subv2018-04-191-0/+4
|
* GPU: Allow using a configurable block height when unswizzling textures.Subv2018-04-181-5/+4
|
* Frontend: Updated the surface view debug widget to work with Maxwell surfaces.Subv2018-03-241-0/+11
|
* GPU: Added a method to unswizzle a texture without decoding it.Subv2018-03-241-2/+82
| | | | Allow unswizzling of DXT1 textures.
* GPU: Preliminary work for texture decoding.Subv2018-03-241-0/+14