diff options
author | Jason Ekstrand <[email protected]> | 2020-01-03 11:20:22 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2020-01-03 11:32:34 -0600 |
commit | 9bd8000c6c3742ac36ff79ef3566bea0851a1682 (patch) | |
tree | cc7ef55c36c108bde21ef81aae2183f4ce511d42 /src/intel/vulkan/anv_pass.c | |
parent | 8dc7c467e630df327400f0b91f68d66ddd28bc57 (diff) |
anv: Drop unneeded struct keywords
All VkFoo structs are typedef'd to not need the struct keyword. Leaving
it in there is just extra characters and breaks Vulkan's aliasing when
stuff gets promoted to core versions. It's better to just never use
struct for VkFoo.
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_pass.c')
-rw-r--r-- | src/intel/vulkan/anv_pass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_pass.c b/src/intel/vulkan/anv_pass.c index 94783bb36c4..067d9d55d67 100644 --- a/src/intel/vulkan/anv_pass.c +++ b/src/intel/vulkan/anv_pass.c @@ -338,7 +338,7 @@ VkResult anv_CreateRenderPass( for (uint32_t i = 0; i < pCreateInfo->dependencyCount; i++) { /* Convert to a Dependency2KHR */ - struct VkSubpassDependency2KHR dep2 = { + VkSubpassDependency2KHR dep2 = { .srcSubpass = pCreateInfo->pDependencies[i].srcSubpass, .dstSubpass = pCreateInfo->pDependencies[i].dstSubpass, .srcStageMask = pCreateInfo->pDependencies[i].srcStageMask, |