mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
libs/vkd3d: Don't calculate footprints for unaligned compressed textures.
This commit is contained in:
parent
a0675d1ba7
commit
6de74f6cc3
@ -1156,6 +1156,13 @@ static void STDMETHODCALLTYPE d3d12_device_GetCopyableFootprints(ID3D12Device *i
|
||||
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)
|
||||
FIXME("Ignoring base offset %#"PRIx64".\n", base_offset);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user