From: Chad Versace Date: Wed, 19 Aug 2015 21:55:44 +0000 (-0700) Subject: vk: Unharcode an argument to sizeof X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4eaf90effb871c119034c7e7a53c71bb71a11b1f;p=mesa.git vk: Unharcode an argument to sizeof s/struct anv_subpass/pass->subpasses[0])/ --- diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 145d16f485e..89f6ec697d8 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -2211,7 +2211,7 @@ VkResult anv_CreateRenderPass( assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO); size = sizeof(*pass) + - pCreateInfo->subpassCount * sizeof(struct anv_subpass); + pCreateInfo->subpassCount * sizeof(pass->subpasses[0]); pass = anv_device_alloc(device, size, 8, VK_SYSTEM_ALLOC_TYPE_API_OBJECT); if (pass == NULL)