summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2009-08-20 16:48:58 -0400
committerKristian Høgsberg <krh@redhat.com>2009-08-20 17:15:13 -0400
commit6955fc7a74edf6034a292c31a304577c35e925e6 (patch)
tree5d1a030c0f3e0055ca4296553736fc66b2d81f15
parent465a4ab416b2e5ad53b96702720331a44fffa2fe (diff)
kms: Don't use fb offset when using shadow buffer
-rw-r--r--src/drmmode_display.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 4fb20d95..af5e56b9 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -366,8 +366,11 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
fb_id = drmmode->fb_id;
- if (drmmode_crtc->rotate_fb_id)
+ if (drmmode_crtc->rotate_fb_id) {
fb_id = drmmode_crtc->rotate_fb_id;
+ x = 0;
+ y = 0;
+ }
ret = drmModeSetCrtc(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
fb_id, x, y, output_ids, output_count, &kmode);
if (ret)