Add 4 missing 10bpc picture formats to the server format list.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
This commit is contained in:
Pierre-Loup A. Griffais 2009-07-27 20:58:44 +02:00 committed by Aaron Plattner
parent 36e24a6d93
commit a3e50b0574
2 changed files with 16 additions and 0 deletions

View File

@ -325,6 +325,17 @@ PictureCreateDefaultFormats (ScreenPtr pScreen, int *nformatp)
nformats = addFormat (formats, nformats, nformats = addFormat (formats, nformats,
PICT_b8g8r8x8, pDepth->depth); PICT_b8g8r8x8, pDepth->depth);
} }
if (pDepth->depth >= 30)
{
nformats = addFormat (formats, nformats,
PICT_a2r10g10b10, pDepth->depth);
nformats = addFormat (formats, nformats,
PICT_x2r10g10b10, pDepth->depth);
nformats = addFormat (formats, nformats,
PICT_a2b10g10r10, pDepth->depth);
nformats = addFormat (formats, nformats,
PICT_x2b10g10r10, pDepth->depth);
}
break; break;
} }
} }

View File

@ -68,6 +68,11 @@ typedef struct _Picture *PicturePtr;
/* 32bpp formats */ /* 32bpp formats */
typedef enum _PictFormatShort { typedef enum _PictFormatShort {
PICT_a2r10g10b10 = PIXMAN_a2r10g10b10,
PICT_x2r10g10b10 = PIXMAN_x2r10g10b10,
PICT_a2b10g10r10 = PIXMAN_a2b10g10r10,
PICT_x2b10g10r10 = PIXMAN_x2b10g10r10,
PICT_a8r8g8b8 = PIXMAN_a8r8g8b8, PICT_a8r8g8b8 = PIXMAN_a8r8g8b8,
PICT_x8r8g8b8 = PIXMAN_x8r8g8b8, PICT_x8r8g8b8 = PIXMAN_x8r8g8b8,
PICT_a8b8g8r8 = PIXMAN_a8b8g8r8, PICT_a8b8g8r8 = PIXMAN_a8b8g8r8,