mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-26 01:59:57 +00:00
DRI2: Return event buffer head index in DRI2CreateDrawable.
And pass it to the DRI driver in AIGLX.
This commit is contained in:
parent
911f0c1476
commit
acedc03367
4 changed files with 10 additions and 6 deletions
|
|
@ -262,8 +262,8 @@ DRI2CloseScreen(ScreenPtr pScreen)
|
|||
}
|
||||
|
||||
Bool
|
||||
DRI2CreateDrawable(ScreenPtr pScreen,
|
||||
DrawablePtr pDraw, drm_drawable_t *pDrmDrawable)
|
||||
DRI2CreateDrawable(ScreenPtr pScreen, DrawablePtr pDraw,
|
||||
drm_drawable_t *pDrmDrawable, unsigned int *head)
|
||||
{
|
||||
DRI2ScreenPtr ds = DRI2GetScreen(pScreen);
|
||||
WindowPtr pWin;
|
||||
|
|
@ -293,6 +293,7 @@ DRI2CreateDrawable(ScreenPtr pScreen,
|
|||
|
||||
*pDrmDrawable = pPriv->drawable;
|
||||
|
||||
*head = ds->buffer->head;
|
||||
DRI2PostDrawableConfig(pDraw);
|
||||
DRI2PostBufferAttach(pDraw);
|
||||
DRI2ScreenCommitEvents(ds);
|
||||
|
|
|
|||
|
|
@ -66,7 +66,8 @@ void DRI2Unlock(ScreenPtr pScreen);
|
|||
|
||||
Bool DRI2CreateDrawable(ScreenPtr pScreen,
|
||||
DrawablePtr pDraw,
|
||||
drm_drawable_t *pDrmDrawable);
|
||||
drm_drawable_t *pDrmDrawable,
|
||||
unsigned int *head);
|
||||
|
||||
void DRI2DestroyDrawable(ScreenPtr pScreen,
|
||||
DrawablePtr pDraw);
|
||||
|
|
|
|||
Loading…
Reference in a new issue