[ECFT] drm/dri/mesa/xorg-server update [Part 1]
Gustau Pérez i Querol
gperez at entel.upc.edu
Sat Mar 12 23:03:55 UTC 2011
Al 12/03/2011 17:21, En/na George Liaskos ha escrit:
> I compiled the intel driver with the following patch:
>
> --- src/i830_video.c.orig 2011-03-12 18:00:01.000000000 +0200
> +++ src/i830_video.c 2011-03-12 17:59:08.000000000 +0200
> @@ -2164,7 +2164,7 @@
> static void
> i830_fill_colorkey (ScreenPtr pScreen, uint32_t key, RegionPtr clipboxes)
> {
> - DrawablePtr root =&WindowTable[pScreen->myNum]->drawable;
> + DrawablePtr root = pScreen->root->drawable.id;
> XID pval[2];
> BoxPtr pbox = REGION_RECTS(clipboxes);
> int i, nbox = REGION_NUM_RECTS(clipboxes);
> @@ -2176,7 +2176,7 @@
> gc = GetScratchGC(root->depth, pScreen);
> pval[0] = key;
> pval[1] = IncludeInferiors;
> - (void) ChangeGC(gc, GCForeground|GCSubwindowMode, pval);
> + dixChangeGC(NullClient, gc, GCForeground|GCSubwindowMode, NULL);
> ValidateGC(root, gc);
>
> rects = xalloc (nbox * sizeof(xRectangle));
Reports :
0.- For all the tests I made, I only recompiled xf86-{video|input}-*
and nvidia-driver.
1.- I did the same patch, and it kinda works with an Intel Q965,
however I did not know about dri. I had to disable AIGLX in the
ServerLayout section or the screen gets corrupted.
2.- I did a similar patch for xf86-video-intel29, but I have a
problem when starting xorg. It segfaults with something related to a
registered private key unknown. In the patch, the original code used
"dixRequestPrivate"
but I found somewhere that now the appropriate routine is
"dixRegisterPrivateKey"
however it fails. If you want, I can send the patches to the list.
3.- With an nvidia card (NVS135) it works fine.
Best regards,
Gustau
PGP KEY : http://www-entel.upc.edu/gus/gus.asc
Stop top-posting : http://ca.wikipedia.org/wiki/Top-posting
http://en.wikipedia.org/wiki/Posting_style
More information about the freebsd-x11
mailing list