]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/atomic: Add drm_atomic_crtc_state_for_each_plane_state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Jun 2016 14:21:44 +0000 (16:21 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Jun 2016 14:59:05 +0000 (16:59 +0200)
commit2f196b7c4b82eeff3574eb2999e78add33ef4361
treee6559bd5fcc1bb317aabfebdb1de7db2bab136e1
parent2e7a5701c9b2ee47089677ed5fbbc397b3bf3dec
drm/atomic: Add drm_atomic_crtc_state_for_each_plane_state

... and use it in msm&vc4. Again just want to encapsulate
drm_atomic_state internals a bit.

The const threading is a bit awkward in vc4 since C sucks, but I still
think it's worth to enforce this. Eventually I want to make all the
obj->state pointers const too, but that's a lot more work ...

v2: Provide safe macro to wrap up the unsafe helper better, suggested
by Maarten.

v3: Fixup subject (Maarten) and spelling fixes (Eric Engestrom).

Cc: Eric Anholt <eric@anholt.net>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1464877304-4213-1-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_plane.c
include/drm/drm_atomic.h
include/drm/drm_atomic_helper.h