提交 9b1596af 编写于 作者: B Ben Skeggs 提交者: Dave Airlie

drm: update crtc x/y when only fb changes

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册