mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 05:50:06 +01:00
xfree86: xf86SetDepthBpp needs to respect the driver's depth24flags
When setting the depth to 24, leave bpp unset so the logic to pick
a supported value is used instead of ignoring the driver's preference
and forcing 32 bpp.
(cherry picked from commit 991c88b754)
This commit is contained in:
parent
8e1ee573b3
commit
bfe5a13499
1 changed files with 0 additions and 5 deletions
|
|
@ -448,10 +448,6 @@ xf86AddPixFormat(ScrnInfoPtr pScrn, int depth, int bpp, int pad)
|
|||
#define GLOBAL_DEFAULT_DEPTH 24
|
||||
#endif
|
||||
|
||||
#ifndef GLOBAL_DEFAULT_FBBPP
|
||||
#define GLOBAL_DEFAULT_FBBPP 32
|
||||
#endif
|
||||
|
||||
_X_EXPORT Bool
|
||||
xf86SetDepthBpp(ScrnInfoPtr scrp, int depth, int dummy, int fbbpp,
|
||||
int depth24flags)
|
||||
|
|
@ -529,7 +525,6 @@ xf86SetDepthBpp(ScrnInfoPtr scrp, int depth, int dummy, int fbbpp,
|
|||
if (depth > 0)
|
||||
scrp->depth = depth;
|
||||
} else {
|
||||
scrp->bitsPerPixel = GLOBAL_DEFAULT_FBBPP;
|
||||
scrp->depth = GLOBAL_DEFAULT_DEPTH;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue