From d62d65af62fe89bb0b5f1b01db03db901e72b73b Mon Sep 17 00:00:00 2001 From: squidbus <175574877+squidbus@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:21:20 -0700 Subject: [PATCH] texture_cache: Do not modify mip height for copy in volume texture. (#3326) --- src/video_core/texture_cache/texture_cache.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/video_core/texture_cache/texture_cache.cpp b/src/video_core/texture_cache/texture_cache.cpp index fa24728ad..024d2e785 100644 --- a/src/video_core/texture_cache/texture_cache.cpp +++ b/src/video_core/texture_cache/texture_cache.cpp @@ -619,8 +619,10 @@ void TextureCache::RefreshImage(Image& image, Vulkan::Scheduler* custom_schedule const u32 extent_width = mip_pitch ? std::min(mip_pitch, width) : width; const u32 extent_height = mip_height ? std::min(mip_height, height) : height; - const u32 height_aligned = - mip_height && image.info.IsTiled() ? std::max(mip_height, 8U) : mip_height; + const bool is_volume = image.info.tiling_mode == AmdGpu::TilingMode::Texture_Volume; + const u32 height_aligned = mip_height && image.info.IsTiled() && !is_volume + ? std::max(mip_height, 8U) + : mip_height; image_copy.push_back({ .bufferOffset = mip_offset,