[GPU] Track unaligned (visible) block width in texture info.
[Vulkan] Don't use power of two for mip width/height calculation for host textures. [Vulkan] Add more Vulkan error logging. [Vulkan/GPU] Rudimentary texture dumping.
This commit is contained in:
@@ -27,10 +27,11 @@ static TextureExtent CalculateExtent(const FormatInfo* format_info,
|
||||
|
||||
extent.pitch = pitch;
|
||||
extent.height = height;
|
||||
extent.block_pitch_h = xe::round_up(extent.pitch, format_info->block_width) /
|
||||
format_info->block_width;
|
||||
extent.block_width = xe::round_up(extent.pitch, format_info->block_width) /
|
||||
format_info->block_width;
|
||||
extent.block_height = xe::round_up(extent.height, format_info->block_height) /
|
||||
format_info->block_height;
|
||||
extent.block_pitch_h = extent.block_width;
|
||||
extent.block_pitch_v = extent.block_height;
|
||||
extent.depth = depth;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user