From 8ed08e69bca515e6b116d0306390cdd119acc140 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 7 Nov 2014 03:42:15 +0000 Subject: egl_dri2: add a note about dri2_create_screen The function is not called by platform_drm. As such one needs to pay special attention at teardown. v2: Fix the comment block. Spotted by Ken. Signed-off-by: Emil Velikov Reviewed-and-tested-by: Kenneth Graunke (v1) --- src/egl/drivers/dri2/egl_dri2.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/egl/drivers/dri2') diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index eceaf1a820c..d795a2fbdf3 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -543,6 +543,10 @@ 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) { -- cgit v1.2.3