summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drmmode_display.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 3888e5c7..8f62caef 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -131,6 +131,10 @@ static PixmapPtr drmmode_create_bo_pixmap(ScrnInfoPtr pScrn,
if (!info->use_glamor)
exaMoveInPixmap(pixmap);
+
+ if (!radeon_set_pixmap_bo(pixmap, bo))
+ goto fail;
+
if (info->ChipFamily >= CHIP_FAMILY_R600) {
surface = radeon_get_pixmap_surface(pixmap);
if (surface && psurf)
@@ -170,9 +174,6 @@ static PixmapPtr drmmode_create_bo_pixmap(ScrnInfoPtr pScrn,
}
}
- if (!radeon_set_pixmap_bo(pixmap, bo))
- goto fail;
-
if (!info->use_glamor ||
radeon_glamor_create_textured_pixmap(pixmap,
radeon_get_pixmap_private(pixmap)))