From 6520293e1e1f57bafbcf99592e766f810ce3ad2d Mon Sep 17 00:00:00 2001 From: Søren Sandmann Pedersen Date: Thu, 20 Sep 2012 16:26:36 -0400 Subject: Make the checks for composite and a8 return FALSE for Xspice They depend on the PCI revision which is not available for Xspice. --- src/qxl_driver.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 531c761..f52fec6 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -1385,17 +1385,27 @@ can_accelerate_picture (PicturePtr pict) static Bool qxl_has_composite (qxl_screen_t *qxl) { +#ifndef XSPICE return qxl->pci->revision >= 4 && QXL_HAS_CAP (qxl, SPICE_DISPLAY_CAP_COMPOSITE); +#else + /* FIXME */ + return FALSE; +#endif } static Bool qxl_has_a8_surfaces (qxl_screen_t *qxl) { +#ifndef XSPICE return qxl->pci->revision >= 4 && QXL_HAS_CAP (qxl, SPICE_DISPLAY_CAP_A8_SURFACE); +#else + /* FIXME */ + return FALSE; +#endif } static Bool -- cgit v1.2.3