radv_android.c: build errors due to commit 49c3a88f
Hello @hakzsam
The following building errors are happening due to typos
VkAndroidHardwareBufferFormatPropertiesANDROID2 should be VkAndroidHardwareBufferFormatProperties2ANDROID
../src/amd/vulkan/radv_android.c:665:35: error: unknown type name 'VkAndroidHardwareBufferFormatPropertiesANDROID2'; did you mean 'VkAndroidHardwareB
ufferFormatPropertiesANDROID'?
VkAndroidHardwareBufferFormatPropertiesANDROID2 *pProperties)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VkAndroidHardwareBufferFormatPropertiesANDROID
../include/vulkan/vulkan_android.h:73:3: note: 'VkAndroidHardwareBufferFormatPropertiesANDROID' declared here
} VkAndroidHardwareBufferFormatPropertiesANDROID;
^
../src/amd/vulkan/radv_android.c:757:59: error: incompatible pointer types passing 'VkAndroidHardwareBufferFormatProperties2ANDROID *' (aka 'struct V
kAndroidHardwareBufferFormatProperties2ANDROID *') to parameter of type 'VkAndroidHardwareBufferFormatPropertiesANDROID *' (aka 'struct VkAndroidHard
wareBufferFormatPropertiesANDROID *') [-Werror,-Wincompatible-pointer-types]
get_ahb_buffer_format_properties2(device_h, buffer, format_prop2);
^~~~~~~~~~~~
../src/amd/vulkan/radv_android.c:665:84: note: passing argument to parameter 'pProperties' here
VkAndroidHardwareBufferFormatPropertiesANDROID2 *pProperties)
^
../src/amd/vulkan/radv_android.c:852:16: warning: declaration shadows a local variable [-Wshadow]
VkResult result = radv_image_create_layout(device, create_info, NULL, mem->image);
^
../src/amd/vulkan/radv_android.c:840:13: note: previous declaration is here
VkResult result =
^
1 warning and 2 errors generated.
At line 665 VkAndroidHardwareBufferFormatPropertiesANDROID2 should be VkAndroidHardwareBufferFormatProperties2ANDROID
../src/amd/vulkan/radv_android.c:685:52: error: incompatible pointer types initializing 'VkAndroidHardwareBufferFormatPropertiesANDROID *' (aka 'stru
ct VkAndroidHardwareBufferFormatPropertiesANDROID *') with an expression of type 'VkAndroidHardwareBufferFormatProperties2ANDROID *' (aka 'struct VkA
ndroidHardwareBufferFormatProperties2ANDROID *') [-Werror,-Wincompatible-pointer-types]
VkAndroidHardwareBufferFormatPropertiesANDROID *p = pProperties;
^ ~~~~~~~~~~~
../src/amd/vulkan/radv_android.c:852:16: warning: declaration shadows a local variable [-Wshadow]
VkResult result = radv_image_create_layout(device, create_info, NULL, mem->image);
^
../src/amd/vulkan/radv_android.c:840:13: note: previous declaration is here
VkResult result =
^
1 warning and 1 error generated.
At line 685 VkAndroidHardwareBufferFormatPropertiesANDROID should be VkAndroidHardwareBufferFormatProperties2ANDROID
Edited by maurossi