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@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-09-23 14:15:59 +01:00
parent e4850bbbcc
commit 3e276b96cb
2 changed files with 3 additions and 1 deletions

View File

@ -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"},

View File

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