aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/textures/texture.h
AgeCommit message (Collapse)Author
2023-03-10video_core: Update texture formatFeng Chen
2022-04-23general: Convert source file copyright comments over to SPDXMorph
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 ternaryValeri
`via_header_index` is already checked above, so it would never be true in this branch
2021-07-22shader: Initial OpenGL implementationReinUsesLisp
2020-12-30video_core: Rewrite the texture cacheReinUsesLisp
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.3Lioncash
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 namesReinUsesLisp
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 TICReinUsesLisp
This adds the registers used for multisampling. It doesn't implement anything for now.
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-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-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-07-18textures: Fix texture buffer size calculationReinUsesLisp
2019-06-20surface: Correct format S8Z24Fernando Sahmkow
2019-06-20maxwell_3d: Partially implement texture buffers as 1D texturesReinUsesLisp
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-05-30maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap modeReinUsesLisp
2019-04-06video_core/texures/texture: Remove unnecessary includesLioncash
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-14Merge pull request #2229 from ReinUsesLisp/vk-sampler-cachebunnei
vk_sampler_cache: Implement a sampler cache
2019-03-13video_core/texture: Fix up sampler lod biasReinUsesLisp
2019-03-12vk_sampler_cache: Implement a sampler cacheReinUsesLisp
2019-03-12video_core/texture: Add a raw representation of TSCEntryReinUsesLisp
2019-03-09gl_rasterizer: Encapsulate sampler queries into methodsReinUsesLisp
2019-02-06Merge pull request #2042 from ReinUsesLisp/nouveau-texbunnei
maxwell_3d: Allow texture handles with TIC id zero
2019-02-05video_core/texture: Fix BitField size for depth_minus_oneReinUsesLisp
2019-02-03maxwell_3d: Allow texture handles with TIC id zeroReinUsesLisp
Also remove "enabled" field from Tegra::Texture::FullTextureInfo because it would become unused.
2018-11-26Implemented Tile Width SpacingFernandoS27
2018-11-17fix sampler configuration, thanks to Marcos for his investigationRodolfo Bogado
2018-11-11set sampler max lod, min lod, lod bias and max anisotropyRodolfo Bogado
2018-10-28Implement sRGB Support, including workarounds for nvidia driver issues and ↵Rodolfo Bogado
QT sRGB support
2018-10-13Propagate depth and depth_block on modules using decodersFernandoS27
2018-10-09Fixed block height settings for RenderTargets and Depth Buffers, and added ↵FernandoS27
block width and block depth
2018-10-06Implemented Depth Compare and Shadow SamplersFernandoS27
2018-09-30gl_rasterizer_cache: Implement render to cubemap.bunnei
2018-09-08gl_rasterizer_cache: Track texture depth.bunnei
2018-07-23gl_rasterizer: Implement texture border color.bunnei
2018-07-20video_core: Use nested namespaces where applicableLioncash
Compresses a few namespace specifiers to be more compact.
2018-06-06GPU: Support changing the texture swizzles for Maxwell textures.Subv
2018-05-28add all the known TextureFormat (#474)greggameplayer
2018-05-27GPU: Implemented the A1B5G5R5 texture format (0x14)Subv
2018-04-21GPU: Implement the A2BGR10 texture format.Subv
2018-04-18GPU: Implemented the B5G6R5 format.Subv
2018-04-18GPU: Allow using a configurable block height when unswizzling textures.Subv
2018-04-18GPU/TIC: Added the pitch and block height fields to the TIC structure.Subv
2018-04-17texture: Add missing formats.bunnei
2018-04-06GPU: Assert when finding a texture with a format type other than UNORM.Subv
2018-04-06Textures: Added a helper function to know if a texture is blocklinear or pitch.Subv