mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 14:40:13 +01:00
vk: Unharcode an argument to sizeof
s/struct anv_subpass/pass->subpasses[0])/
This commit is contained in:
parent
44ef4484c8
commit
4eaf90effb
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue