summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-03-18astc: Fix clang build issuesReinUsesLisp1-12/+12
2020-03-14astc: Fix typos from search and replaceReinUsesLisp1-3/+3
2020-03-14astc: Minor changes to InputBitStreamReinUsesLisp1-28/+34
2020-03-14astc: Pass val in Replicate by copyReinUsesLisp1-1/+1
2020-03-14astc: Call std::vector:reserve on decodedClolorValues to avoid reallocatingReinUsesLisp1-0/+2
2020-03-14astc: Call std::vector::reserve on texelWeightValues to avoid reallocatingReinUsesLisp1-0/+2
2020-03-14astc: Create a LUT at compile time for encoding valuesReinUsesLisp1-7/+19
2020-03-14astc: Make IntegerEncodedValue a trivial structureReinUsesLisp1-212/+177
2020-03-14astc: Make IntegerEncodedValue constructor constexprReinUsesLisp1-5/+6
2020-03-14astc: Make IntegerEncodedValue trivially copyableReinUsesLisp1-9/+2
2020-03-14astc: Rename C types to common_typesReinUsesLisp1-79/+78
2020-03-14astc: Move Popcnt to an anonymous namespace and make it constexprReinUsesLisp1-9/+13
2020-03-14astc: Use common types instead of stdint.h integer typesReinUsesLisp1-284/+282
2020-03-14astc: Use 'enum class' instead of 'enum' for EIntegerEncodingReinUsesLisp1-25/+25
2020-03-08textures: Fix anisotropy hackReinUsesLisp1-14/+16
Previous code could generate an anisotropy value way higher than x16.
2020-02-28Create an "Advanced" tab in the graphics configuration tab and add anisotropic filtering levels.Morph1-1/+23
2019-12-22Texture Cache: Add HLE methods for building 3D textures within the GPU in certain scenarios.Fernando Sahmkow1-0/+4
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.
2019-11-08video_core: Silence implicit conversion warningsReinUsesLisp2-38/+42
2019-10-30shader/node: Unpack bindless texture encodingReinUsesLisp1-0/+2
Bindless textures were using u64 to pack the buffer and offset from where they come from. Drop this in favor of separated entries in the struct. Remove the usage of std::set in favor of std::list (it's not std::vector to avoid reference invalidations) for samplers and images.
2019-10-28video_core/textures: Remove unused index entry in FullTextureInfoReinUsesLisp1-1/+0
2019-10-27astc: Silence implicit conversion warningsReinUsesLisp1-7/+8
2019-07-26MaxwellDMA: Fixes, corrections and relaxations.Fernando Sahmkow2-7/+10
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.
2019-07-18textures: Fix texture buffer size calculationReinUsesLisp1-1/+1
2019-06-21texture_cache: Style and CorrectionsFernando Sahmkow1-3/+4
2019-06-21surface: Correct format S8Z24Fernando Sahmkow1-2/+2
2019-06-21decoders: correct block calculationFernando Sahmkow1-19/+15
2019-06-21maxwell_3d: Partially implement texture buffers as 1D texturesReinUsesLisp1-1/+17
2019-06-21texture_cache: General FixesFernando Sahmkow2-10/+11
Fixed ASTC mipmaps loading Fixed alignment on openGL upload/download Fixed Block Height Calculation Removed unalign_height
2019-06-21video_core: Use un-shifted block sizes to avoid integer divisionsReinUsesLisp3-28/+40
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).
2019-06-21gl_texture_cache: Add fast copy pathReinUsesLisp1-2/+1
2019-06-21gl_texture_cache: Initial implementationReinUsesLisp1-1/+2
2019-05-30maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap modeReinUsesLisp1-1/+1
2019-05-10video_core/textures/astc: Remove unused variablesLioncash1-6/+2
Silences a few compilation warnings.
2019-05-01Fix Layered ASTC TexturesFernando Sahmkow1-1/+3
By adding the missing layer offset in ASTC compression.
2019-04-16Apply Const correctness to SwizzleKepler and replace u32 for size_t on iterators.Fernando Sahmkow2-9/+12
2019-04-16Implement Block Linear copies in Kepler Memory.Fernando Sahmkow2-0/+24
2019-04-06video_core/textures/convert: Replace include with a forward declarationLioncash2-1/+5
Avoids dragging in a direct dependency in a header.
2019-04-06video_core/texures/texture: Remove unnecessary includesLioncash1-2/+0
Nothing in this header relies on common_funcs or the memory manager. This gets rid of reliance on indirect inclusions in the OpenGL caches.
2019-03-16video_core: Refactor to use MemoryManager interface for all memory access.bunnei2-24/+21
# 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
2019-03-13video_core/texture: Fix up sampler lod biasReinUsesLisp1-1/+1
2019-03-13vk_sampler_cache: Implement a sampler cacheReinUsesLisp1-1/+1
2019-03-12video_core/texture: Add a raw representation of TSCEntryReinUsesLisp1-24/+29
2019-03-09gl_rasterizer: Encapsulate sampler queries into methodsReinUsesLisp1-5/+29
2019-02-27gl_rasterizer_cache: Move format conversion to its own fileReinUsesLisp5-34/+160
2019-02-27decoders: Minor style changesReinUsesLisp2-14/+8
2019-02-05video_core/texture: Fix BitField size for depth_minus_oneReinUsesLisp1-1/+1
2019-02-03maxwell_3d: Allow texture handles with TIC id zeroReinUsesLisp1-1/+0
Also remove "enabled" field from Tegra::Texture::FullTextureInfo because it would become unused.
2018-12-19Fixed uninitialized memory due to missing returns in canaryDavid Marcec1-1/+1
Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used.
2018-11-26Implemented Tile Width SpacingFernandoS273-12/+19
2018-11-19Eliminated unnessessary memory allocation and copy (#1702)Frederic L2-4/+18
2018-11-17fix sampler configuration, thanks to Marcos for his investigationRodolfo Bogado1-1/+14
2018-11-17textures/decoders: Replace magic numbersFrederic Laing1-37/+33
2018-11-15textures/decoders: Minor cleanupFrederic Laing1-16/+16
2018-11-13Implement ASTC_2D_10X8 & ASTC_2D_10X8_SRGB (#1666)greggameplayer1-0/+4
* Implement ASTC_2D_10X8 & ASTC_2D_10X8_SRGB ( needed by Mario+Rabbids Kingdom Battle ) * Small placement correction
2018-11-11set sampler max lod, min lod, lod bias and max anisotropyRodolfo Bogado1-2/+11
2018-11-02Fix ASTC Decompressor to support depth parameterFernandoS272-16/+18
2018-11-01Fix ASTC formatsFernandoS272-7/+9
2018-10-29Fixed mipmap block autosizing algorithmFernandoS271-0/+6
2018-10-28Implement sRGB Support, including workarounds for nvidia driver issues and QT sRGB supportRodolfo Bogado1-0/+5
2018-10-24decoders: Remove unused variable within SwizzledData()Lioncash1-1/+0
2018-10-23Fixed Layered Textures Loading and CubemapsFernandoS271-3/+3
2018-10-19decoders: Introduce functions for un/swizzling subrects.bunnei2-0/+49
2018-10-14Shorten the implementation of 3D swizzle to only 3 functionsFernandoS271-70/+27
2018-10-13Fix a Crash on Zelda BotW and Splatoon 2, and simplified LoadGLBufferFernandoS271-1/+1
2018-10-13Propagate depth and depth_block on modules using decodersFernandoS273-28/+28
2018-10-13Remove old Swizzle algorithms and use 3d SwizzleFernandoS271-93/+69
2018-10-13Implement Precise 3D SwizzleFernandoS271-3/+71
2018-10-13Implement Fast 3D SwizzleFernandoS271-2/+74
2018-10-13Added ASTC 5x4; 8x5Hexagon121-0/+2
2018-10-12Implemented helper function to correctly calculate a texture's sizeFernandoS272-0/+22
2018-10-10Fixed block height settings for RenderTargets and Depth Buffers, and added block width and block depthFernandoS271-2/+15
2018-10-06Implemented Depth Compare and Shadow SamplersFernandoS271-1/+12
2018-09-30gl_rasterizer_cache: Implement render to cubemap.bunnei1-0/+2
2018-09-21Reverse stride align restriction on FastSwizzle due to lost performanceFernandoS271-3/+2
2018-09-21Join both Swizzle methods within one interface functionFernandoS271-11/+19
2018-09-21Standarized Legacy Swizzle to look alike FastSwizzle and use a Swizzling Table insteadFernandoS271-42/+38
2018-09-21Remove same output bpp restriction on FastSwizzleFernandoS271-4/+5
2018-09-21Improved Legacy Swizzler to be better documented and work betterFernandoS271-15/+21
2018-09-21Improved fast swizzle and removed restrictions to itFernandoS271-7/+12
2018-09-16Implement ASTC_2D_8X8 (Bayonetta 2)raven021-0/+2
2018-09-14Optimized Texture SwizzlingFernandoS271-2/+49
2018-09-08gl_rasterizer_cache: Track texture depth.bunnei1-2/+10
2018-08-31Implement BC6H_UF16 & BC6H_SF16 (#1092)greggameplayer1-0/+4
* Implement BC6H_UF16 & BC6H_SF16 Require by ARMS * correct coding style * correct coding style part 2
2018-08-10textures: Refactor out for Texture/Depth FormatFromPixelFormat.bunnei2-83/+6
2018-08-09Implement BC5/DXN2 (#996)Khangaroo1-0/+3
- Used by Kirby Star Allies.
2018-08-02Implement RGB32F PixelFormat (#886) (used by Go Vacation)greggameplayer1-0/+4
2018-07-26Implement R16_G16Unknown1-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
2018-07-25GPU: Implemented the Z32_S8_X24 depth buffer format.Subv1-0/+3
2018-07-24GPU: Implemented the R16 and R16F texture formats.Subv1-0/+3
2018-07-24gl_rasterizer: Implement texture border color.bunnei1-4/+4
2018-07-24GPU: Implement texture format R32F.Subv1-0/+3
2018-07-24gl_rasterizer_cache: Implement RenderTargetFormat RG32_FLOAT.bunnei1-0/+4
2018-07-21video_core: Use nested namespaces where applicableLioncash3-12/+6
Compresses a few namespace specifiers to be more compact.
2018-07-19decoders: Fix calc of swizzle image_width_in_gobs.bunnei1-1/+4
2018-07-18astc: Initialize vector size directly in DecompressLioncash1-2/+1
There's no need to perform a separate resize.
2018-07-18astc: Mark functions as internally linked where applicableLioncash1-17/+20
2018-07-18astc: const-correctness changes where applicableLioncash1-14/+13
A few member functions didn't actually modify class state, so these can be amended as necessary.
2018-07-18astc: Delete Bits' copy contstructor and assignment operatorLioncash1-8/+6
This also potentially avoids warnings, considering the copy assignment operator is supposed to have a return value.
2018-07-18astc: In-class initialize member variables where appropriateLioncash1-39/+22
2018-07-15gl_rasterizer_cache: Implement texture format G8R8.bunnei1-0/+3
2018-07-15gl_rasterizer_cache: Implement depth format Z16_UNORM.bunnei1-0/+3
2018-07-07GPU: Implemented the BC7U texture format.Subv1-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.
2018-07-04GPU: Implemented the 32 bit float depth buffer format.Subv1-0/+2
2018-07-03gl_rasterizer_cache: Implement PixelFormat S8Z24.bunnei1-0/+2
2018-07-02GPU: Implemented the Z24S8 depth format and load the depth framebuffer.Subv2-0/+37
2018-06-30GPU: Implemented the RGBA32_UINT rendertarget format.Subv1-0/+4
2018-06-18gl_rasterizer: Implement texture format ASTC_2D_4X4.bunnei3-0/+1664
2018-06-07GPU: Support changing the texture swizzles for Maxwell textures.Subv1-0/+16
2018-06-06GPU: Implemented the R11FG11FB10F texture and rendertarget formats.Subv1-0/+3
2018-06-02GPU: Implemented the DXN1 (BC4) texture format.Subv1-1/+5
2018-05-31gl_rasterizer_cache: Implement PixelFormat RGBA16F.bunnei1-0/+3
2018-05-30GPU: Implemented the R8 texture format (0x1D)Subv1-0/+4
2018-05-29add all the known TextureFormat (#474)greggameplayer1-2/+71
2018-05-27GPU: Implemented the A1B5G5R5 texture format (0x14)Subv2-0/+4
2018-04-25GPU: Make the Textures::CopySwizzledData function accessible from the outside of the file.Subv2-3/+6
2018-04-25gl_rasterizer_cache: Update to be based on GPU addresses, not CPU addresses.bunnei1-0/+1
2018-04-22GPU: Implement the A2BGR10 texture format.Subv2-0/+4
2018-04-19GPU: Add support for the DXT23 and DXT45 compressed texture formats.Subv1-1/+9
2018-04-19GPU: Implemented the B5G6R5 format.Subv2-0/+5
2018-04-18GPU: Allow using a configurable block height when unswizzling textures.Subv3-6/+13
2018-04-18GPU/TIC: Added the pitch and block height fields to the TIC structure.Subv1-1/+16
2018-04-18texture: Add missing formats.bunnei1-1/+3
2018-04-07GPU: Assert when finding a texture with a format type other than UNORM.Subv1-4/+14
2018-04-07Textures: Added a helper function to know if a texture is blocklinear or pitch.Subv1-0/+5
2018-03-26GPU: Added the TSC structure. It contains information about the sampler.Subv1-0/+50
2018-03-26GPU: Added more fields to the TIC structure.Subv1-4/+30
2018-03-24Frontend: Updated the surface view debug widget to work with Maxwell surfaces.Subv1-0/+11
2018-03-24GPU: Added a method to unswizzle a texture without decoding it.Subv3-4/+94
Allow unswizzling of DXT1 textures.
2018-03-24GPU: Preliminary work for texture decoding.Subv3-0/+91