PINE64
Pinephone: OpenGL support? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+--- Thread: Pinephone: OpenGL support? (/showthread.php?tid=16710)



Pinephone: OpenGL support? - orbital - 05-24-2022

Hi,
Does either the Pinephone or Pinephone Pro offer conventional OpenGL support, or are they limited to OpenGL ES?
And is there any hardware acceleration?
Thanks.


RE: OpenGL support? - fire219 - 05-24-2022

The OpenGL vs OpenGL ES comparison is a bit tricky. In general, ES is a subset of a given version of "full" OpenGL. However, if a program expecting full GL doesn't use any of the missing features (how many features are missing also depends), then there's no functional difference.

The GPU in the original PinePhone can do ES 2.0, which is pretty close to full OpenGL 2.1. The PinePhone Pro can do ES 3.1, which can also run full 3.1 applications most of the time. There's also work towards 3.2 support as well.

"Hardware acceleration" is a broad term, so you would have to specify. If you mean 3D acceleration or video encode/decode, the answer is yes.


RE: Pinephone: OpenGL support? - vortex - 08-25-2022

Well, it depends on whether you want hardware acceleration or not.

If you want hardware acceleration, then refer to what fire219 said.

If you don't need hardware acceleration, you can get almost everything Mesa supports for OpenGL by using the zink driver (set the environmental variable MESA_LOADER_DRIVER_OVERRIDE=zink) which does OpenGL over vulkan. Now, the original PinePhone does not have accelerated vulkan at all (no idea on the PinePhone Pro), so it does vulkan using the lavapipe driver, which is a pure software implementation of vulkan and therefore has no acceleration. This works quite well, just is slow is all. Very useful for some programs.