summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-11-07 03:42:15 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2014-11-07 18:31:23 +0000
commit8ed08e69bca515e6b116d0306390cdd119acc140 (patch)
tree79a9deccc7dbaa4259fb99fb6e4ab6b240c91f82 /src/egl/drivers
parent38cec0303be9ef79facbb2c8f73eb6a2f77e82ca (diff)
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 <emil.l.velikov@gmail.com> Reviewed-and-tested-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
Diffstat (limited to 'src/egl/drivers')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c4
1 files changed, 4 insertions, 0 deletions
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)
{