summaryrefslogtreecommitdiff
path: root/src/radeon_dri3.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-03-18 18:29:27 +0900
committerMichel Dänzer <michel@daenzer.net>2015-03-18 18:44:18 +0900
commitf68d9b5ba0c91a725b5eec9386c61bea8824c299 (patch)
tree9654e79b80bd5820abf9c5010c286a5e0f6a4af8 /src/radeon_dri3.c
parent4b0997e56dec0053cb2cb793e0f4ae35055ff7e6 (diff)
dri3: Use screen->CreatePixmap instead of fbCreatePixmap directly
Fixes crash with EXA reported by "marvin24" on IRC.
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))