mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
nvk: Fix uninitialized result usage in NVK_DEBUG_ZERO_MEMORY.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
5d0aa694ee
commit
2773e55e86
1 changed files with 2 additions and 1 deletions
|
|
@ -121,8 +121,9 @@ nvk_allocate_memory(struct nvk_device *device,
|
|||
}
|
||||
memset(map, 0, mem->bo->size);
|
||||
nouveau_ws_bo_unmap(mem->bo, map);
|
||||
result = VK_SUCCESS;
|
||||
} else {
|
||||
VkResult result = zero_vram(device, mem->bo);
|
||||
result = zero_vram(device, mem->bo);
|
||||
if (result != VK_SUCCESS)
|
||||
goto fail_bo;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue