aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/textures/astc.cpp
AgeCommit message (Collapse)Author
2021-01-15astc: Increase integer encoded vector sizeReinUsesLisp
Invalid ASTC textures seem to write more bytes here, increase the size to something that can't make us push out of bounds.
2021-01-15astc: Return zero on out of bound bitsReinUsesLisp
Avoid out of bound reads on invalid ASTC textures. Games can bind invalid textures that make us read or write out of bounds.
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-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-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
2019-11-08video_core: Silence implicit conversion warningsReinUsesLisp
2019-10-27astc: Silence implicit conversion warningsReinUsesLisp
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-02-26gl_rasterizer_cache: Move format conversion to its own fileReinUsesLisp
2018-11-01Fix ASTC Decompressor to support depth parameterFernandoS27
2018-07-17astc: Initialize vector size directly in DecompressLioncash
There's no need to perform a separate resize.
2018-07-17astc: Mark functions as internally linked where applicableLioncash
2018-07-17astc: const-correctness changes where applicableLioncash
A few member functions didn't actually modify class state, so these can be amended as necessary.
2018-07-17astc: Delete Bits' copy contstructor and assignment operatorLioncash
This also potentially avoids warnings, considering the copy assignment operator is supposed to have a return value.
2018-07-17astc: In-class initialize member variables where appropriateLioncash
2018-06-18gl_rasterizer: Implement texture format ASTC_2D_4X4.bunnei