Skip to content

[Android] libopenxr_loader.so Support 16 KB page size#548

Merged
rpavlik merged 1 commit intoKhronosGroup:mainfrom
jsyjbaba:main
Jun 2, 2025
Merged

[Android] libopenxr_loader.so Support 16 KB page size#548
rpavlik merged 1 commit intoKhronosGroup:mainfrom
jsyjbaba:main

Conversation

@jsyjbaba
Copy link
Copy Markdown
Contributor

[Android] libopenxr_loader.so Support 16 KB page size
modified: src/loader/CMakeLists.txt

Beginning with Android 15, AOSP supports devices that are configured to use a page size of 16 KB (16 KB devices).
https://android-developers.googleblog.com/2025/05/prepare-play-apps-for-devices-with-16kb-page-size.html

issue: #546

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 26, 2025

CLA assistant check
All committers have signed the CLA.

@rpavlik
Copy link
Copy Markdown
Contributor

rpavlik commented May 27, 2025

So this appears to apply on all Android architectures. I thought this was just an ARM thing, but the linked blog post doesn't actually say that. Should this be applied on all architectures?

@jsyjbaba
Copy link
Copy Markdown
Contributor Author

As you know, Android devices—excluding emulators—use ARM architectures.
Also, this code is safely supported across other ABIs without issues.
Both Epic and the Vulkan validation layers configure this setting based on the Android platform.

Vulkan Validation Layers commit

Epic Games Unreal Engine commit

@rpavlik
Copy link
Copy Markdown
Contributor

rpavlik commented May 28, 2025

there are x64 devices (magic leap 2) and emulators (android xr emulator) in the wild, so I try to care about all the architectures. thanks for the references.

@Wallbraker
Copy link
Copy Markdown
Contributor

Reading the various Android pages that touches on the 16KB pages thing it doesn't seem like 16KB pages breaks on x86_64?

@utzcoz
Copy link
Copy Markdown
Contributor

utzcoz commented May 28, 2025

https://developer.android.com/guide/practices/page-sizes#linux-or-macos_1

Google APIs Experimental 16 KB Page Size Intel x86_64 Atom System Image

Looks like Google has prepared 16kb image for x86_64. What my thought after reading it is: 16kb is supported by x86_64 Android.

@rpavlik rpavlik merged commit 4b396d5 into KhronosGroup:main Jun 2, 2025
30 checks passed
@rpavlik
Copy link
Copy Markdown
Contributor

rpavlik commented Jun 2, 2025

Thank you for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants