aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vc4/vc4_plane.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_plane.c')
-rw-r--r--drivers/gpu/drm/vc4/vc4_plane.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c
index 9dc3fcbd290b..c6635f23918a 100644
--- a/drivers/gpu/drm/vc4/vc4_plane.c
+++ b/drivers/gpu/drm/vc4/vc4_plane.c
@@ -807,7 +807,7 @@ void vc4_plane_async_set_fb(struct drm_plane *plane, struct drm_framebuffer *fb)
807static void vc4_plane_atomic_async_update(struct drm_plane *plane, 807static void vc4_plane_atomic_async_update(struct drm_plane *plane,
808 struct drm_plane_state *state) 808 struct drm_plane_state *state)
809{ 809{
810 struct vc4_plane_state *vc4_state = to_vc4_plane_state(plane->state); 810 struct vc4_plane_state *vc4_state, *new_vc4_state;
811 811
812 if (plane->state->fb != state->fb) { 812 if (plane->state->fb != state->fb) {
813 vc4_plane_async_set_fb(plane, state->fb); 813 vc4_plane_async_set_fb(plane, state->fb);
@@ -828,7 +828,18 @@ static void vc4_plane_atomic_async_update(struct drm_plane *plane,
828 plane->state->src_y = state->src_y; 828 plane->state->src_y = state->src_y;
829 829
830 /* Update the display list based on the new crtc_x/y. */ 830 /* Update the display list based on the new crtc_x/y. */
831 vc4_plane_atomic_check(plane, plane->state); 831 vc4_plane_atomic_check(plane, state);
832
833 new_vc4_state = to_vc4_plane_state(state);
834 vc4_state = to_vc4_plane_state(plane->state);
835
836 /* Update the current vc4_state pos0, pos2 and ptr0 dlist entries. */
837 vc4_state->dlist[vc4_state->pos0_offset] =
838 new_vc4_state->dlist[vc4_state->pos0_offset];
839 vc4_state->dlist[vc4_state->pos2_offset] =
840 new_vc4_state->dlist[vc4_state->pos2_offset];
841 vc4_state->dlist[vc4_state->ptr0_offset] =
842 new_vc4_state->dlist[vc4_state->ptr0_offset];
832 843
833 /* Note that we can't just call vc4_plane_write_dlist() 844 /* Note that we can't just call vc4_plane_write_dlist()
834 * because that would smash the context data that the HVS is 845 * because that would smash the context data that the HVS is