[PATCH xserver 1/7] glamor: Make Xv extension initialize at depth 30.

Mario Kleiner mario.kleiner.de at gmail.com
Tue Feb 20 04:06:28 UTC 2018


Support x-screens of depth 30, so init doesn't fail.

Signed-off-by: Mario Kleiner <mario.kleiner.de at gmail.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
 hw/xfree86/glamor_egl/glamor_xf86_xv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/xfree86/glamor_egl/glamor_xf86_xv.c b/hw/xfree86/glamor_egl/glamor_xf86_xv.c
index 8535fa0..5f8bb8f 100644
--- a/hw/xfree86/glamor_egl/glamor_xf86_xv.c
+++ b/hw/xfree86/glamor_egl/glamor_xf86_xv.c
@@ -44,10 +44,10 @@
 #include <X11/extensions/Xv.h>
 #include "fourcc.h"
 
-#define NUM_FORMATS 3
+#define NUM_FORMATS 4
 
 static XF86VideoFormatRec Formats[NUM_FORMATS] = {
-    {15, TrueColor}, {16, TrueColor}, {24, TrueColor}
+    {15, TrueColor}, {16, TrueColor}, {24, TrueColor}, {30, TrueColor}
 };
 
 static void
-- 
2.7.4



More information about the xorg-devel mailing list