提交 3749f463 编写于 作者: V Ville Syrjälä 提交者: Daniel Vetter

drm/i915: Reduce clutter by using the local plane pointer

No need to go dig throguh intel_crtc->base.cursor when we already have
the same thing as 'plane' local variable.
Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: NMatt Roper <matthew.d.roper@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 c5da5145
...@@ -12372,7 +12372,7 @@ intel_check_cursor_plane(struct drm_plane *plane, ...@@ -12372,7 +12372,7 @@ intel_check_cursor_plane(struct drm_plane *plane,
finish: finish:
if (intel_crtc->active) { if (intel_crtc->active) {
if (intel_crtc->base.cursor->state->crtc_w != state->base.crtc_w) if (plane->state->crtc_w != state->base.crtc_w)
intel_crtc->atomic.update_wm = true; intel_crtc->atomic.update_wm = true;
intel_crtc->atomic.fb_bits |= intel_crtc->atomic.fb_bits |=
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册