drm/atmel-hlcdc: use helper to get crtc state
PATCH 2/2 drm/atmel-hlcdc: use helper to get crtc state
DRM core provide helper to access crtc state.
Signed-off-by Andrzej Hajda <[email protected]>
--- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +1 -1
@@ -558,7 +558,7 @@ static int atmel_hlcdc_plane_atomic_check(struct drm_plane *p,if (!state->base.crtc || !fb)return 0 ; - crtc_state = s->state->crtc_states[drm_crtc_index (s->crtc)]; + crtc_state =drm_atomic_get_existing_crtc_state (s->state, s->crtc); mode = &crtc_state->adjusted_mode; state->src_x = s->src_x;
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 3 lines · On Tue, 15 Mar 2016 13:46:28 +0100 Andrzej Hajda <[email protected]> wrote:
DRM core provide helper to access crtc state.
Signed-off-by Andrzej Hajda <[email protected]>
Acked-by Boris Brezillon <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +1
-1@@ -558,7 +558,7 @@ static int atmel_hlcdc_plane_atomic_check(struct drm_plane *p,if (!state->base.crtc || !fb)return 0 ; - crtc_state = s->state->crtc_states[drm_crtc_index (s->crtc)]; + crtc_state =drm_atomic_get_existing_crtc_state (s->state, s->crtc); mode = &crtc_state->adjusted_mode; state->src_x = s->src_x;
Signature · 7 lines
Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 8 lines · Boris Brezillon
Quoted 3 lines · On Tue, 15 Mar 2016 13:46:28 +0100 Andrzej Hajda <[email protected]> wrote:
DRM core provide helper to access crtc state.
Signed-off-by Andrzej Hajda <[email protected]>Acked-by Boris Brezillon <[email protected]>
Want me to pull this in through drm-misc?
-Daniel
Quoted 29 lines
Quoted 18 lines
--- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +1
-1@@ -558,7 +558,7 @@ static int atmel_hlcdc_plane_atomic_check(struct drm_plane *p,if (!state->base.crtc || !fb)return 0 ; - crtc_state = s->state->crtc_states[drm_crtc_index (s->crtc)]; + crtc_state =drm_atomic_get_existing_crtc_state (s->state, s->crtc); mode = &crtc_state->adjusted_mode; state->src_x = s->src_x;Signature · 7 lines
Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · On Tue, 15 Mar 2016 14:07:46 +0100 Daniel Vetter <[email protected]> wrote:
Quoted 8 lines · Boris Brezillon
Quoted 3 lines · On Tue, 15 Mar 2016 13:46:28 +0100 Andrzej Hajda <[email protected]> wrote:
DRM core provide helper to access crtc state.
Signed-off-by Andrzej Hajda <[email protected]>Acked-by Boris Brezillon <[email protected]>Want me to pull this in through drm-misc?
Yes please.
Signature · 7 lines
Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Boris Brezillon
Quoted 6 lines · On Tue, 15 Mar 2016 14:07:46 +0100 Daniel Vetter <[email protected]> wrote:
Quoted 5 lines · Boris Brezillon
Quoted 2 lines · On Tue, 15 Mar 2016 13:46:28 +0100 Andrzej Hajda <[email protected]> wrote:
DRM core provide helper to access crtc state.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Andrzej Hajda <[email protected]>Acked-by Boris Brezillon <[email protected]>Want me to pull this in through drm-misc?
Yes please.
Both patches from Andrzej applied to drm-misc.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel