summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-07-06 10:18:17 +0100
committerDave Airlie <airlied@redhat.com>2012-07-06 10:18:17 +0100
commita7a6468721d35eb264d53b541224b786927dab52 (patch)
tree01bf22281b74c92dffe57ebf9ab31c0662956f5a
parent4b6ee18d3a5c63b609ba4c7eb572fc62d908ec20 (diff)
modesetting: fix up for new sharing interfaceprime
-rw-r--r--src/driver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/driver.c b/src/driver.c
index 34ce6ed..05fc56a 100644
--- a/src/driver.c
+++ b/src/driver.c
@@ -721,7 +721,7 @@ msShadowInit(ScreenPtr pScreen)
}
static Bool
-msSetSharedPixmapBacking(PixmapPtr ppix, int fd_handle)
+msSetSharedPixmapBacking(PixmapPtr ppix, void *fd_handle)
{
ScreenPtr screen = ppix->drawable.pScreen;
ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
@@ -729,8 +729,9 @@ msSetSharedPixmapBacking(PixmapPtr ppix, int fd_handle)
Bool ret;
int r;
int size = ppix->devKind * ppix->drawable.height;
+ int ihandle = (int)(long)fd_handle;
- ret = drmmode_SetSlaveBO(ppix, &ms->drmmode, fd_handle, ppix->devKind, size);
+ ret = drmmode_SetSlaveBO(ppix, &ms->drmmode, ihandle, ppix->devKind, size);
if (ret == FALSE)
return ret;