mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Remove redundant GetCopyableFootprints() resource size alignment checks.
The alignments are now checked in d3d12_resource_validate_desc(). Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d0586297c5
commit
a59f1982ad
@ -3218,13 +3218,6 @@ 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;
|
||||
}
|
||||
|
||||
offset = 0;
|
||||
total = 0;
|
||||
for (i = 0; i < sub_resource_count; ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user