summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/texture.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-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.
2021-08-19video_core: eliminate constant ternaryValeri1-1/+1
`via_header_index` is already checked above, so it would never be true in this branch
2021-07-23shader: Initial OpenGL implementationReinUsesLisp1-0/+9
2020-12-30video_core: Rewrite the texture cacheReinUsesLisp1-108/+131
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.
2020-12-05video_core: Resolve more variable shadowing scenarios pt.3Lioncash1-1/+1
Cleans out the rest of the occurrences of variable shadowing and makes any further occurrences of shadowing compiler errors.
2020-07-13video_core: Rearrange pixel format namesReinUsesLisp1-26/+23
Normalizes pixel format names to match Vulkan names. Previous to this commit pixel formats had no convention, leading to confusion and potential bugs.
2020-04-12video_core: Add MSAA registers in 3D engine and TICReinUsesLisp1-0/+15
This adds the registers used for multisampling. It doesn't implement anything for now.
2020-04-08video_core/textures: Move GetMaxAnisotropy to cpp fileReinUsesLisp1-19/+1
2020-04-08video_core/texture: Use a LUT to convert sRGB texture bordersReinUsesLisp1-9/+2
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-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-11-08video_core: Silence implicit conversion warningsReinUsesLisp1-3/+4
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-07-18textures: Fix texture buffer size calculationReinUsesLisp1-1/+1
2019-06-21surface: Correct format S8Z24Fernando Sahmkow1-2/+2
2019-06-21maxwell_3d: Partially implement texture buffers as 1D texturesReinUsesLisp1-1/+17
2019-06-21video_core: Use un-shifted block sizes to avoid integer divisionsReinUsesLisp1-6/+3
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-05-30maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap modeReinUsesLisp1-1/+1
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-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-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-11-26Implemented Tile Width SpacingFernandoS271-0/+2
2018-11-17fix sampler configuration, thanks to Marcos for his investigationRodolfo Bogado1-1/+14
2018-11-11set sampler max lod, min lod, lod bias and max anisotropyRodolfo Bogado1-2/+11
2018-10-28Implement sRGB Support, including workarounds for nvidia driver issues and QT sRGB supportRodolfo Bogado1-0/+5
2018-10-13Propagate depth and depth_block on modules using decodersFernandoS271-0/+1
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-08gl_rasterizer_cache: Track texture depth.bunnei1-2/+10
2018-07-24gl_rasterizer: Implement texture border color.bunnei1-4/+4
2018-07-21video_core: Use nested namespaces where applicableLioncash1-4/+2
Compresses a few namespace specifiers to be more compact.
2018-06-07GPU: Support changing the texture swizzles for Maxwell textures.Subv1-0/+16
2018-05-29add all the known TextureFormat (#474)greggameplayer1-2/+71
2018-05-27GPU: Implemented the A1B5G5R5 texture format (0x14)Subv1-0/+1
2018-04-22GPU: Implement the A2BGR10 texture format.Subv1-0/+1
2018-04-19GPU: Implemented the B5G6R5 format.Subv1-0/+1
2018-04-18GPU: Allow using a configurable block height when unswizzling textures.Subv1-0/+7
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-24GPU: Added a method to unswizzle a texture without decoding it.Subv1-0/+4
Allow unswizzling of DXT1 textures.
2018-03-24GPU: Preliminary work for texture decoding.Subv1-0/+57