mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 04:50:11 +01:00
st/xorg: Create winsys hooks that we call into
This commit is contained in:
parent
232e59ca6f
commit
bb80a93c9e
2 changed files with 11 additions and 0 deletions
|
|
@ -652,6 +652,9 @@ drv_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
|
|||
if (serverGeneration == 1)
|
||||
xf86ShowUnusedOptions(pScrn->scrnIndex, pScrn->options);
|
||||
|
||||
if (ms->winsys_screen_init)
|
||||
ms->winsys_screen_init(pScrn);
|
||||
|
||||
return drv_enter_vt(scrnIndex, 1);
|
||||
}
|
||||
|
||||
|
|
@ -768,6 +771,9 @@ drv_close_screen(int scrnIndex, ScreenPtr pScreen)
|
|||
drv_leave_vt(scrnIndex, 0);
|
||||
}
|
||||
|
||||
if (ms->winsys_screen_close)
|
||||
ms->winsys_screen_close(pScrn);
|
||||
|
||||
#ifdef DRI2
|
||||
if (ms->screen)
|
||||
xorg_dri2_close(pScreen);
|
||||
|
|
|
|||
|
|
@ -114,6 +114,11 @@ typedef struct _modesettingRec
|
|||
Bool noEvict;
|
||||
Bool debug_fallback;
|
||||
|
||||
/* winsys hocks */
|
||||
Bool (*winsys_screen_init)(ScrnInfoPtr pScr);
|
||||
Bool (*winsys_screen_close)(ScrnInfoPtr pScr);
|
||||
void *winsys_priv;
|
||||
|
||||
#ifdef DRM_MODE_FEATURE_DIRTYFB
|
||||
DamagePtr damage;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue