The open source OpenXR runtime
0
fork

Configure Feed

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

xrt: Add a macro for Android platform to select vulkan memory to create swapchain.

Increases compatibility. AHardwareBuffer path left available and enabled
by default.

authored by

zhz and committed by
Simon Zeni
d232e735 cc54210f

+3 -2
+1
src/xrt/include/xrt/xrt_config_os.h
··· 18 18 19 19 #if defined(__ANDROID__) 20 20 #define XRT_OS_ANDROID 21 + #define XRT_OS_ANDROID_USE_AHB 21 22 #define XRT_OS_LINUX 22 23 #define XRT_OS_UNIX 23 24 #define XRT_OS_WAS_AUTODETECTED
+2 -2
src/xrt/include/xrt/xrt_handles.h
··· 187 187 * 188 188 */ 189 189 190 - #if defined(XRT_OS_ANDROID) && (__ANDROID_API__ >= 26) 190 + #if defined(XRT_OS_ANDROID) && defined(XRT_OS_ANDROID_USE_AHB) && (__ANDROID_API__ >= 26) 191 191 typedef struct AHardwareBuffer AHardwareBuffer; 192 192 193 193 /*! ··· 235 235 */ 236 236 #define XRT_GRAPHICS_BUFFER_HANDLE_INVALID NULL 237 237 238 - #elif defined(XRT_OS_LINUX) 238 + #elif defined(XRT_OS_ANDROID) && !defined(XRT_OS_ANDROID_USE_AHB) || defined(XRT_OS_LINUX) 239 239 240 240 /*! 241 241 * The type underlying buffers shared between compositor clients and the main