drm/ast: Add primary plane

Like the original mode-setting code, the primary plane supports XRGB888,
RGB565 and C8. The plane itself only pins BOs and sets the base address
and scanline offset. The mode-setting code will be located in the CRTC's
atomic helpers.

v2:
	* don't set plane call-back functions to NULL explicitly
	* define plane format array in global scope

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191107083404.6852-7-tzimmermann@suse.de
This commit is contained in:
Thomas Zimmermann
2019-11-07 09:34:01 +01:00
parent 259d14a76a
commit a6ff807b71
2 changed files with 89 additions and 2 deletions

View File

@@ -121,6 +121,8 @@ struct ast_private {
unsigned int next_index;
} cursor;
struct drm_plane primary_plane;
bool support_wide_screen;
enum {
ast_use_p2a,