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 <caio.oliveira@intel.com>
This commit is contained in:
Jason Ekstrand
2020-01-03 11:20:22 -06:00
parent 8dc7c467e6
commit 9bd8000c6c
10 changed files with 18 additions and 18 deletions

View File

@@ -447,8 +447,8 @@ VkResult genX(CreateSampler)(
}
#if GEN_GEN >= 9
case VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO_EXT: {
struct VkSamplerReductionModeCreateInfoEXT *sampler_reduction =
(struct VkSamplerReductionModeCreateInfoEXT *) ext;
VkSamplerReductionModeCreateInfoEXT *sampler_reduction =
(VkSamplerReductionModeCreateInfoEXT *) ext;
sampler_reduction_mode =
vk_to_gen_sampler_reduction_mode[sampler_reduction->reductionMode];
enable_sampler_reduction = true;