Commit 42eb2f72 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/msm: Stop consulting plane->fb/crtc

We want to get rid of plane->fb/crtc on atomic drivers. Stop
looking at them.

v2: Catch the plane->crtc case too

Cc: Rob Clark <robdclark@gmail.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/20180405151400.11326-1-ville.syrjala@linux.intel.comReviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 1add20eb
...@@ -201,7 +201,7 @@ static void blend_setup(struct drm_crtc *crtc) ...@@ -201,7 +201,7 @@ static void blend_setup(struct drm_crtc *crtc)
int idx = idxs[pipe_id]; int idx = idxs[pipe_id];
if (idx > 0) { if (idx > 0) {
const struct mdp_format *format = const struct mdp_format *format =
to_mdp_format(msm_framebuffer_format(plane->fb)); to_mdp_format(msm_framebuffer_format(plane->state->fb));
alpha[idx-1] = format->alpha_enable; alpha[idx-1] = format->alpha_enable;
} }
} }
......
...@@ -526,7 +526,7 @@ static void mdp5_plane_atomic_async_update(struct drm_plane *plane, ...@@ -526,7 +526,7 @@ static void mdp5_plane_atomic_async_update(struct drm_plane *plane,
if (plane_enabled(new_state)) { if (plane_enabled(new_state)) {
struct mdp5_ctl *ctl; struct mdp5_ctl *ctl;
struct mdp5_pipeline *pipeline = struct mdp5_pipeline *pipeline =
mdp5_crtc_get_pipeline(plane->crtc); mdp5_crtc_get_pipeline(new_state->crtc);
int ret; int ret;
ret = mdp5_plane_mode_set(plane, new_state->crtc, new_state->fb, ret = mdp5_plane_mode_set(plane, new_state->crtc, new_state->fb,
......
Markdown is supported
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