[PATCH vkd3d] vkd3d: Remove redundant GetCopyableFootprints() resource size alignment checks.

Conor McCarthy cmccarthy at codeweavers.com
Fri Dec 6 00:11:36 CST 2019


The alignments are now checked in d3d12_resource_validate_desc().

Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
---
 libs/vkd3d/device.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c
index 89d8aea..f652765 100644
--- a/libs/vkd3d/device.c
+++ b/libs/vkd3d/device.c
@@ -3497,13 +3497,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)
-- 
2.24.0




More information about the wine-devel mailing list