Commit 4fbe6360 authored by Dave Airlie's avatar Dave Airlie Committed by Christophe Fergeau

Disable composite/a8 surfaces for KMS

This should help with bug #974198
parent 0daf59bd
...@@ -221,12 +221,16 @@ qxl_has_composite (qxl_screen_t *qxl) ...@@ -221,12 +221,16 @@ qxl_has_composite (qxl_screen_t *qxl)
{ {
#ifdef XF86DRM_MODE #ifdef XF86DRM_MODE
if (qxl->kms_enabled) { if (qxl->kms_enabled) {
#if 0 /* KMS Composite support seems broken - needs better hw support */
static Bool result, checked; static Bool result, checked;
if (!checked) { if (!checked) {
result = qxl_kms_check_cap(qxl, SPICE_DISPLAY_CAP_COMPOSITE); result = qxl_kms_check_cap(qxl, SPICE_DISPLAY_CAP_COMPOSITE);
checked = TRUE; checked = TRUE;
} }
return result; return result;
#else
return FALSE;
#endif
} }
#endif #endif
#ifndef XSPICE #ifndef XSPICE
...@@ -244,12 +248,16 @@ qxl_has_a8_surfaces (qxl_screen_t *qxl) ...@@ -244,12 +248,16 @@ qxl_has_a8_surfaces (qxl_screen_t *qxl)
{ {
#ifdef XF86DRM_MODE #ifdef XF86DRM_MODE
if (qxl->kms_enabled) { if (qxl->kms_enabled) {
#if 0 /* KMS Composite support seems broken - needs better hw support */
static Bool result, checked; static Bool result, checked;
if (!checked) { if (!checked) {
result = qxl_kms_check_cap(qxl, SPICE_DISPLAY_CAP_A8_SURFACE); result = qxl_kms_check_cap(qxl, SPICE_DISPLAY_CAP_A8_SURFACE);
checked = TRUE; checked = TRUE;
} }
return result; return result;
#else
return FALSE;
#endif
} }
#endif #endif
#ifndef XSPICE #ifndef XSPICE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment