From 4eaf90effb871c119034c7e7a53c71bb71a11b1f Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Wed, 19 Aug 2015 14:55:44 -0700 Subject: [PATCH] vk: Unharcode an argument to sizeof s/struct anv_subpass/pass->subpasses[0])/ --- src/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2