xf86-video-intel: src/sna/sna_video_overlay.c src/sna/sna_video_sprite.c

Chris Wilson ickle at kemper.freedesktop.org
Mon Sep 23 06:17:26 PDT 2013


 src/sna/sna_video_overlay.c |    3 ++-
 src/sna/sna_video_sprite.c  |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 3e276b96cb57050a9aa8ebfb210e3c4b7b2fe137
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Sep 23 14:15:59 2013 +0100

    sna/video: Add always-on-top to the list of Xv attributes
    
    Otherwise it goes unknown, and not reported by xvinfo.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_video_overlay.c b/src/sna/sna_video_overlay.c
index 766e048..6f27734 100644
--- a/src/sna/sna_video_overlay.c
+++ b/src/sna/sna_video_overlay.c
@@ -60,11 +60,12 @@ static XvFormatRec Formats[] = { {15}, {16}, {24} };
 
 static const XvAttributeRec Attributes[] = {
 	{XvSettable | XvGettable, 0, (1 << 24) - 1, (char *)"XV_COLORKEY"},
+	{XvSettable | XvGettable, 0, 1, (char *)"XV_ALWAYS_ON_TOP"},
 	{XvSettable | XvGettable, -128, 127, (char *)"XV_BRIGHTNESS"},
 	{XvSettable | XvGettable, 0, 255, (char *)"XV_CONTRAST"},
 	{XvSettable | XvGettable, 0, 1023, (char *)"XV_SATURATION"},
 	{XvSettable | XvGettable, -1, 1, (char *)"XV_PIPE"},
-#define NUM_ATTRIBUTES 5
+#define NUM_ATTRIBUTES 6
 
 	{XvSettable | XvGettable, 0, 0xffffff, (char *)"XV_GAMMA0"},
 	{XvSettable | XvGettable, 0, 0xffffff, (char *)"XV_GAMMA1"},
diff --git a/src/sna/sna_video_sprite.c b/src/sna/sna_video_sprite.c
index 43679a6..43cb5c4 100644
--- a/src/sna/sna_video_sprite.c
+++ b/src/sna/sna_video_sprite.c
@@ -54,6 +54,7 @@ static XvFormatRec formats[] = { {15}, {16}, {24} };
 static const XvImageRec images[] = { XVIMAGE_YUY2, XVIMAGE_UYVY, XVMC_RGB888, XVMC_RGB565 };
 static const XvAttributeRec attribs[] = {
 	{ XvSettable | XvGettable, 0, 0xffffff, (char *)"XV_COLORKEY" },
+	{ XvSettable | XvGettable, 0, 1, (char *)"XV_ALWAYS_ON_TOP" },
 };
 
 static int sna_video_sprite_stop(ClientPtr client,


More information about the xorg-commit mailing list