Skip to contentSkip to conversation

drm/cirrus: flip default to 32bpp

PATCH In review Gerd Hoffmann 3 participants 5 messages Jul 6, 2018 – Aug 8, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/cirrus: flip default to 32bpp

cirrus can handle 1024x768 (and slightly higher) with 24bpp depth. cirrus can handle up to 800x600 with 32bpp.

The problem with 24bpp is that it is a rather unusual depth these days, cirrus is pretty much the only relevant device still using that, and it is a endless source of issues. Wayland doesn't support it at all. Bugs in Xorg keep showing up.

So using 32bpp by default is the better choice IMO, even if it comes with the drawback that the resolution is 800x600 only. But hey, better a working 800x600 display than a broken 1024x768 display ...

---
 drivers/gpu/drm/cirrus/cirrus_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/cirrus/cirrus_drv.c +2 -2
index 69c4e352dd..e9e5a92a36 100644
@@ -16,11 +16,11 @@
 #include "cirrus_drv.h"
 
 int cirrus_modeset = -1;
-int cirrus_bpp = 24;
+int cirrus_bpp = 32;
 
 MODULE_PARM_DESC(modeset, "Disable/Enable modesetting");
 module_param_named(modeset, cirrus_modeset, int, 0400);
-MODULE_PARM_DESC(bpp, "Max bits-per-pixel (default:24)");
+MODULE_PARM_DESC(bpp, "Max bits-per-pixel (default:32)");
 module_param_named(bpp, cirrus_bpp, int, 0400);
 
 /*
Signature · 6 lines
2.9.3

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 2 lines · Gerd Hoffmann

cirrus can handle 1024x768 (and slightly higher) with 24bpp depth. cirrus can handle up to 800x600 with 32bpp.

16bpp is maybe a better choice? Nobody's using cirrus because they care about color fidelity and it'll use less CPU to update. There's precedent here, mgag200 defaults to 16bpp on sufficiently memory- impaired devices.

- ajax
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 8 lines · Adam Jackson
Quoted 2 lines · Gerd Hoffmann

cirrus can handle 1024x768 (and slightly higher) with 24bpp depth. cirrus can handle up to 800x600 with 32bpp.

16bpp is maybe a better choice? Nobody's using cirrus because they care about color fidelity and it'll use less CPU to update. There's precedent here, mgag200 defaults to 16bpp on sufficiently memory- impaired devices.

Yeah nouveau does the same fallback to 16bpp if there's not enough vram. So do a bunch of other drivers.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#3 lore raw
In reply to Adam Jackson
Quoted 8 lines · Adam Jackson
Quoted 2 lines · Gerd Hoffmann

cirrus can handle 1024x768 (and slightly higher) with 24bpp depth. cirrus can handle up to 800x600 with 32bpp.

16bpp is maybe a better choice? Nobody's using cirrus because they care about color fidelity and it'll use less CPU to update. There's precedent here, mgag200 defaults to 16bpp on sufficiently memory- impaired devices.

Yeah nouveau does the same fallback to 16bpp if there's not enough vram. So do a bunch of other drivers.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw
Quoted 5 lines · Daniel Vetter
Quoted 4 lines · Adam Jackson
Quoted 2 lines · Gerd Hoffmann

cirrus can handle 1024x768 (and slightly higher) with 24bpp depth. cirrus can handle up to 800x600 with 32bpp.

Quoted 7 lines
Quoted 4 lines

16bpp is maybe a better choice? Nobody's using cirrus because they care about color fidelity and it'll use less CPU to update. There's precedent here, mgag200 defaults to 16bpp on sufficiently memory- impaired devices.

Yeah nouveau does the same fallback to 16bpp if there's not enough vram. So do a bunch of other drivers.

Makes sense. But appearently 16bpp support bitrotted over time, when just flipping the default the driver Oopses at init time. I'll look into it.

cheers,
Gerd