Herick75 / Box4Droid

154 stars 17 forks source link

driver for mali #24

Open SolusMonahus opened 1 year ago

SolusMonahus commented 1 year ago

Will you add panfrost driver for mali? https://docs.mesa3d.org/drivers/panfrost.html

Ilya114 commented 1 year ago

Need a 5.x kernel to work

jacksonphb commented 1 year ago

Screenshot_2023-04-30-14-22-52-47_40deb401b9ffe8e1df2f1cc5ba480b12

it will be possible?

so i don't know how can i add it in termux and set with ubuntu.

Ilya114 commented 1 year ago

it will be possible?

If you have 5.10+ kernel

jacksonphb commented 1 year ago

Screenshot_2023-05-01-14-01-08-80_8659c1e795b4b4239e38d87c88c077b3 Kernel 6.2

Herick75 commented 1 year ago

Screenshot_2023-05-01-14-01-08-80_8659c1e795b4b4239e38d87c88c077b3 Kernel 6.2

This is a fake kernel by proot-distro, the kernel used is the device's own

SolusMonahus commented 1 year ago

@jacksonphb Let's build the driver, I found the keys to compile. Unfortunately, I can not test because my device is on adreno. I found information that someone was able to run panfrost in thermux. Screenshot_20230502-025350_Termux

jacksonphb commented 1 year ago

@SolusMonahus i use mali g57 It is conformant in panfrost but i don't know how i can compile mesa/panfrost

SolusMonahus commented 1 year ago

@jacksonphb I found a TV box in Mali G31, I'll try it on it and write back on the result.

jacksonphb commented 1 year ago

@SolusMonahus Any progress.

SolusMonahus commented 1 year ago

@jacksonphb I'm having technical difficulties now and I can't assemble the driver, but I found an article where the panfrost driver was assembled in termux.

SolusMonahus commented 1 year ago

https://gitlab.freedesktop.org/Hazematman/mesa/-/issues/2

SolusMonahus commented 1 year ago

Screenshot_20230505-170421_Chrome

jacksonphb commented 1 year ago

@SolusMonahus I will compile panfrost and try to circumvent errors during compilation in termux

SolusMonahus commented 1 year ago

@jacksonphb Screenshot_20230508-231944_Termux Screenshot_20230508-232009_Termux

https://gitlab.freedesktop.org/mesa/mesa/-/tree/staging/23.0?ref_type=heads

env CC=gcc-11 CXX=g++-12 meson build -D platforms=x11 -D gallium-extra-hud=false -D vulkan-drivers=panfrost -D gallium-drivers=swrast,panfrost -D llvm=disabled -D tools=panfrost -D egl-native-platform=x11 --prefix /usr -D microsoft-clc=disabled -D valgrind=disabled -D buildtype=release --wipe -D libunwind=disabled -D dri3=enabled -D egl=enabled -D gles2=enabled -D osmesa=true

meson 1.1.0, ninja 1.11.1 Screenshot_20230508-232451_Termux

SolusMonahus commented 1 year ago

@jacksonphb I can't check if the driver works.

SolusMonahus commented 1 year ago

@jacksonphb env CC=gcc-11 CXX=g++-12 meson build1 -D platforms=x11 -D gallium-extra-hud=false -D vulkan-drivers=panfrost -D gallium-drivers=swrast,panfrost -D llvm=disabled -D tools=panfrost -D egl-native-platform=x11 --prefix /usr -D microsoft-clc=disabled -D valgrind=disabled -D buildtype=release --wipe -D osmesa=true Or try this option, the compilation passes. You can also try the place g++-12 use g++-11

jacksonphb commented 1 year ago

@SolusMonahus necessary to set LIBGL_DRIVERS_PATH to the location where Mesa was installed.

jacksonphb commented 1 year ago

exemplo LIBGL_DRIVERS_PATH=/usr/lib/aarch64-linux-gnu/dri

jacksonphb commented 1 year ago

use glxinfo

jacksonphb commented 1 year ago

IMG_20230513_134426 I don't know if panfrost would be viable in termux, I think the best option for mali would be to use virgl. Screenshot_2023-05-13-13-50-44-27_40deb401b9ffe8e1df2f1cc5ba480b12

SolusMonahus commented 1 year ago

@jacksonphb from panfrost we only need support vulkan, gl take from virg or zink