radv: remove useless memset() in radv_CreateFence()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 10 Nov 2017 08:17:59 +0000 (09:17 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Nov 2017 10:05:28 +0000 (11:05 +0100)
All radv_fence fields are initialized here.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index 5754816b149cce1baaccb9f54781a6952d90f368..aa0511fd8d5308ddc8b38d7fd8ddc83318844c38 100644 (file)
@@ -2544,7 +2544,6 @@ VkResult radv_CreateFence(
        if (!fence)
                return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
 
-       memset(fence, 0, sizeof(*fence));
        fence->submitted = false;
        fence->signalled = !!(pCreateInfo->flags & VK_FENCE_CREATE_SIGNALED_BIT);
        fence->fence = device->ws->create_fence();