From 5ca3ac1a90af177eb111a965e9b4dd8a27cc58fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Mon, 28 Oct 2019 14:58:42 +0200 Subject: sna/video/overlay: Declare support for depth 8 and 30 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add 8 and 30 to the list of supported screen depths. The colorkey massaging will be handled by the kernel so we don't have to worry about it unlike with the sprite colorkey uapi. Signed-off-by: Ville Syrjälä Signed-off-by: Chris Wilson --- src/sna/sna_video_overlay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sna/sna_video_overlay.c b/src/sna/sna_video_overlay.c index 7c7bb483..07964871 100644 --- a/src/sna/sna_video_overlay.c +++ b/src/sna/sna_video_overlay.c @@ -57,9 +57,11 @@ static Atom xvGamma0, xvGamma1, xvGamma2, xvGamma3, xvGamma4, xvGamma5; #define IMAGE_MAX_HEIGHT_LEGACY 1088 static XvFormatRec Formats[] = { + { .depth = 8, }, { .depth = 15, }, { .depth = 16, }, { .depth = 24, }, + { .depth = 30, }, }; static const XvAttributeRec Attributes[] = { -- cgit v1.2.1