Module: vkd3d Branch: master Commit: a59f1982adeca99b64d28fd89fa7118a246558c0 URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=a59f1982adeca99b64d28fd8...
Author: Conor McCarthy cmccarthy@codeweavers.com Date: Fri Dec 6 16:11:36 2019 +1000
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
---
libs/vkd3d/device.c | 7 ------- 1 file changed, 7 deletions(-)
diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c index 96ab6b7..757d4ac 100644 --- a/libs/vkd3d/device.c +++ b/libs/vkd3d/device.c @@ -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)