aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache/util.cpp
AgeCommit message (Collapse)Author
2024-01-18Core: Eliminate core/memory dependancies.Fernando Sahmkow
2024-01-18SMMU: Initial adaptation to video_core.Fernando Sahmkow
2023-12-26video_core: Fix buffer_row_length computation for linear compressed texturesGPUCode
2023-10-17Merge pull request #11788 from Squall-Leonhart/IFREMOVEDFernando S
[crash fix]brings back the removed if statement in util.cpp and adds the num_level test to it like previous discontinued PR
2023-10-15brings back the removed If statement and adds the num_level testSquall Leonhart
This resolves the out of bounds read/writes in the linear swizzler, it brings back the scaled TOTK Recall bug however, pending further work in the block size calculation. Recall is not glitched in the Dynamic FPS resolution mod to the degree that it is in the native yuzu scaler, this can be a workaround for the time being. The recall effect is constructed from multiple 320x180 texture slices, it breaking may have a similar origin to https://github.com/Ryujinx/Ryujinx/pull/5640 but it may also be connected to the other deficiencies identified in the Yuzu size calculations, such as no apparent implementation of slice testing for end of slce depth as opposed to full aligned size as implemented in https://github.com/Ryujinx/Ryujinx/pull/5220
2023-10-11Merge pull request #11743 from Squall-Leonhart/IFREMOVEDFernando S
Fix mistaken usage of info.block instead of level_info.block
2023-10-11Fix mistaken usage of info.block instead of level_info.blockSquall-Leonhart
Fixed an error on my part, in the last change I had mistakenly passed unadjusted block info into FullUploadSwizzles and UnswizzleImage Revert (my mistaken changing of) the construction of SwizzleParameters in UnswizzleImage and FullUploadSwizzles to use level_info.block instead of info.block. This ensures that the block information used in the swizzling process is correctly adjusted for each mip level.
2023-10-10Merge pull request #11534 from Squall-Leonhart/IFREMOVEDliamwhite
Partial revert of #10433 (Texture Cache Util: Fix block depth adjustment on slices)
2023-10-02ci: fix new codespell errorsLiam
2023-09-20Reuse part of my previous idea to to use num_levels to check within ↵Squall-Leonhart
AdjustMipBlockSize The partial revert was not enough for Tsukihime, this might do the trick
2023-09-18Partial revert of #10433Squall Leonhart
The If block in this change was causing some 2D textures to be treated as if their mip 0 was a 3D Slice, this could be ascertained as the same texture viewed from different distances would render fine, but then close up would look like a decoding failure. It also resulted in some 3D ASTC textures not being scaled appropriate leading to broken graphical effects such as the jagged TOTK recall animation being a circle, as the If block was only accepting the image based on its original info without any adjustments applied.
2023-07-02Use spans over guest memory where possible instead of copying data.Kelebek1
2023-07-01renderer_vulkan: Add support for VK_KHR_image_format_listGPUCode
2023-06-27video_core: Add BCn decoding supportGPUCode
2023-06-22Remove memory allocations in some hot pathsKelebek1
2023-05-24Texture Cache Util: Fix block depth adjustment on slices.Fernando Sahmkow
2023-05-23textures: add BC1 and BC3 compressors and recompression settingLiam
2023-05-09Texture Cache: Fix ASTC texturesFernando Sahmkow
2023-03-05Engines: Implement Accelerate DMA Texture.Fernando Sahmkow
2023-02-11texture_cache: OpenGL: Implement MSAA uploads and copiesameerj
2022-12-25texture_cache: Use Common::ScratchBuffer for swizzle buffersameerj
2022-12-25texture_cache: Use pre-allocated buffer for texture downloadsameerj
2022-12-25texture_cache: Use pre-allocated buffer for texture uploadsameerj
2022-11-04video_core: Fix SNORM texture buffer emulating error (#9001)Feng Chen
2022-10-06DMA & InlineToMemory Engines Rework.bunnei
2022-10-06VideoCore: Extra Fixes.Fernando Sahmkow
2022-04-28chore: add missing SPDX tagsAndrea Pappacoda
Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
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.
2022-04-04Revert "texture_cache/util: Remove unneeded ReadBlockUnsafe"bunnei
2022-04-04texture_cache/util: Remove unneeded ReadBlockUnsafeameerj
This call was reading GPU memory into the dst buffer, which is then overwritten by the SwizzleTexture call.
2021-12-31texture_cache/util: Fix s32 overflow when resolving overlapsameerj
2021-11-27Texture Cache: Redesigning the blitting system (again).Fernando Sahmkow
2021-11-22Texture Cache: Fix issue with blitting 3D textures.Fernando Sahmkow
2021-11-21TextureCache: Eliminate format deduction as full depth conversion has been ↵Fernando Sahmkow
supported.
2021-11-19TextureCache: Further fixes on resolve algorithm.Fernando Sahmkow
2021-11-19TextureCache: Fix regression caused by ART and improve blit detection ↵Fernando Sahmkow
algorithm to be smarter.
2021-11-16Texture Cache: Fix blitting.Fernando Sahmkow
2021-11-16TextureCache: fix rescaling in aliases and overlap joins.FernandoS27
2021-07-18texture_cache/util: Fix size calculations of multisampled imagesReinUsesLisp
On the texture cache we handle multisampled images by keeping their real size in samples (e.g. 1920x1080 with 4 samples is 3840x2160). This works nicely with size matches and other comparisons, but the calculation for guest sizes was not having this in mind, and the size was being multiplied (again) by the number of samples per dimension. For example a 3840x2160 texture cache image had its width and height multiplied by 2, resulting in a much larger texture. Fix this issue. - Fixes performance regression on cooking related titles when an unrelated bug was fixed.
2021-07-06Merge pull request #6497 from FernandoS27/scotty-doesnt-knowbunnei
GPU Memory Manager - Correct handling of non continuous backing memory.
2021-07-04Texture Cache: Improve accuracy of sparse texture detection.Fernando Sahmkow
2021-07-04Texture Cache: Initial Implementation of Sparse Textures.Fernando Sahmkow
2021-06-28video_core: Silence signed/unsigned mismatch warningsMorph
2021-06-23Merge pull request #6465 from FernandoS27/sex-on-the-beachMai M
GPU: Implement a garbage collector for GPU Caches (project Reaper+)
2021-06-16Merge pull request #6469 from ReinUsesLisp/blit-view-compatAmeer J
texture_cache/util: Avoid relaxed image views on different bytes per block
2021-06-16Reaper: Tune it up to be an smart GC.Fernando Sahmkow
2021-06-15textures: Reintroduce CPU ASTC decoderameerj
Users may want to fall back to the CPU ASTC texture decoder due to hangs and crashes that may be caused by keeping the GPU under compute heavy loads for extended periods of time. This is especially the case in games such as Astral Chain which make extensive use of ASTC textures.
2021-06-14texture_cache/util: Avoid relaxed image views on different bytes per pixelReinUsesLisp
Avoids API usage errors on UE4 titles leading to crashes.
2021-06-10Fix GCC undefined behavior sanitizer.Markus Wick
* Wrong alignment in u64 LOG_DEBUG -> memcpy. * Huge shift exponent in stride calculation for linear buffer, unused result -> skipped. * Large shift in buffer cache if word = 0, skip checking for set bits. Non of those were critical, so this should not change any behavior. At least with the assumption, that the last one used masking behavior, which always yield continuous_bits = 0.
2021-04-19texture_cache/util: Fix src being used instead of dst within DeduceBlitImagesLioncash
This line can only ever be reached if src is null, so dereferencing it here is a logic bug that slipped through. Instead, we dereference dst instead which is guaranteed to be valid.