diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-06-12 15:52:27 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-04 22:32:03 +0200 |
commit | 38165fb7e3e486b5099cfa76f5a09ec9f3201acd (patch) | |
tree | a80e66a254960c9c8c602f256cd37361c780d188 /src/video_core/texture_cache/util.h | |
parent | Merge pull request #6553 from FernandoS27/bite-a-bat-change-the-world (diff) | |
download | yuzu-38165fb7e3e486b5099cfa76f5a09ec9f3201acd.tar yuzu-38165fb7e3e486b5099cfa76f5a09ec9f3201acd.tar.gz yuzu-38165fb7e3e486b5099cfa76f5a09ec9f3201acd.tar.bz2 yuzu-38165fb7e3e486b5099cfa76f5a09ec9f3201acd.tar.lz yuzu-38165fb7e3e486b5099cfa76f5a09ec9f3201acd.tar.xz yuzu-38165fb7e3e486b5099cfa76f5a09ec9f3201acd.tar.zst yuzu-38165fb7e3e486b5099cfa76f5a09ec9f3201acd.zip |
Diffstat (limited to 'src/video_core/texture_cache/util.h')
-rw-r--r-- | src/video_core/texture_cache/util.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/util.h b/src/video_core/texture_cache/util.h index cdc5cbc75..b73361484 100644 --- a/src/video_core/texture_cache/util.h +++ b/src/video_core/texture_cache/util.h @@ -40,6 +40,8 @@ struct OverlapResult { [[nodiscard]] LevelArray CalculateMipLevelOffsets(const ImageInfo& info) noexcept; +[[nodiscard]] LevelArray CalculateMipLevelSizes(const ImageInfo& info) noexcept; + [[nodiscard]] std::vector<u32> CalculateSliceOffsets(const ImageInfo& info); [[nodiscard]] std::vector<SubresourceBase> CalculateSliceSubresources(const ImageInfo& info); @@ -55,7 +57,9 @@ struct OverlapResult { const ImageInfo& src, SubresourceBase base); -[[nodiscard]] bool IsValidAddress(const Tegra::MemoryManager& gpu_memory, const TICEntry& config); +[[nodiscard]] bool IsValidAddress(const Tegra::MemoryManager& gpu_memory, GPUVAddr gpu_addr); + +[[nodiscard]] bool IsValidEntry(const Tegra::MemoryManager& gpu_memory, const TICEntry& config); [[nodiscard]] std::vector<BufferImageCopy> UnswizzleImage(Tegra::MemoryManager& gpu_memory, GPUVAddr gpu_addr, const ImageInfo& info, |