diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2011-10-26 16:33:30 +0200 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2011-10-31 15:21:49 +0100 |
commit | 427064b57c52c8881c7a64d9c9e21411e79e644b (patch) | |
tree | 857e8ac65c65b2caef2d6a4e8fad3598a454f53c /vmwgfx/vmwgfx_crtc.c | |
parent | 55113dae7cbe99bfb69869831536ff34ed445c73 (diff) |
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 <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'vmwgfx/vmwgfx_crtc.c')
-rw-r--r-- | vmwgfx/vmwgfx_crtc.c | 6 |
1 files 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) { |