From: Emil Velikov Date: Fri, 7 Nov 2014 03:42:15 +0000 (+0000) Subject: egl_dri2: add a note about dri2_create_screen X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ed08e69bca515e6b116d0306390cdd119acc140;p=mesa.git 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) --- 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) {