Mesa (master): anv/android: fix compilation failure

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Mar 12 08:48:50 UTC 2021


Module: Mesa
Branch: master
Commit: 0759822f640d3cc65633aa623010a527052199ec
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0759822f640d3cc65633aa623010a527052199ec

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Fri Mar 12 08:33:23 2021 +0200

anv/android: fix compilation failure

Fixes: 3e6d3bca1d7 ("anv/android: Fix size check for imported gralloc bo")
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9549>

---

 src/intel/vulkan/anv_android.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_android.c b/src/intel/vulkan/anv_android.c
index e96345c33a4..fb0bb678ef4 100644
--- a/src/intel/vulkan/anv_android.c
+++ b/src/intel/vulkan/anv_android.c
@@ -583,7 +583,7 @@ anv_image_from_gralloc(VkDevice device_h,
       .sType = VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2,
    };
 
-   anv_GetImageMemoryRequirements2(_device, &mem_reqs_info, &mem_reqs);
+   anv_GetImageMemoryRequirements2(device_h, &mem_reqs_info, &mem_reqs);
 
    VkDeviceSize aligned_image_size =
       align_u64(mem_reqs.memoryRequirements.size,



More information about the mesa-commit mailing list