[Spice-devel] [PATCH 3/3] qxl: disable composite/a8 surfaces under KMS for now

Dave Airlie airlied at gmail.com
Thu Jul 4 21:49:24 PDT 2013


From: Dave Airlie <airlied at redhat.com>

this just disables composite and a8 surfaces under KMS
there are still some issues when enabled.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/qxl_uxa.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/qxl_uxa.c b/src/qxl_uxa.c
index 875d663..47371e4 100644
--- a/src/qxl_uxa.c
+++ b/src/qxl_uxa.c
@@ -222,11 +222,15 @@ qxl_has_composite (qxl_screen_t *qxl)
 #ifdef XF86DRM_MODE
     if (qxl->kms_enabled) {
 	static Bool result, checked;
+#if 0 /* KMS Composite support seems broken - needs better hw support */
 	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
-- 
1.8.3.1



More information about the Spice-devel mailing list