eglInitialize() must be called before the dri2 platforms probe
in order for the EGL DeviceList to be populate with devices.
Signed-off-by: Robert Foss <rfoss@kernel.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23742>
_EGL_FUNC_START(disp, EGL_OBJECT_DISPLAY_KHR, NULL);
+ _eglDeviceRefreshList();
+
if (!disp)
RETURN_EGL_ERROR(NULL, EGL_BAD_DISPLAY, EGL_FALSE);
*
* Must be called with the global lock held.
*/
-static int
+int
_eglDeviceRefreshList(void)
{
ASSERTED _EGLDevice *dev;
EGLBoolean
_eglDeviceSupports(_EGLDevice *dev, _EGLDeviceExtension ext);
+int
+_eglDeviceRefreshList(void);
+
EGLBoolean
_eglQueryDeviceAttribEXT(_EGLDevice *dev, EGLint attribute, EGLAttrib *value);