glamor: Make Xv extension initialize at depth 30.

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

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Antoine Martin <antoine@nagafix.co.uk>
This commit is contained in:
Mario Kleiner 2018-02-27 03:05:26 +01:00 committed by Adam Jackson
parent efe9e3e9ff
commit 9ab5d91c6c
1 changed files with 2 additions and 2 deletions

View File

@ -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