The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/vk: check ahardwarebuffer support in format verification

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2407>

authored by

Simon Zeni and committed by
korejan
507aa7e6 fad04551

+9 -1
+9 -1
src/xrt/auxiliary/vk/vk_compositor_flags.c
··· 1 - // Copyright 2019-2024, Collabora, Ltd. 1 + // Copyright 2019-2025, Collabora, Ltd. 2 2 // SPDX-License-Identifier: BSL-1.0 3 3 /*! 4 4 * @file ··· 29 29 #include <stdlib.h> 30 30 #include <string.h> 31 31 32 + #ifdef XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER 33 + #include "android/android_ahardwarebuffer_allocator.h" 34 + #endif 32 35 33 36 /* 34 37 * ··· 347 350 #if defined(XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER) 348 351 if (!has_ahardware_buffer_format_conversion(format)) { 349 352 VK_DEBUG(vk, "Format '%s' does not map to a AHardwareBuffer format!", vk_format_string(format)); 353 + return false; 354 + } 355 + 356 + if (!ahardwarebuffer_is_supported(format, xbits)) { 357 + VK_DEBUG(vk, "Format '%s' is not supported.", vk_format_string(format)); 350 358 return false; 351 359 } 352 360 #endif