[ECFT] drm/dri/mesa/xorg-server update [Part 1]

George Liaskos geo.liaskos at gmail.com
Sat Mar 12 16:21:44 UTC 2011


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));

It works but it doesn't support dri1,
http://cgit.freedesktop.org/mesa/mesa/commit/?id=48c0ff14240044935049a1114edfc69bc6682b95

Log: http://pastebin.com/W1iiDvWX


More information about the freebsd-ports mailing list