drm/vmwgfx: Plane atomic state
authorSinclair Yeh <syeh@vmware.com>
Thu, 23 Mar 2017 18:36:05 +0000 (11:36 -0700)
committerSinclair Yeh <syeh@vmware.com>
Fri, 31 Mar 2017 18:12:55 +0000 (11:12 -0700)
commitcc5ec459de323fe32514d5f47a4d00460ee30f7b
tree6d716f263c829457b9ed2618fe99599aa3492df3
parent9c2542a41f559452d570b96239a81038c49becfc
drm/vmwgfx: Plane atomic state

Add plane state handling functions.

We have to keep track of a few plane states so we cannot use the
DRM helper for this.

Created vmw_plane_state along with functions to reset, duplicate,
and destroty it.

v2
* Removed cursor clean up special case

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c