aux/ogl: always return false in ogl_import_from_native for AHardwareBuffer

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272>
This commit is contained in:
Simon Zeni 2024-07-04 15:48:24 -04:00 committed by Rylie Pavlik
parent 967847c742
commit 7cbcf92c3b

View file

@ -98,6 +98,12 @@ ogl_import_from_native(struct xrt_image_native *natives,
const struct xrt_swapchain_create_info *info,
struct ogl_import_results *results)
{
#if defined(XRT_OS_ANDROID_USE_AHB)
// Function is disabled for AHardwareBuffer, glImportMemoryFdEXT requires an actual FD and requires more work
// to handle AHardwareBuffer.
return false;
#endif
// Setup fields.
results->width = info->width;
results->height = info->height;