mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-06 15:08:03 +02:00
composite: Revert changes from adding support for BGRA picture formats.
They were aimed towards a since abandoned approach for making radeon KMS work
on big endian machines, and Aaron Plattner pointed out that they break the
Composite extension when the X server runs in 16bpp.
Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Tested-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit b375be9285)
This commit is contained in:
parent
398b5e01a7
commit
6d99a7de3f
1 changed files with 1 additions and 3 deletions
|
|
@ -238,7 +238,6 @@ static CompAlternateVisual altVisuals[] = {
|
||||||
{ 24, PICT_r8g8b8 },
|
{ 24, PICT_r8g8b8 },
|
||||||
#endif
|
#endif
|
||||||
{ 32, PICT_a8r8g8b8 },
|
{ 32, PICT_a8r8g8b8 },
|
||||||
{ 32, PICT_b8g8r8a8 },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int NUM_COMP_ALTERNATE_VISUALS = sizeof(altVisuals) /
|
static const int NUM_COMP_ALTERNATE_VISUALS = sizeof(altVisuals) /
|
||||||
|
|
@ -267,8 +266,7 @@ compAddAlternateVisual(ScreenPtr pScreen, CompScreenPtr cs,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
pPictFormat = PictureMatchFormat (pScreen, alt->depth, alt->format);
|
pPictFormat = PictureMatchFormat (pScreen, alt->depth, alt->format);
|
||||||
if (!pPictFormat ||
|
if (!pPictFormat)
|
||||||
pPictFormat->direct.red != pScreen->visuals[0].offsetRed)
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (ResizeVisualArray(pScreen, 1, depth) == FALSE) {
|
if (ResizeVisualArray(pScreen, 1, depth) == FALSE) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue