From 427064b57c52c8881c7a64d9c9e21411e79e644b Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Wed, 26 Oct 2011 16:33:30 +0200 Subject: vmwgfx: Fix crtc position of transformed fb The fb allocated for transformed data always matches the scanout region, so set the crtc origin to (0,0) Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz --- vmwgfx/vmwgfx_crtc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vmwgfx/vmwgfx_crtc.c b/vmwgfx/vmwgfx_crtc.c index 8f8ced4..13ca7e5 100644 --- a/vmwgfx/vmwgfx_crtc.c +++ b/vmwgfx/vmwgfx_crtc.c @@ -180,9 +180,11 @@ crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode, if (!xf86CrtcRotate(crtc)) return FALSE; - if (crtc->transform_in_use && crtc->rotatedData) + if (crtc->transform_in_use && crtc->rotatedData) { + x = 0; + y = 0; pixmap = (PixmapPtr) crtc->rotatedData; - else + } else pixmap = pScreen->GetScreenPixmap(pScreen); if (crtcp->box.pixmap != pixmap) { -- cgit v1.2.3