summaryrefslogtreecommitdiff
path: root/src/radeon_dri3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_dri3.c')
-rw-r--r--src/radeon_dri3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/radeon_dri3.c b/src/radeon_dri3.c
index ea0f28b0..993c7a77 100644
--- a/src/radeon_dri3.c
+++ b/src/radeon_dri3.c
@@ -108,11 +108,12 @@ static PixmapPtr radeon_dri3_pixmap_from_fd(ScreenPtr screen,
return NULL;
}
- pixmap = fbCreatePixmap(screen, 0, 0, depth, 0);
+ pixmap = screen->CreatePixmap(screen, 0, 0, depth, 0);
if (!pixmap)
return NULL;
- if (!screen->ModifyPixmapHeader(pixmap, width, height, 0, 0, stride, NULL))
+ if (!screen->ModifyPixmapHeader(pixmap, width, height, 0, bpp, stride,
+ NULL))
goto free_pixmap;
if (screen->SetSharedPixmapBacking(pixmap, (void*)(intptr_t)fd))