summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/image_info.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-07-19 04:32:03 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-16 22:11:27 +0100
commitba18047e8d06584de0ce18cdbb303a6d9a8742aa (patch)
tree1c7c3cd54bc82de9d7a746ba1172f1fd013ab9b7 /src/video_core/texture_cache/image_info.cpp
parentShaderDecompiler: Add initial support for rescaling. (diff)
downloadyuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar
yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar.gz
yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar.bz2
yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar.lz
yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar.xz
yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar.zst
yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.zip
Diffstat (limited to 'src/video_core/texture_cache/image_info.cpp')
-rw-r--r--src/video_core/texture_cache/image_info.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/image_info.cpp b/src/video_core/texture_cache/image_info.cpp
index 64fd7010a..022ca9033 100644
--- a/src/video_core/texture_cache/image_info.cpp
+++ b/src/video_core/texture_cache/image_info.cpp
@@ -41,6 +41,7 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept {
ASSERT(config.BaseLayer() == 0);
type = ImageType::e1D;
size.width = config.Width();
+ resources.layers = 1;
break;
case TextureType::Texture1DArray:
UNIMPLEMENTED_IF(config.BaseLayer() != 0);
@@ -82,10 +83,12 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept {
size.width = config.Width();
size.height = config.Height();
size.depth = config.Depth();
+ resources.layers = 1;
break;
case TextureType::Texture1DBuffer:
type = ImageType::Buffer;
size.width = config.Width();
+ resources.layers = 1;
break;
default:
UNREACHABLE_MSG("Invalid texture_type={}", static_cast<int>(config.texture_type.Value()));