projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd64a4f
)
radv: remove useless memset() in radv_CreateFence()
author
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Fri, 10 Nov 2017 08:17:59 +0000
(09:17 +0100)
committer
Samuel 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
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_device.c
b/src/amd/vulkan/radv_device.c
index 5754816b149cce1baaccb9f54781a6952d90f368..aa0511fd8d5308ddc8b38d7fd8ddc83318844c38 100644
(file)
--- a/
src/amd/vulkan/radv_device.c
+++ b/
src/amd/vulkan/radv_device.c
@@
-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();