Determine EGL version

Want to indicate that egl is version 1.5 if the underlying driver
supports 1.5 or 1.4 and necessary extensions.

Test: cts-tradefed run commandAndExit cts -m CtsDeqpTestCases --module-arg 'CtsDeqpTestCases:include-filter:dEQP-EGL.*'

Bug: 80297325
Change-Id: I6eec551caa4572a4fdce43cb35c6888aeae89c79
(cherry picked from commit 4416a7015f08492fbe6aaad7d22685dc32410bd1)
diff --git a/opengl/libs/EGL/egldefs.h b/opengl/libs/EGL/egldefs.h
index 77654b0..7c710d5 100644
--- a/opengl/libs/EGL/egldefs.h
+++ b/opengl/libs/EGL/egldefs.h
@@ -24,6 +24,7 @@
 
 #define VERSION_MAJOR 1
 #define VERSION_MINOR 4
+#define EGL_MAKE_VERSION(major, minor, patch) (((major) << 22) | ((minor) << 12) | (patch))
 
 // ----------------------------------------------------------------------------
 namespace android {
@@ -36,6 +37,7 @@
 
 extern char const * const platform_names[];
 
+// clang-format off
 struct egl_connection_t {
     enum {
         GLESv1_INDEX = 0,
@@ -64,6 +66,7 @@
     gl_hooks_t *        hooks[2];
     EGLint              major;
     EGLint              minor;
+    EGLint              driverVersion;
     egl_t               egl;
 
     // Functions implemented or redirected by platform libraries
@@ -77,6 +80,7 @@
     EGLint              angleBackend;
     void*               vendorEGL;
 };
+// clang-format on
 
 // ----------------------------------------------------------------------------