summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-12-08 09:39:26 -0500
committerAdam Jackson <ajax@redhat.com>2016-12-08 13:36:18 -0500
commitc6f5096252923b1a344291e8045a15045e98dd27 (patch)
tree9693c54bf66ab3c5c6dbde4c2f1a2c6a1f6d357a
parent27f85fc523102f89c3fc1546ae500816ccbffc8a (diff)
alpine: Default to 16bpp
24bpp support is going away, so since we can't do 32bpp and these cards have basically no VRAM to begin with, drop to 16bpp. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/alp_driver.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/alp_driver.c b/src/alp_driver.c
index 39802de..60c5edd 100644
--- a/src/alp_driver.c
+++ b/src/alp_driver.c
@@ -454,7 +454,6 @@ AlpPreInit(ScrnInfoPtr pScrn, int flags)
vgaHWPtr hwp;
MessageType from, from1;
int i;
- int defaultdepth;
int depth_flags;
ClockRangePtr clockRanges;
char *s;
@@ -541,22 +540,11 @@ AlpPreInit(ScrnInfoPtr pScrn, int flags)
SupportConvert32to24 |
PreferConvert32to24;
- /* use 16bpp in virt and on XenSource */
- #ifndef PCI_CHIP_QEMU
- #define PCI_CHIP_QEMU 0x1af4
- #endif
- #define PCI_CHIP_XENSOURCE 0x5853
- if (((pCir->PciInfo->subvendor_id & 0xffff) == PCI_CHIP_QEMU) ||
- ((pCir->PciInfo->subvendor_id & 0xffff) == PCI_CHIP_XENSOURCE))
- defaultdepth = 16;
- else
- defaultdepth = 24;
-
/*
* The first thing we should figure out is the depth, bpp, etc.
* We support both 24bpp and 32bpp layouts, so indicate that.
*/
- if (!xf86SetDepthBpp(pScrn, 0, 0, defaultdepth, depth_flags)) {
+ if (!xf86SetDepthBpp(pScrn, 0, 0, 16, depth_flags)) {
return FALSE;
} else {
/* Check that the returned depth is one we support */