termux-user-repository / tur

A place for all types of Termux packages.
Other
421 stars 82 forks source link

[Help] How do I enable hardware graphics acceleration in termux? #392

Open Yisus7u7 opened 1 year ago

Yisus7u7 commented 1 year ago

Captura de pantalla -2023-05-01 21-47-02

Hi, I am using Ubuntu Jammy lts with Mate, a year ago I used to use graphics acceleration with this

It used to work great on the device I had at the time, it was 32 bit, Snapdragon.

Some time later I now have a new device, it also has a Snapdragon processor with Adreno GPU, 64 bit, the packages available in termux provide basic graphics acceleration, but working, but since it's proot everything there is very slow, I tried to compile enabling all necessary extensions (I had to create some patches for memfd), And the only thing that makes it impossible for me to compile is mesa, I've already tried all possible ways, but I can't compile mesa.

Using zink mesa in this repository I get graphics acceleration in termux but not in proot, I can't even run glxgears in proot

I'm already having a headache, is there any guide to get a good graphics acceleration on a proot distro in termux? Please

Extra note: I am rooted, if this is a benefit for graphics acceleration, please tell me so I can get to work.

Sorry for my bad English

IntinteDAO commented 1 year ago

https://ivonblog.com/en-us/posts/termux-virglrenderer/

Yisus7u7 commented 1 year ago

https://ivonblog.com/en-us/posts/termux-virglrenderer/

I already tried that, just mesa doesn't compile.

IntinteDAO commented 1 year ago

https://ivonblog.com/en-us/posts/termux-virglrenderer/

I already tried that, just mesa doesn't compile.

You don't need to compile Mesa, cause it's on TUR repository (mesa-zink)

Yisus7u7 commented 1 year ago

https://ivonblog.com/en-us/posts/termux-virglrenderer/

I already tried that, just mesa doesn't compile.

You don't need to compile Mesa, cause it's on TUR repository (mesa-zink)

I already tried, and it doesn't work either

IntinteDAO commented 1 year ago

https://ivonblog.com/en-us/posts/termux-virglrenderer/

I already tried that, just mesa doesn't compile.

You don't need to compile Mesa, cause it's on TUR repository (mesa-zink)

I already tried, and it doesn't work either

Does it work on Termux directly?

Yisus7u7 commented 1 year ago

Screenshot_20230510-001703_Termux_X11

I'm not using zink, now virpipe doesn't work.

licy183 commented 1 year ago

Accidentally close it, sorry.

IntinteDAO commented 1 year ago

@Yisus7u7

Ok, can you post here "vulkaninfo" from termux result?