diff options
author | Adam Jackson <ajax@redhat.com> | 2019-03-06 12:45:11 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2019-03-06 12:45:11 -0500 |
commit | 634dae745cf71c257554b4c18bde7710cd1716e8 (patch) | |
tree | 630d1c10649b3d5e29dcd911b7b44af5c7d73b97 | |
parent | 637c968d1a2fecfb25bd6d14e4fe285e3ceafc13 (diff) | |
download | xorg-driver-xf86-video-vesa-634dae745cf71c257554b4c18bde7710cd1716e8.tar.gz |
Try harder to avoid 24bpp
We're preferring depth 24 even if that means 24bpp. Newer servers don't
support 24bpp anymore, and even for old servers it's suboptimal. Change
the heuristic to only try 24bpp if the alternative is pseudocolor.
Fixes: xorg/driver/xf86-video-vesa#3
-rw-r--r-- | src/vesa.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -690,12 +690,14 @@ VESAPreInit(ScrnInfoPtr pScrn, int flags) V_MODETYPE_VBE); /* Preferred order for default depth selection. */ - if (depths & V_DEPTH_24) + if (depths & V_DEPTH_24 && (flags24 & Support32bppFb)) defaultDepth = 24; else if (depths & V_DEPTH_16) defaultDepth = 16; else if (depths & V_DEPTH_15) defaultDepth = 15; + else if (depths & V_DEPTH_24) + defaultDepth = 24; /* ew though */ else if (depths & V_DEPTH_8) defaultDepth = 8; else if (depths & V_DEPTH_4) |