aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/textures
AgeCommit message (Collapse)Author
2020-04-28Clang Format and Documentation.Fernando Sahmkow
2020-04-28MaxwellDMA: Optimize micro copies.Fernando Sahmkow
2020-04-16General: Resolve warnings related to missing declarationsLioncash
2020-04-13Merge pull request #3631 from ReinUsesLisp/more-astcMat M
texture/astc: More small ASTC optimizations
2020-04-12video_core: Add MSAA registers in 3D engine and TICReinUsesLisp
This adds the registers used for multisampling. It doesn't implement anything for now.
2020-04-09astc: Hard code bit depth changes to 8 and use fast replicateReinUsesLisp
2020-04-09astc: Use boost's static_vector to avoid heap allocationsReinUsesLisp
2020-04-09astc: Implement a fast precompiled alternative for ReplicateReinUsesLisp
2020-04-09astc: Move Replicate to a constexpr LUT when possibleReinUsesLisp
2020-04-09astc: Make InputBitStream constexprReinUsesLisp
2020-04-09astc: OutputBitStream style changes and make it constexprReinUsesLisp
2020-04-07video_core/textures: Move GetMaxAnisotropy to cpp fileReinUsesLisp
2020-04-07video_core/texture: Use a LUT to convert sRGB texture bordersReinUsesLisp
This is a reversed look up table extracted from https://gist.github.com/rygorous/2203834#file-gistfile1-cpp-L41-L62 that is used in https://github.com/devkitPro/deko3d/blob/04d4e9e587fa3dc5447b43d273bc45f440226e41/source/maxwell/tsc_generate.cpp#L38 Games usually bind 0xFD expecting a float texture border of 1.0f. The conversion previous to this commit was multiplying the uint8 sRGB texture border color by 255. This is close to 1.0f but when that difference matters, some graphical glitches appear. This look up table is manually changed in the edges, clamping towards 0.0f and 1.0f. While we are at it, move this logic to its own translation unit.
2020-03-18astc: Fix clang build issuesReinUsesLisp
2020-03-14astc: Fix typos from search and replaceReinUsesLisp
2020-03-14astc: Minor changes to InputBitStreamReinUsesLisp
2020-03-14astc: Pass val in Replicate by copyReinUsesLisp
2020-03-14astc: Call std::vector:reserve on decodedClolorValues to avoid reallocatingReinUsesLisp
2020-03-13astc: Call std::vector::reserve on texelWeightValues to avoid reallocatingReinUsesLisp
2020-03-13astc: Create a LUT at compile time for encoding valuesReinUsesLisp
2020-03-13astc: Make IntegerEncodedValue a trivial structureReinUsesLisp
2020-03-13astc: Make IntegerEncodedValue constructor constexprReinUsesLisp
2020-03-13astc: Make IntegerEncodedValue trivially copyableReinUsesLisp
2020-03-13astc: Rename C types to common_typesReinUsesLisp
2020-03-13astc: Move Popcnt to an anonymous namespace and make it constexprReinUsesLisp
2020-03-13astc: Use common types instead of stdint.h integer typesReinUsesLisp
2020-03-13astc: Use 'enum class' instead of 'enum' for EIntegerEncodingReinUsesLisp
2020-03-08textures: Fix anisotropy hackReinUsesLisp
Previous code could generate an anisotropy value way higher than x16.
2020-02-27Create an "Advanced" tab in the graphics configuration tab and add ↵Morph
anisotropic filtering levels.
2019-12-22Texture Cache: Add HLE methods for building 3D textures within the GPU in ↵Fernando Sahmkow
certain scenarios. 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 warningsReinUsesLisp
2019-10-29shader/node: Unpack bindless texture encodingReinUsesLisp
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 FullTextureInfoReinUsesLisp
2019-10-27astc: Silence implicit conversion warningsReinUsesLisp
2019-09-01Merge pull request #2765 from FernandoS27/dma-fixbunnei
MaxwellDMA: Fixes, corrections and relaxations.
2019-07-25MaxwellDMA: Fixes, corrections and relaxations.Fernando Sahmkow
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 calculationReinUsesLisp
2019-06-20texture_cache: Style and CorrectionsFernando Sahmkow
2019-06-20surface: Correct format S8Z24Fernando Sahmkow
2019-06-20decoders: correct block calculationFernando Sahmkow
2019-06-20maxwell_3d: Partially implement texture buffers as 1D texturesReinUsesLisp
2019-06-20texture_cache: General FixesFernando Sahmkow
Fixed ASTC mipmaps loading Fixed alignment on openGL upload/download Fixed Block Height Calculation Removed unalign_height
2019-06-20video_core: Use un-shifted block sizes to avoid integer divisionsReinUsesLisp
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-20gl_texture_cache: Add fast copy pathReinUsesLisp
2019-06-20gl_texture_cache: Initial implementationReinUsesLisp
2019-05-30maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap modeReinUsesLisp
2019-05-09video_core/textures/astc: Remove unused variablesLioncash
Silences a few compilation warnings.
2019-04-30Fix Layered ASTC TexturesFernando Sahmkow
By adding the missing layer offset in ASTC compression.
2019-04-16Apply Const correctness to SwizzleKepler and replace u32 for size_t on ↵Fernando Sahmkow
iterators.
2019-04-15Implement Block Linear copies in Kepler Memory.Fernando Sahmkow