Conversation
… disable it on GL4ES
Some GL ES drivers running under GL4ES may be very picky about typing and GL4ES still has to implement casting.
texture3D isn't supported by GL ES, so GL4ES cannot support it
|
On a side note, as recently discussed on the Chat, this may help us to port the game to Android. There are three kinds of requirements for Android:
This assuming a Linux-like environment on Android, like Termux. Direct Android integration would require more work. |
0c17829 to
7b21755
Compare
|
Not something critical, but it makes it easy for me to test hardware before Desktop OpenGL is implemented. It is very common on non-x86 platforms that hardware ships with only a GLES driver, but then we may want to test the hardware. An example of such hardware testing was to compare macOS OpenGL on AGX and Linux proprietary Imagination GL ES driver on PowerVR, to confirm that a bug is shared and may be a design bug. This also introduces some framework to detect underlyings driver behind translation layers. This can be extended in the future to detect other underlying drivers, like detecting the macOS driver hiding behind Parallels, or the Linux driver hiding behind VirGL or Zink, and other things like that. |
I flag it as draft to make it obvious I'm not intending to merge this for the 0.56 release.
I'm just pushing it because it's somewhat usable and as Linus Torvalds said once:
This implements some compatibility code path making possible to run the Dæmon engine and the Unvanquished game on OpenGL ES hardware using the GL4ES translation layer.
In fact this basically implements some compatibility code path for GL ES 2 (what currently targets GL4ES) for when GL4ES isn't able to translate OpenGL to GL ES because of GL ES limitation.
The purpose of this is to allow me to test the engine on more hardware. I used this to confirm the bug we observe on PowerVR-derivated hardware like Apple AGX/Moore Threads is indeed reproducible on PowerVR:
The only Imagination-branded PowerVR device I own is soldered on a RISC-V board, and while there is a Vulkan Mesa driver being on development for it (purposed to be a backend for the Mesa zink OpenGL translation layer), the RISC-V architecture of the said board is very new and then the whole Linux support is experimental and so getting the game running on GL4ES is far less work than doing platform-enablement at the whole distro level. So that allows me to use the proprietary OpenGL ES Imagination driver for PowerVR which is bundled with the distro provided for the board (the Proprietary Imagination Vulkan driver isn't featureful enough to run Zink). I even don't have to rebuild neither the kernel, neither Mesa!
This also brings more rewrite of existing compatibility code in a better way.
I started to implement ways to detect the underlying hardware when running API translators, this may be extended to things like VirGL, Zink or Parallels in the future.
GL4ES actually added such wanted feature on my request:
I have more ideas for some rework on the driver/hardware detection (especially moving things like
TRANSLATORto a different variable thanHARDWARE).So this doesn't only benefit GL4ES and PowerVR.