gallium/winsys/kms: Add support for multi-planes
authorLepton Wu <lepton@chromium.org>
Mon, 19 Mar 2018 22:01:31 +0000 (15:01 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Mar 2018 18:10:44 +0000 (18:10 +0000)
commita8b846bccd9eeb976b9f45a6c7a19cba4b8b9eef
tree464140d82e5cc64dcefa5de4e96ae53520396035
parentd891f28df9a4efeda47ee307e7b13147597e8863
gallium/winsys/kms: Add support for multi-planes

Add a new struct kms_sw_plane which delegate a plane and use it
in place of sw_displaytarget. Multiple planes share same underlying
kms_sw_displaytarget.

v2:
 - add more check for plane size (Tomasz)
v3:
 - split from larger patch (Emil)
v4:
 - no change from v3
v5:
 - remove mapped field (Tomasz)
v6:
 - remove change-id in commit message (Tomasz)
v7:
 - add revision history in commit message (Emil)

Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Lepton Wu <lepton@chromium.org>
src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c