summaryrefslogtreecommitdiff
path: root/glamor/glamor.h
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2019-07-17 16:07:43 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2019-10-11 12:03:42 +0000
commit4018811838c344ee92d10e60789853e4ba512612 (patch)
tree0488d2cf5cf362a628f7d733d10c33bed093f52e /glamor/glamor.h
parent1b5183b26d9977d46f6624126a2b2b6d77a74659 (diff)
glamor_egl: don't use ScrnInfoRec::privates
Move from the xf86 specific ScrnInfoRec::privates, to the dix private handling. Since there's no FreeScreen function in ScreenPtr, fold the former within the existing CloseScreen. Users, such as modesetting are updated, and out of tree drivers will need equivalent, yet trivial, patch. Note: we need to ensure that the screen private is unset and the screen callbacks are restored in our CloseScreen function. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'glamor/glamor.h')
-rw-r--r--glamor/glamor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/glamor/glamor.h b/glamor/glamor.h
index c972694e3..77df1ff96 100644
--- a/glamor/glamor.h
+++ b/glamor/glamor.h
@@ -338,14 +338,14 @@ extern _X_EXPORT void glamor_set_drawable_modifiers_func(ScreenPtr screen,
/* @glamor_egl_init: Initialize EGL environment.
*
- * @scrn: Current screen info pointer.
+ * @screen: Current screen pointer.
* @fd: Current drm fd.
*
* This function creates and intialize EGL contexts.
* Should be called from DDX's preInit function.
* Return TRUE if success, otherwise return FALSE.
* */
-extern _X_EXPORT Bool glamor_egl_init(ScrnInfoPtr scrn, int fd);
+extern _X_EXPORT Bool glamor_egl_init(ScreenPtr screen, int fd);
extern _X_EXPORT Bool glamor_egl_init_textured_pixmap(ScreenPtr screen);