[GPU] Ensure pitch/height are a multiple of block size for host textures.
This commit is contained in:
parent
2c7043bd98
commit
aba0f3c628
|
@ -56,6 +56,9 @@ static TextureExtent CalculateExtent(const FormatInfo* format_info,
|
||||||
|
|
||||||
// Is depth special?
|
// Is depth special?
|
||||||
extent.depth = extent.depth;
|
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;
|
return extent;
|
||||||
|
|
Loading…
Reference in New Issue