projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44ef448
)
vk: Unharcode an argument to sizeof
author
Chad Versace
<chad.versace@intel.com>
Wed, 19 Aug 2015 21:55:44 +0000
(14:55 -0700)
committer
Chad Versace
<chad.versace@intel.com>
Thu, 20 Aug 2015 16:31:58 +0000
(09:31 -0700)
s/struct anv_subpass/pass->subpasses[0])/
src/vulkan/anv_device.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_device.c
b/src/vulkan/anv_device.c
index 145d16f485e5d23c3cbb86636fa41f575c99dfe2..89f6ec697d8ddb159c58a9cb7882e91ed84bdf15 100644
(file)
--- 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)