diff options
author | Russell King <rmk@armlinux.org.uk> | 2018-07-03 14:21:54 +0100 |
---|---|---|
committer | Russell King <rmk@armlinux.org.uk> | 2018-07-19 08:46:28 +0100 |
commit | 33c9d63e58e08205ea89a1d0d4875ff88e84aa1e (patch) | |
tree | ca24ed2c13493539e982abe7e47df06fa4f69742 | |
parent | 29bca2637ee3c6cfe3bf6454e36d0d10e72d7243 (diff) |
src: Xv: fix primary plane disable for rotated displays
Fix the CRTC box dimensions used for determining whether the primary
plane is fully obscured by the overlay, and therefore whether the
primary plane can be disabled.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r-- | src/armada_drm_xv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/armada_drm_xv.c b/src/armada_drm_xv.c index 656b381..87cc737 100644 --- a/src/armada_drm_xv.c +++ b/src/armada_drm_xv.c @@ -946,7 +946,8 @@ armada_drm_plane_Put(ScrnInfoPtr pScrn, struct drm_xv *drmxv, uint32_t fb_id, Bool obscured; box_init(&crtcbox, crtc->x, crtc->y, - crtc->mode.HDisplay, crtc->mode.VDisplay); + xf86ModeWidth(&crtc->mode, crtc->rotation), + xf86ModeHeight(&crtc->mode, crtc->rotation)); obscured = RegionContainsRect(clipBoxes, &crtcbox) == rgnIN; |