]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Add and connect plane helper functions
authorSinclair Yeh <syeh@vmware.com>
Thu, 23 Mar 2017 21:18:32 +0000 (14:18 -0700)
committerSinclair Yeh <syeh@vmware.com>
Fri, 31 Mar 2017 20:37:03 +0000 (13:37 -0700)
commit5ad63b19a88058b8c74e2a1b11aa2487b5b7de02
treec81a5a4b61edb5017d0aa1b3c79f102c271f98e7
parent0372f65bf6b1314bf784fb2ddd368732c22dd1a1
drm/vmwgfx: Add and connect plane helper functions

Refactor previous FB and cursor plane update code into their
atomic counterparts: check, update, prepare, cleanup, and disable.

These helpers won't be called until we flip on the atomic support
flag or set drm_crtc_funcs->set_config to using the atomic
helper.

v2:
* Removed unnecessary pinning of cursor surface
* Added a few function headers

v3:
* Set clip region equal to the destination region
* Fixed surface pinning policy
* Enable SVGA mode in vmw_sou_primary_plane_prepare_fb

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
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