[Intel-gfx] [PATCH xf86-video-intel 4/4] sna/video/textured: Disable textured Xv for depth 8

Ville Syrjala ville.syrjala at linux.intel.com
Mon Oct 22 13:59:29 UTC 2018


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

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 at linux.intel.com>
---
 src/sna/sna_video_textured.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c
index dd38d4d4e3e7..115cbea42c24 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");
-- 
2.18.1



More information about the Intel-gfx mailing list