Skip to content

alexvorxx/zink-xlib-termux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Mesa] (https://mesa3d.org) - The 3D Graphics Library


Usage Zink in Termux

To use Zink with proprietary Vulkan driver:

pkg install vulkan-loader-android

To use Zink with Turnip Freedreno driver:

pkg install mesa-vulkan-icd-freedreno

You also may compile it yourself.

Zink 3D Tests

Tests were run in the Wine Hangover 9.3 in Termux. Device - Poco F1 (Adreno 630). A proprietary Vulkan driver was used with Zink.

  • glxgears and WineD3D tests
  • GPU Caps Viewer

Build dependencies

Taken from here.

pkg update && pkg upgrade

pkg install -y x11-repo

pkg install -y clang lld binutils cmake autoconf automake libtool 'ndk' make python git libandroid-shmem-static ninja llvm bison flex libx11 xorgproto libdrm libpixman libxfixes libjpeg-turbo xtrans libxxf86vm xorg-xrandr xorg-font-util xorg-util-macros libxfont2 libxkbfile libpciaccess xcb-util-renderutil xcb-util-image xcb-util-keysyms xcb-util-wm xorg-xkbcomp xkeyboard-config libxdamage libxinerama libxshmfence

pip install meson mako pyyaml

Build Mesa Zink

Build Mesa Zink using this repository.

Go to the folder with Mesa code and run the commands:

LDFLAGS='-l:libandroid-shmem.a -llog' meson . build -Dgallium-va=disabled -Dgallium-drivers=virgl,zink,swrast -Ddri3=disabled -Dvulkan-drivers= -Dglx=xlib -Dplatforms=x11 -Dllvm=disabled -Dbuildtype=release

ninja -C build install

Source

This repository lives at https://gitlab.freedesktop.org/mesa/mesa.

Other repositories are likely forks, and code found there is not supported.