Commit 9b1596af authored by Ben Skeggs's avatar Ben Skeggs Committed by Dave Airlie
Browse files

drm: update crtc x/y when only fb changes


Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent e87b2c42
...@@ -869,6 +869,9 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set) ...@@ -869,6 +869,9 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
} }
drm_helper_disable_unused_functions(dev); drm_helper_disable_unused_functions(dev);
} else if (fb_changed) { } else if (fb_changed) {
set->crtc->x = set->x;
set->crtc->y = set->y;
old_fb = set->crtc->fb; old_fb = set->crtc->fb;
if (set->crtc->fb != set->fb) if (set->crtc->fb != set->fb)
set->crtc->fb = set->fb; set->crtc->fb = set->fb;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment