diff options
author | Stefan Dirsch <sndirsch@suse.de> | 2016-04-26 16:26:49 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-04-27 11:52:40 -0400 |
commit | 23da6073369ef6a99d1789de967e57359d1fe3b0 (patch) | |
tree | 20e8fc37c6b3a5d6cd00691f85569a08837c7437 | |
parent | 3a2e2d9ef8512c265e3fc3311a69120d03a888b3 (diff) |
Disable "acceleration" under qemu
Disable "acceleration" under qemu, since taking the hypercall trap
is really quite expensive and you're better off doing noaccel. Patch
is based on the one by "Adam Jackson" <ajax@redhat.com>
http://pkgs.fedoraproject.org/cgit/rpms/xorg-x11-drv-cirrus.git/tree/cirrus-1.2.0-qemu.patch?id=daccd1c8174623500eddfa297d8ea76a86d3c5d9
Reviewed-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | src/alp_driver.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/alp_driver.c b/src/alp_driver.c index bd5e52f..ba55247 100644 --- a/src/alp_driver.c +++ b/src/alp_driver.c @@ -774,6 +774,16 @@ AlpPreInit(ScrnInfoPtr pScrn, int flags) else xf86SetDDCproperties(pScrn,xf86PrintEDID( xf86DoEDID_DDC2(XF86_SCRN_ARG(pScrn),pCir->I2CPtr1))); + +#ifdef XSERVER_LIBPCIACCESS + #ifndef PCI_CHIP_QEMU + #define PCI_CHIP_QEMU 0x1af4 + #endif + if (!pScrn->monitor->DDC && + ((pCir->PciInfo->subvendor_id & 0xffff) == PCI_CHIP_QEMU)) { + pCir->NoAccel = TRUE; + } +#endif /* Probe the possible LCD display */ AlpProbeLCD(pScrn); |