[Mesa-dev] [PATCH] vulkan: fix build issue on android (both anv/radv)
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Wed Apr 11 07:56:21 UTC 2018
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Wed, Apr 11, 2018 at 9:29 AM, Tapani Pälli <tapani.palli at intel.com> wrote:
> Fixes linking errors against:
>
> anv_GetPhysicalDeviceImageFormatProperties2KHR
> radv_GetPhysicalDeviceImageFormatProperties2KHR
>
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
> src/amd/vulkan/radv_android.c | 6 +++---
> src/intel/vulkan/anv_android.c | 4 ++--
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_android.c b/src/amd/vulkan/radv_android.c
> index 09da601dac..c06c83b8ab 100644
> --- a/src/amd/vulkan/radv_android.c
> +++ b/src/amd/vulkan/radv_android.c
> @@ -230,11 +230,11 @@ VkResult radv_GetSwapchainGrallocUsageANDROID(
> };
>
> /* Check that requested format and usage are supported. */
> - result = radv_GetPhysicalDeviceImageFormatProperties2KHR(phys_dev_h,
> - &image_format_info, &image_format_props);
> + result = radv_GetPhysicalDeviceImageFormatProperties2(phys_dev_h,
> + &image_format_info, &image_format_props);
> if (result != VK_SUCCESS) {
> return vk_errorf(result,
> - "radv_GetPhysicalDeviceImageFormatProperties2KHR failed "
> + "radv_GetPhysicalDeviceImageFormatProperties2 failed "
> "inside %s", __func__);
> }
>
> diff --git a/src/intel/vulkan/anv_android.c b/src/intel/vulkan/anv_android.c
> index b1bbbb6829..7e07dbaaa4 100644
> --- a/src/intel/vulkan/anv_android.c
> +++ b/src/intel/vulkan/anv_android.c
> @@ -254,11 +254,11 @@ VkResult anv_GetSwapchainGrallocUsageANDROID(
> };
>
> /* Check that requested format and usage are supported. */
> - result = anv_GetPhysicalDeviceImageFormatProperties2KHR(phys_dev_h,
> + result = anv_GetPhysicalDeviceImageFormatProperties2(phys_dev_h,
> &image_format_info, &image_format_props);
> if (result != VK_SUCCESS) {
> return vk_errorf(device->instance, device, result,
> - "anv_GetPhysicalDeviceImageFormatProperties2KHR failed "
> + "anv_GetPhysicalDeviceImageFormatProperties2 failed "
> "inside %s", __func__);
> }
>
> --
> 2.14.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list