summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86Config.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2014-02-28 13:19:00 -0500
committerAdam Jackson <ajax@redhat.com>2017-03-17 15:14:38 -0400
commite33be78e2ab63abc84aa0baddff90bcefa9c183a (patch)
treec11e4d890de48c8fd2b3bd0ae328d98e85848f56 /hw/xfree86/common/xf86Config.c
parent83c4297d2c4fd501a9d36bc0cb7d357a8d22394c (diff)
xfree86: Remove 24bpp pixmap format support (v2)
There's really no reason to pretend to support this, apps hate it, all we're doing is giving people a way to injure themselves. It doesn't work anyway with any Radeon, any NVIDIA chip, or any Intel chip since i810. Rip out all the logic for handling 24bpp pixmaps and framebuffers, and silently ignore the old options that would ask for it. The cirrus alpine driver has been updated to default to 16bpp, and both it and the i810 driver can now use the 32->24 conversion code in shadow if they want. All other drivers support 32bpp. Configurations that explicitly request 24bpp in order to fit in VRAM will be broken now though. v2: Fix command line options to silently ignore 24bpp rather than fail Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'hw/xfree86/common/xf86Config.c')
-rw-r--r--hw/xfree86/common/xf86Config.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
index 89861e0a7..49b898da1 100644
--- a/hw/xfree86/common/xf86Config.c
+++ b/hw/xfree86/common/xf86Config.c
@@ -628,7 +628,6 @@ typedef enum {
FLAG_DPMS_STANDBYTIME,
FLAG_DPMS_SUSPENDTIME,
FLAG_DPMS_OFFTIME,
- FLAG_PIXMAP,
FLAG_NOPM,
FLAG_XINERAMA,
FLAG_LOG,
@@ -674,8 +673,6 @@ static OptionInfoRec FlagOptions[] = {
{0}, FALSE},
{FLAG_DPMS_OFFTIME, "OffTime", OPTV_INTEGER,
{0}, FALSE},
- {FLAG_PIXMAP, "Pixmap", OPTV_INTEGER,
- {0}, FALSE},
{FLAG_NOPM, "NoPM", OPTV_BOOLEAN,
{0}, FALSE},
{FLAG_XINERAMA, "Xinerama", OPTV_BOOLEAN,
@@ -715,7 +712,6 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
{
XF86OptionPtr optp, tmp;
int i;
- Pix24Flags pix24 = Pix24DontCare;
Bool value;
MessageType from;
const char *s;
@@ -922,34 +918,6 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
i, MAX_TIME_IN_MIN);
#endif
- i = -1;
- xf86GetOptValInteger(FlagOptions, FLAG_PIXMAP, &i);
- switch (i) {
- case 24:
- pix24 = Pix24Use24;
- break;
- case 32:
- pix24 = Pix24Use32;
- break;
- case -1:
- break;
- default:
- ErrorF("Pixmap option's value (%d) must be 24 or 32\n", i);
- break;
- }
- if (xf86Pix24 != Pix24DontCare) {
- xf86Info.pixmap24 = xf86Pix24;
- xf86Info.pix24From = X_CMDLINE;
- }
- else if (pix24 != Pix24DontCare) {
- xf86Info.pixmap24 = pix24;
- xf86Info.pix24From = X_CONFIG;
- }
- else {
- xf86Info.pixmap24 = Pix24DontCare;
- xf86Info.pix24From = X_DEFAULT;
- }
-
#ifdef PANORAMIX
from = X_DEFAULT;
if (!noPanoramiXExtension)