xserver-xsdl icon indicating copy to clipboard operation
xserver-xsdl copied to clipboard

Is it possible to implement opengl calls using gl4es?

Open FreddyFeuerstein opened this issue 4 years ago • 5 comments

I made an app a while back that sets up linux on android without root. It was supposed to let you run pc apps on android using box86 and wine. Most apps work great but when using anything that needs opengl, it just crashes. I searched about this topic and found an old issue saying i should use llvmpipe and do it in software rendering. Well, i did that but its just painfully slow and nearly unusable if you dont put the resolution and details of your games to 640x480x16 on low. Thats where gl4es comes in. Its a translation library that takes normal desktop opengl 2.1 calls and translates them to opengl es. On SBCs like the raspberry pi it can simply be a replacement for libGL.so.1 but on android, it needs to be inside of the x server. Thats why I would like to know how I could embed it in XSDL to make it opengl compatible with good performance.

FreddyFeuerstein avatar Apr 07 '21 10:04 FreddyFeuerstein

Some kind of software layer needs to be implemented to permit access to the GPU, i would say

zanfix avatar Apr 07 '21 16:04 zanfix

It is possible now

gabreek avatar Jul 20 '22 15:07 gabreek

So has it been implemented? Or is it still on the list of things to come?

iAmInActions avatar Jul 20 '22 15:07 iAmInActions

It is not implemented in xsdl but you can compile mesa with alexvorxx turnip+zink drivers or use virgl renderer with virgl overlay APK and a mesa compiled with virgl drivers

gabreek avatar Jul 20 '22 18:07 gabreek

It is not implemented in xsdl but you can compile mesa with alexvorxx turnip+zink drivers or use virgl renderer with virgl overlay APK and a mesa compiled with virgl drivers

turnip+zink will work only on snapdragon devices, and will work with XServer XSDL only inside Xephyr since XServer XSDL does not support the GLX extention

zanfix avatar Jul 25 '22 17:07 zanfix