[D3D12] Fix mipmapped cubemaps and stacked textures

This commit is contained in:
Triang3l
2018-10-29 22:40:29 +03:00
parent e4a7d1dc5e
commit 251f078baf
5 changed files with 49 additions and 41 deletions

View File

@@ -1051,7 +1051,7 @@ bool RenderTargetCache::ResolveCopy(SharedMemory* shared_memory,
// resolve to 8bpp or 16bpp textures at very odd locations.
return false;
}
uint32_t dest_size = texture_util::GetGuestMipStorageSize(
uint32_t dest_size = texture_util::GetGuestMipSliceStorageSize(
xe::align(dest_pitch, 32u), xe::align(dest_height, 32u), 1, true,
dest_format, nullptr);
if (dest_info & (1 << 3)) {