Mesa (main): lavapipe: fix unused variable

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 23 19:32:45 UTC 2021


Module: Mesa
Branch: main
Commit: 0daed2dc6b3f251bc0fd8bb7bffb577a4c3f4b46
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0daed2dc6b3f251bc0fd8bb7bffb577a4c3f4b46

Author: Michel Zou <xantares09 at hotmail.com>
Date:   Sat Nov 20 13:53:13 2021 +0100

lavapipe: fix unused variable

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13892>

---

 src/gallium/frontends/lavapipe/lvp_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c
index 83b8649de5b..4675bc2119f 100644
--- a/src/gallium/frontends/lavapipe/lvp_device.c
+++ b/src/gallium/frontends/lavapipe/lvp_device.c
@@ -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);



More information about the mesa-commit mailing list