drm/atomic: Add new reverse iterator over all plane state (V2)
authorShirish S <Shirish.S@amd.com>
Wed, 7 Mar 2018 03:10:03 +0000 (08:40 +0530)
committerHarry Wentland <harry.wentland@amd.com>
Wed, 7 Mar 2018 20:34:59 +0000 (15:34 -0500)
commit55de2923847c3318459758931ff175996facce69
tree48862ec0a00bfea6d782c779ffe65ffc3baeac98
parent100bc0d9963b506d4f1f0936c1d8ed17d214ef30
drm/atomic: Add new reverse iterator over all plane state (V2)

Add reverse iterator for_each_oldnew_plane_in_state_reverse to
compliment the for_each_oldnew_plane_in_state way or reading plane
states.

The plane states are required to be read in reverse order for
amd drivers, cause the z order convention followed in linux is
opposite to how the planes are supposed to be presented to DC
engine, which is in common to both windows and linux.

V2: fix compile time errors due to -Werror flag.

Signed-off-by: Shirish S <shirish.s@amd.com>
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1520392203-6885-1-git-send-email-shirish.s@amd.com
include/drm/drm_atomic.h