From aba0f3c62865e2df8140d6aea0119495539a7416 Mon Sep 17 00:00:00 2001 From: gibbed Date: Mon, 4 Jun 2018 22:53:30 -0500 Subject: [PATCH] [GPU] Ensure pitch/height are a multiple of block size for host textures. --- src/xenia/gpu/texture_extent.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xenia/gpu/texture_extent.cc b/src/xenia/gpu/texture_extent.cc index 82e6c98c9..c2d63e838 100644 --- a/src/xenia/gpu/texture_extent.cc +++ b/src/xenia/gpu/texture_extent.cc @@ -56,6 +56,9 @@ static TextureExtent CalculateExtent(const FormatInfo* format_info, // Is depth special? extent.depth = extent.depth; + } else { + extent.pitch = extent.block_pitch_h * format_info->block_width; + extent.height = extent.block_pitch_v * format_info->block_height; } return extent;