Skip to content

WIP: venus: refactor out gralloc stuff out from android frontend

Dawn Han requested to merge dawnhan/mesa:vn_gralloc into main

Refactor gralloc stuff out from vn_android.c to vn_gralloc.c.

There is no logic change in this merge, just update the struct and function that have the prefix vn_android_gralloc to vn_gralloc.

Moved the following AHB-related functions and updated the name accordingly:

  • vn_android_ahb_format_from_vk_format
  • vn_android_get_ahb_usage
  • vn_android_get_ahb_format_properties
  • vn_GetAndroidHardwareBufferPropertiesANDROID
  • vn_android_ahb_allocate
  • vn_android_release_ahb
  • vn_gralloc_device_import_ahb
  • vn_gralloc_device_allocate_ahb
  • vn_GetMemoryAndroidHardwareBufferANDROID
  • vn_android_get_ahb_buffer_memory_type_bits

Added shim for some AHB-related functions:

  • vn_gralloc_ahb_get_native_handle
  • vn_gralloc_ahb_describe
  • vn_gralloc_ahb_acquire

Ran deqp tests on guybrush.

dEQP-VK.api.external.memory.android_hardware_buffer.*
1/1 modules completed
Total Tests       : 29
PASSED            : 29
FAILED            : 0

dEQP-VK.wsi.android.*
1/1 modules completed
Total Tests       : 779
PASSED            : 779
FAILED            : 0

dEQP-VK.api.info.*
1/1 modules completed
Total Tests       : 3699
PASSED            : 3699
FAILED            : 0

dEQP-VK.memory.*
1/1 modules completed
Total Tests       : 2886
PASSED            : 2886
FAILED            : 0

dEQP-VK.api.copy_and_blit.*
1/1 modules completed
Total Tests       : 77353
PASSED            : 77353
FAILED            : 0

Signed-off-by: Dawn Han dawnhan@google.comWIP

Edited by Dawn Han

Merge request reports