diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-10-22 16:59:29 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-10-22 17:31:07 +0100 |
commit | 0932a6b37ba6d5c9e916a1cb6ab89c3205b81a0c (patch) | |
tree | 21cc6637f2760b4c189ab774a24f9d5ca354dd26 | |
parent | f09051dfabe3ccaab6b68f1bf324a84c2f2258a3 (diff) |
sna/video/textured: Disable textured Xv for depth 8
We can't output color index formats with the render engine,
so let's disable the textured Xv adaptor for depth 8.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_video_textured.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c index dd38d4d4..115cbea4 100644 --- a/src/sna/sna_video_textured.c +++ b/src/sna/sna_video_textured.c @@ -354,6 +354,12 @@ void sna_video_textured_setup(struct sna *sna, ScreenPtr screen) struct sna_video *video; int nports, i; + if (sna->scrn->depth == 8) { + xf86DrvMsg(sna->scrn->scrnIndex, X_INFO, + "Textured video not supported in 8bpp mode\n"); + return; + } + if (!sna->render.video) { xf86DrvMsg(sna->scrn->scrnIndex, X_INFO, "Textured video not supported on this hardware or backend\n"); |