anv: initialize anv_bo_sync base fields

v2: zalloc

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: cbb13fae33 ("anv: Add a BO sync type")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13875>
This commit is contained in:
Lionel Landwerlin 2021-11-18 23:53:48 +02:00 committed by Marge Bot
parent 04bd5bb69b
commit 21ec880bf9
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,8 @@ anv_sync_create_for_bo(struct anv_device *device,
{
struct anv_bo_sync *bo_sync;
bo_sync = vk_alloc(&device->vk.alloc, sizeof(*bo_sync), 8,
VK_SYSTEM_ALLOCATION_SCOPE_DEVICE);
bo_sync = vk_zalloc(&device->vk.alloc, sizeof(*bo_sync), 8,
VK_SYSTEM_ALLOCATION_SCOPE_DEVICE);
if (bo_sync == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);