diff options
author | bunnei <bunneidev@gmail.com> | 2021-07-07 02:26:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 02:26:21 +0200 |
commit | eb3cb3af353dd1d62b11a6032e35656153ecb505 (patch) | |
tree | 239f6d2857bd4af68ed77b91639c1d7fce5934cb /src/video_core/texture_cache/image_base.cpp | |
parent | Merge pull request #6566 from Morph1984/sign-compare-as-error (diff) | |
parent | Texture Cache: Fix collision with multiple overlaps of the same sparse texture. (diff) | |
download | yuzu-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.cpp | 3 |
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 |