vk: Fix incorrect mixed transfer modes for mipmapped VTC
This commit is contained in:
@@ -971,6 +971,12 @@ namespace vk
|
|||||||
offset_in_upload_buffer = dma_mapping.first;
|
offset_in_upload_buffer = dma_mapping.first;
|
||||||
copy_info.bufferOffset = offset_in_upload_buffer;
|
copy_info.bufferOffset = offset_in_upload_buffer;
|
||||||
}
|
}
|
||||||
|
else if (!layout.layer && !layout.level)
|
||||||
|
{
|
||||||
|
// Do not allow mixed transfer modes.
|
||||||
|
// This can happen in special cases, e.g mipN having different processing than mip0 as is the case with the last VTC mip
|
||||||
|
caps.supports_zero_copy = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (opt.require_swap || opt.require_deswizzle || requires_depth_processing)
|
if (opt.require_swap || opt.require_deswizzle || requires_depth_processing)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user