summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-10-22 16:59:27 +0300
committerChris Wilson <chris@chris-wilson.co.uk>2018-10-22 17:31:07 +0100
commitbf4f85a8ba414b66ea98c11b76cb2f1830f9bf26 (patch)
tree85eeecdb47bde04fdd0bd2abde5ea1a4f40af95a /src
parent35f84efd4a9b448fc00c6328d2d5460a3beb8f75 (diff)
sna/video/sprite: Allow sprite Xv with depth 8 and depth 30
With the colorkey setup fixed the sprite Xv adaptor works just fine with depth 30. With depth 8 there is one remaining problem with the usage of the LUT for gamma vs. C8, but that is purely a kernel issue. Let's allow both depth 8 and depth 30 with the sprite Xv adaptor. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_video_sprite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_video_sprite.c b/src/sna/sna_video_sprite.c
index bb7b200b..d3d722d4 100644
--- a/src/sna/sna_video_sprite.c
+++ b/src/sna/sna_video_sprite.c
@@ -72,7 +72,7 @@ struct local_mode_set_plane {
static Atom xvColorKey, xvAlwaysOnTop, xvSyncToVblank, xvColorspace;
-static XvFormatRec formats[] = { {15}, {16}, {24} };
+static XvFormatRec formats[] = { {8}, {15}, {16}, {24}, {30} };
static const XvImageRec images[] = { XVIMAGE_YUY2, XVIMAGE_UYVY,
XVMC_RGB888 };
static const XvImageRec images_rgb565[] = { XVIMAGE_YUY2, XVIMAGE_UYVY,