Skip to content

Add EGL and GLES version string retrieval functions and update related structures - #1351

Merged
Huevos merged 1 commit into
OpenViX:Developerfrom
DimitarCC:egl-gles-report
Oct 3, 2026
Merged

Huevos merged 1 commit into
OpenViX:Developerfrom
DimitarCC:egl-gles-report

Conversation

@DimitarCC

@DimitarCC DimitarCC commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

This pull request introduces new functionality to expose the EGL and GLES version strings reported by the graphics driver to the rest of the codebase and to Python consumers. The main changes involve capturing these version strings during EGL initialization and making them accessible through new getter functions.

EGL/GLES Version String Exposure:

  • lib/gdi/egl/gles_version.h, lib/gdi/egl/gles_version.cpp: Added two new std::string variables, eglVersionString and glesVersionString, to store the driver-reported version strings. These are set during EGL initialization. [1] [2]
  • lib/gdi/egl/gegldc.cpp: During EGL initialization in gEGLDC::tryInitEGL, the code now queries and stores the EGL and GLES version strings, and logs them for debugging.

API Additions for Version Retrieval:

  • main/enigma.cpp: Added two new functions, getEGLVersionString() and getGLESVersionString(), which return the stored version strings (or empty strings if EGL is not enabled).
  • lib/python/enigma_python.i: Exposed the new getter functions to Python, allowing Python code to access the EGL and GLES version strings. [1] [2]

Header and Dependency Updates:

  • main/enigma.cpp, lib/gdi/egl/gles_version.h: Included necessary headers and added #include <string> to support the new string variables. [1] [2]

from enigma import getEGLVersionString, getGLESVersionString
getEGLVersionString() # e.g. "1.4"
getGLESVersionString() # e.g. "OpenGL ES 3.0 ..."

@Huevos
Huevos merged commit 81f922c into OpenViX:Developer Oct 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants