mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-20 15:20:43 +02:00
Xfbdev: Wire up Atari iplan2p4 and iplan2p8 support
Add support for Atari-style interleaved bitplanes, with 2 bytes interleave and 4 or 8 bits per pixel. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
95a3c7536c
commit
672bc5bb38
1 changed files with 18 additions and 1 deletions
|
|
@ -439,7 +439,24 @@ fbdevSetShadow(ScreenPtr pScreen)
|
|||
break;
|
||||
|
||||
case FB_TYPE_INTERLEAVED_PLANES:
|
||||
FatalError("Interleaved bitplanes are not yet supported\n");
|
||||
if (priv->fix.type_aux == 2) {
|
||||
switch (priv->var.bits_per_pixel) {
|
||||
case 4:
|
||||
update = shadowUpdateIplan2p4;
|
||||
break;
|
||||
|
||||
case 8:
|
||||
update = shadowUpdateIplan2p8;
|
||||
break;
|
||||
|
||||
default:
|
||||
FatalError("Atari interleaved bitplanes with bpp %u are not yet supported\n",
|
||||
priv->var.bits_per_pixel);
|
||||
}
|
||||
} else {
|
||||
FatalError("Interleaved bitplanes with interleave %u are not yet supported\n",
|
||||
priv->fix.type_aux);
|
||||
}
|
||||
break;
|
||||
|
||||
case FB_TYPE_TEXT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue