anv/android: Fix type error in call to vk_errorf()
authorChad Versace <chadversary@chromium.org>
Thu, 28 Jun 2018 03:22:23 +0000 (20:22 -0700)
committerChad Versace <chadversary@chromium.org>
Wed, 11 Jul 2018 18:09:19 +0000 (11:09 -0700)
In a single call to vk_errorf() in the Android code, the arguments were
swapped. The bug has existed since day one. Chrome OS used to forgive
the warning, but it is now a compilation error.

CC: <mesa-stable@lists.freedesktop.org>
Fixes: 053d4c32 "anv: Implement VK_ANDROID_native_buffer (v9)"
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/intel/vulkan/anv_android.c

index 3c905d3bdb5fbb55eb756d76e240a9b7f6218750..a3bab8087b4726547f09d99b26725010ca6c6226 100644 (file)
@@ -180,7 +180,7 @@ anv_image_from_gralloc(VkDevice device_h,
       goto fail_create;
 
    if (bo->size < image->size) {
-      result = vk_errorf(device, device->instance,
+      result = vk_errorf(device->instance, device,
                          VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR,
                          "dma-buf from VkNativeBufferANDROID is too small for "
                          "VkImage: %"PRIu64"B < %"PRIu64"B",