https://github.com/nihui/mesa-turnip-android-driver
mesa turnip driver for android
https://github.com/nihui/mesa-turnip-android-driver
Last synced: 6 months ago
JSON representation
mesa turnip driver for android
- Host: GitHub
- URL: https://github.com/nihui/mesa-turnip-android-driver
- Owner: nihui
- License: mit
- Created: 2025-01-06T14:45:34.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-11-03T11:11:17.000Z (9 months ago)
- Last Synced: 2025-12-14T00:41:15.873Z (8 months ago)
- Size: 32.2 KB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mesa turnip android driver
mesa turnip driver for android
Download prebuilt binary at https://github.com/nihui/mesa-turnip-android-driver/releases/latest
This turnip driver library can be used with ncnn vulkan loader [simplevk.h](https://github.com/Tencent/ncnn/blob/master/src/simplevk.h)
```cpp
#include "simplevk.h"
ncnn::load_vulkan_driver("libvulkan_freedreno.so");
// now you call any global vulkan functions
// ncnn::vkGetInstanceProcAddr
// ncnn::vkEnumerateInstanceExtensionProperties
// ncnn::vkCreateInstance
// ncnn::vkEnumerateInstanceLayerProperties
// any vulkan api entrypoint can be retrieved from vkGetInstanceProcAddr
ncnn::unload_vulkan_driver();
```
- Hot-swap android vulkan driver at runtime
- Full support for Adreno 6xx/7xx series
- Better performance than the system blobs
- Can be used directly in your application
- All vulkan extensions implemented are enabled
- Support Android 8.0 or later
# Credits
- https://gitlab.freedesktop.org/mesa/mesa for mesa turnip driver source
- https://github.com/v3kt0r-87/Mesa-Turnip-Builder for mesa turnip build instruction
- https://github.com/lizhangqu/dlfcn_compat for dlopen android system library