[Spice-devel] [qxl 2/5] Disable composite/a8 surfaces for KMS

Christophe Fergeau cfergeau at redhat.com
Fri Oct 28 10:18:22 UTC 2016


From: Dave Airlie <airlied at redhat.com>

This should help with bug #974198
---
 src/qxl_uxa.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/qxl_uxa.c b/src/qxl_uxa.c
index 694db27..fa7d85f 100644
--- a/src/qxl_uxa.c
+++ b/src/qxl_uxa.c
@@ -221,12 +221,16 @@ qxl_has_composite (qxl_screen_t *qxl)
 {
 #ifdef XF86DRM_MODE
     if (qxl->kms_enabled) {
+#if 0 /* KMS Composite support seems broken - needs better hw support */
 	static Bool result, checked;
 	if (!checked) {
 	    result = qxl_kms_check_cap(qxl, SPICE_DISPLAY_CAP_COMPOSITE);
 	    checked = TRUE;
 	}
 	return result;
+#else
+	return FALSE;
+#endif
     }
 #endif
 #ifndef XSPICE
@@ -244,12 +248,16 @@ qxl_has_a8_surfaces (qxl_screen_t *qxl)
 {
 #ifdef XF86DRM_MODE
     if (qxl->kms_enabled) {
+#if 0 /* KMS Composite support seems broken - needs better hw support */
         static Bool result, checked;
 	if (!checked) {
             result = qxl_kms_check_cap(qxl, SPICE_DISPLAY_CAP_A8_SURFACE);
 	    checked = TRUE;
 	}
 	return result;
+#else
+	return FALSE;
+#endif
     }
 #endif
 #ifndef XSPICE
-- 
2.9.3



More information about the Spice-devel mailing list