summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2009-09-18 02:43:52 +0200
committerDave Airlie <airlied@redhat.com>2009-09-18 06:34:05 +0200
commit9b1596af17dc9bf38c304f69fb253d6cfa73d136 (patch)
tree601f706bfe7635e76d9b476b621a3f430b7bc74a
parentdrm: fix drm_fb_helper handling of kernel crtcs (diff)
downloadlinux-9b1596af17dc9bf38c304f69fb253d6cfa73d136.tar.xz
linux-9b1596af17dc9bf38c304f69fb253d6cfa73d136.zip
drm: update crtc x/y when only fb changes
Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/drm_crtc_helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index ff447f175a56..fe8697447f32 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -869,6 +869,9 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
}
drm_helper_disable_unused_functions(dev);
} else if (fb_changed) {
+ set->crtc->x = set->x;
+ set->crtc->y = set->y;
+
old_fb = set->crtc->fb;
if (set->crtc->fb != set->fb)
set->crtc->fb = set->fb;