lavapipe: fix unused variable

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13892>
This commit is contained in:
Michel Zou 2021-11-20 13:53:13 +01:00 committed by Marge Bot
parent d7957df318
commit 0daed2dc6b
1 changed files with 2 additions and 2 deletions

View File

@ -1637,8 +1637,8 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_AllocateMemory(
{
LVP_FROM_HANDLE(lvp_device, device, _device);
struct lvp_device_memory *mem;
const VkExportMemoryAllocateInfo *export_info = NULL;
const VkImportMemoryFdInfoKHR *import_info = NULL;
ASSERTED const VkExportMemoryAllocateInfo *export_info = NULL;
ASSERTED const VkImportMemoryFdInfoKHR *import_info = NULL;
const VkImportMemoryHostPointerInfoEXT *host_ptr_info = NULL;
VkResult error = VK_ERROR_OUT_OF_DEVICE_MEMORY;
assert(pAllocateInfo->sType == VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO);