modesetting: set the crtc x,y after the mode base change
authorDave Airlie <airlied@redhat.com>
Mon, 10 Nov 2008 05:35:16 +0000 (15:35 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 10 Nov 2008 05:35:16 +0000 (15:35 +1000)
linux-core/drm_crtc_helper.c

index 776a98e..58163e5 100644 (file)
@@ -683,6 +683,8 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
                if (set->crtc->fb != set->fb)
                        set->crtc->fb = set->fb;
                crtc_funcs->mode_set_base(set->crtc, set->x, set->y);
+               set->crtc->x = set->x;
+               set->crtc->y = set->y;
        }
 
        kfree(save_encoders);