IT lexicon › Infra & Ops › cfb and mfb (X11)

cfb and mfb (X11)

Infra & Ops På svenska → Updated: 2026-10-11

The sample server's software routines for drawing into the framebuffer, one for colour and one for monochrome, and the reason the X server contained the same code compiled four times.

MIT's sample server drew nearly everything with the CPU, straight into display memory. mfb, the monochrome frame buffer code, handled the one-bit screens that were standard on 1980s workstations, and cfb, the colour frame buffer, the 8-bit colour displays that followed. A new DDX for a new display could get going with little code of its own. When 16, 24 and 32 bits per pixel arrived, cfb was recompiled with a different value for the PSZ macro into cfb16, cfb24 and cfb32: four near-identical copies of the same routines in a single server.

Keith Packard replaced them around 2000 with fb, a single layer that handles every pixel depth. Both cfb and mfb were removed from the X.Org server in the late 2000s, and fb remains as the fallback when no accelerator wants to draw.

← Back to the lexicon