summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/image_base.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-07-07 02:26:21 +0200
committerGitHub <noreply@github.com>2021-07-07 02:26:21 +0200
commiteb3cb3af353dd1d62b11a6032e35656153ecb505 (patch)
tree239f6d2857bd4af68ed77b91639c1d7fce5934cb /src/video_core/texture_cache/image_base.cpp
parentMerge pull request #6566 from Morph1984/sign-compare-as-error (diff)
parentTexture Cache: Fix collision with multiple overlaps of the same sparse texture. (diff)
downloadyuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar
yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar.gz
yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar.bz2
yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar.lz
yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar.xz
yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar.zst
yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.zip
Diffstat (limited to 'src/video_core/texture_cache/image_base.cpp')
-rw-r--r--src/video_core/texture_cache/image_base.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/image_base.cpp b/src/video_core/texture_cache/image_base.cpp
index f22358c90..6052d148a 100644
--- a/src/video_core/texture_cache/image_base.cpp
+++ b/src/video_core/texture_cache/image_base.cpp
@@ -69,6 +69,9 @@ ImageBase::ImageBase(const ImageInfo& info_, GPUVAddr gpu_addr_, VAddr cpu_addr_
}
}
+ImageMapView::ImageMapView(GPUVAddr gpu_addr_, VAddr cpu_addr_, size_t size_, ImageId image_id_)
+ : gpu_addr{gpu_addr_}, cpu_addr{cpu_addr_}, size{size_}, image_id{image_id_} {}
+
std::optional<SubresourceBase> ImageBase::TryFindBase(GPUVAddr other_addr) const noexcept {
if (other_addr < gpu_addr) {
// Subresource address can't be lower than the base