Xfbdev: Reject unsupported frame buffer types
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
cfd1057681
commit
0e808110df
|
@ -402,33 +402,58 @@ fbdevSetShadow(ScreenPtr pScreen)
|
||||||
|
|
||||||
window = fbdevWindowLinear;
|
window = fbdevWindowLinear;
|
||||||
update = 0;
|
update = 0;
|
||||||
if (scrpriv->randr)
|
switch (priv->fix.type) {
|
||||||
if (priv->var.bits_per_pixel == 16) {
|
case FB_TYPE_PACKED_PIXELS:
|
||||||
switch (scrpriv->randr) {
|
if (scrpriv->randr)
|
||||||
case RR_Rotate_90:
|
if (priv->var.bits_per_pixel == 16) {
|
||||||
if (useYX)
|
switch (scrpriv->randr) {
|
||||||
update = shadowUpdateRotate16_90YX;
|
case RR_Rotate_90:
|
||||||
else
|
if (useYX)
|
||||||
update = shadowUpdateRotate16_90;
|
update = shadowUpdateRotate16_90YX;
|
||||||
break;
|
else
|
||||||
case RR_Rotate_180:
|
update = shadowUpdateRotate16_90;
|
||||||
update = shadowUpdateRotate16_180;
|
break;
|
||||||
break;
|
case RR_Rotate_180:
|
||||||
case RR_Rotate_270:
|
update = shadowUpdateRotate16_180;
|
||||||
if (useYX)
|
break;
|
||||||
update = shadowUpdateRotate16_270YX;
|
case RR_Rotate_270:
|
||||||
else
|
if (useYX)
|
||||||
update = shadowUpdateRotate16_270;
|
update = shadowUpdateRotate16_270YX;
|
||||||
break;
|
else
|
||||||
default:
|
update = shadowUpdateRotate16_270;
|
||||||
update = shadowUpdateRotate16;
|
break;
|
||||||
break;
|
default:
|
||||||
|
update = shadowUpdateRotate16;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
|
update = shadowUpdateRotatePacked;
|
||||||
else
|
else
|
||||||
update = shadowUpdateRotatePacked;
|
update = shadowUpdatePacked;
|
||||||
else
|
break;
|
||||||
update = shadowUpdatePacked;
|
|
||||||
|
case FB_TYPE_PLANES:
|
||||||
|
FatalError("Bitplanes are not yet supported\n");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case FB_TYPE_INTERLEAVED_PLANES:
|
||||||
|
FatalError("Interleaved bitplanes are not yet supported\n");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case FB_TYPE_TEXT:
|
||||||
|
FatalError("Text frame buffers are not yet supported\n");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case FB_TYPE_VGA_PLANES:
|
||||||
|
FatalError("VGA planes are not yet supported\n");
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
FatalError("Unsupported frame buffer type %u\n", priv->fix.type);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return KdShadowSet(pScreen, scrpriv->randr, update, window);
|
return KdShadowSet(pScreen, scrpriv->randr, update, window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue