summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2009-08-20 20:48:58 (GMT)
committerKristian Høgsberg <krh@redhat.com>2009-08-20 21:15:13 (GMT)
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 4fb20d9..af5e56b 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)