[PATCH 3/4] winevulkan: Remove unnecessary checks in wine_vkCmdExecuteCommands

Joshua Ashton joshua at froggi.es
Thu Mar 5 11:03:05 CST 2020


The Vulkan spec states commandBufferCount must be greater than zero and pCommandBuffers must be a valid pointer.

Signed-off-by: Joshua Ashton <joshua at froggi.es>
---
 dlls/winevulkan/vulkan.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/winevulkan/vulkan.c b/dlls/winevulkan/vulkan.c
index 1cc1b4f61f..f767b86dc4 100644
--- a/dlls/winevulkan/vulkan.c
+++ b/dlls/winevulkan/vulkan.c
@@ -517,9 +517,6 @@ void WINAPI wine_vkCmdExecuteCommands(VkCommandBuffer buffer, uint32_t count,
 
     TRACE("%p %u %p\n", buffer, count, buffers);
 
-    if (!buffers || !count)
-        return;
-
     tmp_buffers = WINEVULKAN_ALLOCA(count * sizeof(*tmp_buffers));
 
     for (i = 0; i < count; i++)
-- 
2.25.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-winevulkan-Remove-unnecessary-checks-in-wine_vkCmdEx.patch
Type: application/octet-stream
Size: 949 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200305/d366db88/attachment.obj>


More information about the wine-devel mailing list