lavapipe: fix unused variable warning

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 45f32ce239)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10379>
This commit is contained in:
Michel Zou 2021-04-15 22:37:58 +02:00 committed by Eric Engestrom
parent 0fff844cf9
commit 7257be4d70
2 changed files with 2 additions and 2 deletions

View file

@ -6727,7 +6727,7 @@
"description": "lavapipe: fix unused variable warning",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"master_sha": null,
"because_sha": null
},

View file

@ -124,7 +124,7 @@ lvp_image_from_swapchain(VkDevice device,
const VkAllocationCallbacks *pAllocator,
VkImage *pImage)
{
struct lvp_image *swapchain_image = lvp_swapchain_get_image(swapchain_info->swapchain, 0);
ASSERTED struct lvp_image *swapchain_image = lvp_swapchain_get_image(swapchain_info->swapchain, 0);
assert(swapchain_image);
assert(swapchain_image->type == pCreateInfo->imageType);