tareksander / termux-gfx-wrapper

Mozilla Public License 2.0
19 stars 1 forks source link

GL4ES support #9

Open tareksander opened 1 year ago

tareksander commented 1 year ago
twaik commented 1 year ago

Actually there is one option to use GL of higher versions on our devices, but it will require lots of porting work. It is vrend used in virglrenderer. It is possible to port vrend to mesa's virpipe driver and omit transport and ipc code (to make it work in the same process and get rid of additional unwanted CPU and RAM resource consumption).

tareksander commented 1 year ago

Actually there is one option to use GL of higher versions on our devices, but it will require lots of porting work. It is vrend used in virglrenderer. It is possible to port vrend to mesa's virpipe driver and omit transport and ipc code (to make it work in the same process and get rid of additional unwanted CPU and RAM resource consumption).

I think I could do something like this. I looked a bit at the Gallium API, and if I look at the Mesa virgl driver and virglrenderer-android, I'm sure I can fuse them, although I think I'll use it only as a guide to make a GL-on-GLES2.0 Gallium driver. That way I can also fit the existing swapchain implementation of the wrapper in, and eventually make use of HardwareBuffers for optimized rendering. Do you know if virgl also supports GL1.0? If yes, there really is no need for GL4ES.

twaik commented 1 year ago

Do you know if virgl also supports GL1.0?

I never checked this.