[PATCH] Avoid 10x7 heuristic, handled by server
Stefan Dirsch
sndirsch at suse.de
Tue Apr 26 12:01:47 UTC 2016
On Tue, Apr 26, 2016 at 11:57:27AM +0200, Mark Kettenis wrote:
> > From: Stefan Dirsch <sndirsch at suse.de>
> > Date: Tue, 26 Apr 2016 11:45:15 +0200
> >
> > From: Frederic Crozat <fcrozat at suse.com>
> >
> > Remove the 10x7 heuristic, since the server has equivalent code now.
> > Instead, disable "acceleration" under qemu, since taking the hypercall
> > trap is really quite expensive and you're better off doing noaccel.
> > (Fedora)
>
> Same comment (about magic numbers) applies here.
>
> A #define for the PCI subvendor is probably self-documenting.
Thanks. Fixed this by trying to keep it independant from the first patch,
which also uses QEMU subvendor ID. Resent a few minutes ago.
Stefan
> > ---
> > src/alp_driver.c | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/src/alp_driver.c b/src/alp_driver.c
> > index bd5e52f..da31321 100644
> > --- a/src/alp_driver.c
> > +++ b/src/alp_driver.c
> > @@ -774,6 +774,13 @@ AlpPreInit(ScrnInfoPtr pScrn, int flags)
> > else
> > xf86SetDDCproperties(pScrn,xf86PrintEDID(
> > xf86DoEDID_DDC2(XF86_SCRN_ARG(pScrn),pCir->I2CPtr1)));
> > +
> > +#ifdef XSERVER_LIBPCIACCESS
> > + if (!pScrn->monitor->DDC &&
> > + ((pCir->PciInfo->subvendor_id & 0xffff) == 0x1af4)) {
> > + pCir->NoAccel = TRUE;
> > + }
> > +#endif
> >
> > /* Probe the possible LCD display */
> > AlpProbeLCD(pScrn);
> > --
> > 2.6.2
Public Key available
------------------------------------------------------
Stefan Dirsch (Res. & Dev.) SUSE LINUX GmbH
Tel: 0911-740 53 0 Maxfeldstraße 5
FAX: 0911-740 53 479 D-90409 Nürnberg
http://www.suse.de Germany
---------------------------------------------------------------
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham
Norton, HRB 21284 (AG Nürnberg)
---------------------------------------------------------------
More information about the xorg-devel
mailing list