mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
modesetting: Make the async-flipping key global.
This commit is contained in:
committed by
Enrico Weigelt
parent
c5fad50afe
commit
6c924809e4
@@ -159,6 +159,8 @@ static const OptionInfoRec Options[] = {
|
||||
|
||||
int ms_entity_index = -1;
|
||||
|
||||
DevPrivateKeyRec asyncFlipPrivateKeyRec;
|
||||
|
||||
static MODULESETUPPROTO(Setup);
|
||||
|
||||
static XF86ModuleVersionInfo VersRec = {
|
||||
@@ -934,7 +936,7 @@ ms_window_has_async_flip(WindowPtr win)
|
||||
ScrnInfoPtr scrn = xf86ScreenToScrn(win->drawable.pScreen);
|
||||
modesettingPtr ms = modesettingPTR(scrn);
|
||||
struct ms_async_flip_priv *priv = dixLookupPrivate(&win->devPrivates,
|
||||
&ms->drmmode.asyncFlipPrivateKeyRec);
|
||||
&asyncFlipPrivateKeyRec);
|
||||
|
||||
return priv->async_flip;
|
||||
}
|
||||
@@ -945,7 +947,7 @@ ms_window_update_async_flip(WindowPtr win, Bool async_flip)
|
||||
ScrnInfoPtr scrn = xf86ScreenToScrn(win->drawable.pScreen);
|
||||
modesettingPtr ms = modesettingPTR(scrn);
|
||||
struct ms_async_flip_priv *priv = dixLookupPrivate(&win->devPrivates,
|
||||
&ms->drmmode.asyncFlipPrivateKeyRec);
|
||||
&asyncFlipPrivateKeyRec);
|
||||
|
||||
priv->async_flip = async_flip;
|
||||
}
|
||||
@@ -956,7 +958,7 @@ ms_window_has_async_flip_modifiers(WindowPtr win)
|
||||
ScrnInfoPtr scrn = xf86ScreenToScrn(win->drawable.pScreen);
|
||||
modesettingPtr ms = modesettingPTR(scrn);
|
||||
struct ms_async_flip_priv *priv = dixLookupPrivate(&win->devPrivates,
|
||||
&ms->drmmode.asyncFlipPrivateKeyRec);
|
||||
&asyncFlipPrivateKeyRec);
|
||||
|
||||
return priv->async_flip_modifiers;
|
||||
}
|
||||
@@ -967,7 +969,7 @@ ms_window_update_async_flip_modifiers(WindowPtr win, Bool async_flip)
|
||||
ScrnInfoPtr scrn = xf86ScreenToScrn(win->drawable.pScreen);
|
||||
modesettingPtr ms = modesettingPTR(scrn);
|
||||
struct ms_async_flip_priv *priv = dixLookupPrivate(&win->devPrivates,
|
||||
&ms->drmmode.asyncFlipPrivateKeyRec);
|
||||
&asyncFlipPrivateKeyRec);
|
||||
|
||||
priv->async_flip_modifiers = async_flip;
|
||||
}
|
||||
@@ -1756,7 +1758,7 @@ modesetCreateScreenResources(ScreenPtr pScreen)
|
||||
sizeof(struct ms_vrr_priv)))
|
||||
return FALSE;
|
||||
|
||||
if (!dixRegisterPrivateKey(&ms->drmmode.asyncFlipPrivateKeyRec,
|
||||
if (!dixRegisterPrivateKey(&asyncFlipPrivateKeyRec,
|
||||
PRIVATE_WINDOW,
|
||||
sizeof(struct ms_async_flip_priv)))
|
||||
return FALSE;
|
||||
|
||||
@@ -120,7 +120,6 @@ typedef struct {
|
||||
DevPrivateKeyRec pixmapPrivateKeyRec;
|
||||
DevScreenPrivateKeyRec spritePrivateKeyRec;
|
||||
DevPrivateKeyRec vrrPrivateKeyRec;
|
||||
DevPrivateKeyRec asyncFlipPrivateKeyRec;
|
||||
/* Number of SW cursors currently visible on this screen */
|
||||
int sprites_visible;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user