summaryrefslogtreecommitdiff
path: root/src/glamo-kms-driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glamo-kms-driver.c')
-rw-r--r--src/glamo-kms-driver.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/glamo-kms-driver.c b/src/glamo-kms-driver.c
index 32fdb4e..b2cfa7a 100644
--- a/src/glamo-kms-driver.c
+++ b/src/glamo-kms-driver.c
@@ -125,11 +125,10 @@ static Bool CreateFrontBuffer(ScrnInfoPtr pScrn)
PixmapPtr rootPixmap = pScreen->GetScreenPixmap(pScreen);
unsigned int flags;
- pScreen->ModifyPixmapHeader(rootPixmap,
+ GlamoKMSExaMakeFullyFledged(rootPixmap,
pScrn->virtualX, pScrn->virtualY,
pScrn->depth, pScrn->bitsPerPixel,
- pScrn->displayWidth * pScrn->bitsPerPixel/8,
- NULL);
+ pScrn->displayWidth*pScrn->bitsPerPixel/8);
drmModeAddFB(pGlamo->drm_fd,
pScrn->virtualX,
@@ -300,7 +299,7 @@ static Bool GlamoKMSCreateScreenResources(ScreenPtr pScreen)
rootPixmap = pScreen->GetScreenPixmap(pScreen);
- if (!pScreen->ModifyPixmapHeader(rootPixmap, -1, -1, -1, -1, -1, NULL))
+ if (!GlamoKMSExaMakeFullyFledged(rootPixmap, -1, -1, -1, -1, -1))
FatalError("Couldn't adjust screen pixmap\n");
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Adding framebuffer....!\n");