mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-11 05:58:05 +02:00
render: Don't add b8g8r8x8 format for depth 24.
The components are required to be packed in the bottom of the pixel, so this
format can't fit in depth 24.
Also fix up a comment for the addition of BGRA formats.
(cherry picked from commit ce1fe8ddb4)
This commit is contained in:
parent
ac1490b651
commit
8867c60782
1 changed files with 1 additions and 4 deletions
|
|
@ -223,9 +223,8 @@ PictureCreateDefaultFormats (ScreenPtr pScreen, int *nformatp)
|
|||
b = Ones (pVisual->blueMask);
|
||||
type = PICT_TYPE_OTHER;
|
||||
/*
|
||||
* Current rendering code supports only two direct formats,
|
||||
* Current rendering code supports only three direct formats,
|
||||
* fields must be packed together at the bottom of the pixel
|
||||
* and must be either RGB or BGR
|
||||
*/
|
||||
if (pVisual->offsetBlue == 0 &&
|
||||
pVisual->offsetGreen == b &&
|
||||
|
|
@ -322,8 +321,6 @@ PictureCreateDefaultFormats (ScreenPtr pScreen, int *nformatp)
|
|||
PICT_x8r8g8b8, pDepth->depth);
|
||||
nformats = addFormat (formats, nformats,
|
||||
PICT_x8b8g8r8, pDepth->depth);
|
||||
nformats = addFormat (formats, nformats,
|
||||
PICT_b8g8r8x8, pDepth->depth);
|
||||
}
|
||||
if (pDepth->depth >= 30)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue