summaryrefslogtreecommitdiff
path: root/src/radeon.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-04-12 18:18:43 +0900
committerMichel Dänzer <michel@daenzer.net>2016-05-12 18:52:50 +0900
commit040a7b80e1fcbaa93ac17f7113d696d9b853cf8a (patch)
treeda6ff385248a8204cb87933da093de5a3b380f41 /src/radeon.h
parent1181b9c582f10b6c523e4b2988e2ce87ecf3d367 (diff)
Explicitly set the fbcon pixmap pitch again
The kernel driver returns 0 as the pitch of the fbcon BO via the DRM_RADEON_GEM_GET_TILING ioctl, so we ended up using an incorrect pitch in some cases. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94901 Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon.h')
-rw-r--r--src/radeon.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/radeon.h b/src/radeon.h
index 011b66b6..37d5fb60 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -656,8 +656,6 @@ uint32_t radeon_get_pixmap_tiling(PixmapPtr pPix);
static inline void radeon_set_pixmap_bo(PixmapPtr pPix, struct radeon_bo *bo)
{
- ScreenPtr pScreen = pPix->drawable.pScreen;
-
#ifdef USE_GLAMOR
RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(pPix->drawable.pScreen));
@@ -693,9 +691,7 @@ static inline void radeon_set_pixmap_bo(PixmapPtr pPix, struct radeon_bo *bo)
radeon_bo_ref(bo);
priv->bo = bo;
- if (radeon_bo_get_tiling(bo, &priv->tiling_flags, &pitch) == 0 &&
- pitch != pPix->devKind)
- pScreen->ModifyPixmapHeader(pPix, -1, -1, -1, -1, pitch, NULL);
+ radeon_bo_get_tiling(bo, &priv->tiling_flags, &pitch);
}
out:
radeon_set_pixmap_private(pPix, priv);
@@ -714,9 +710,7 @@ out:
radeon_bo_ref(bo);
driver_priv->bo = bo;
- if (radeon_bo_get_tiling(bo, &driver_priv->tiling_flags, &pitch) == 0 &&
- pitch != pPix->devKind)
- pScreen->ModifyPixmapHeader(pPix, -1, -1, -1, -1, pitch, NULL);
+ radeon_bo_get_tiling(bo, &driver_priv->tiling_flags, &pitch);
}
}
}