[GPU] Ensure pitch/height are a multiple of block size for host textures.

This commit is contained in:
gibbed 2018-06-04 22:53:30 -05:00
parent 2c7043bd98
commit aba0f3c628
1 changed files with 3 additions and 0 deletions

View File

@ -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;