From 9bd8000c6c3742ac36ff79ef3566bea0851a1682 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 3 Jan 2020 11:20:22 -0600 Subject: 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 --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/vulkan/anv_device.c') diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 3b4f40a998d..c6d31190a68 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -3186,7 +3186,7 @@ VkResult anv_AllocateMemory( if (result != VK_SUCCESS) goto fail; - const struct VkImportAndroidHardwareBufferInfoANDROID import_info = { + const VkImportAndroidHardwareBufferInfoANDROID import_info = { .buffer = mem->ahw, }; result = anv_import_ahw_memory(_device, mem, &import_info); -- cgit v1.2.3