[Mesa-dev] [PATCH 2/3] egl_dri2: add a note about dri2_create_screen
Emil Velikov
emil.l.velikov at gmail.com
Thu Nov 6 19:50:43 PST 2014
The function is not called by platform_drm. As such one needs to
pay special attention at teardown.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/egl/drivers/dri2/egl_dri2.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 609afde..2094ffd 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -543,6 +543,9 @@ dri2_setup_screen(_EGLDisplay *disp)
}
}
+/* All platforms but DRM call this function to create the screen, query the
+ * dri extensions, setup the vtables and populate the driver_configs.
+ * DRM inherits all that information from its display - GBM. */
EGLBoolean
dri2_create_screen(_EGLDisplay *disp)
{
--
2.1.3
More information about the mesa-dev
mailing list