]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/gpu/drm/drm_atomic_helper.c
drm: Consolidate plane arrays in drm_atomic_state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 1 Jun 2016 22:06:33 +0000 (00:06 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Jun 2016 15:20:25 +0000 (17:20 +0200)
commitb8b5342b699b9b3d1b3455861a68b96424146959
treeed4b33b83374d67bd8f6f1822e8d179815db44a3
parent63e83c1dba5490de84c2d558a2425730db7fb134
drm: Consolidate plane arrays in drm_atomic_state

It's kinda pointless to have 2 separate mallocs for these. And when we
add more per-plane state in the future it's even more pointless.

Right now there's no such thing planned, but both Gustavo's per-crtc
fence patches, and some nonblocking commit helpers I'm playing around
with will add more per-crtc stuff. It makes sense to also consolidate
planes, just for consistency.

In the future we can use this to store a pointer to the preceeding
state, making an atomic update entirely free-standing. This will be
needed to be able to queue them up with a depth > 1.

Cc: Gustavo Padovan <gustavo@padovan.org>
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/1464818821-5736-11-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/i915/intel_atomic.c
include/drm/drm_atomic.h
include/drm/drm_crtc.h