mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d: Don't calculate footprints for unaligned compressed textures.
This commit is contained in:
@@ -1156,6 +1156,13 @@ static void STDMETHODCALLTYPE d3d12_device_GetCopyableFootprints(ID3D12Device *i
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (align(desc->Width, format->block_width) != desc->Width
|
||||||
|
|| align(desc->Height, format->block_height) != desc->Height)
|
||||||
|
{
|
||||||
|
WARN("Resource size (%"PRIu64"x%u) not aligned to format block size.\n", desc->Width, desc->Height);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (base_offset)
|
if (base_offset)
|
||||||
FIXME("Ignoring base offset %#"PRIx64".\n", base_offset);
|
FIXME("Ignoring base offset %#"PRIx64".\n", base_offset);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user