texture_cache: Do not modify mip height for copy in volume texture. (#3326)

This commit is contained in:
squidbus 2025-07-25 16:21:20 -07:00 committed by GitHub
parent 90705cbe51
commit d62d65af62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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_width = mip_pitch ? std::min(mip_pitch, width) : width;
const u32 extent_height = mip_height ? std::min(mip_height, height) : height; const u32 extent_height = mip_height ? std::min(mip_height, height) : height;
const u32 height_aligned = const bool is_volume = image.info.tiling_mode == AmdGpu::TilingMode::Texture_Volume;
mip_height && image.info.IsTiled() ? std::max(mip_height, 8U) : mip_height; const u32 height_aligned = mip_height && image.info.IsTiled() && !is_volume
? std::max(mip_height, 8U)
: mip_height;
image_copy.push_back({ image_copy.push_back({
.bufferOffset = mip_offset, .bufferOffset = mip_offset,