Gentoo, Intel GMA3100, Xorg and DRI

After stuggling on and off for a week, I have finally managed to get DRI working with Xorg on Gentoo. I was never able to make any headway using the stable version of Xorg, Mesa, and the Intel drivers. I finally succeeded by upgrading to x11-base/xorg-x11-7.4, media-libs/mesa-7.2, and x11-drivers/xf86-video-intel-2.5.1.

In order to do this, I had to add the following entries in my /etc/portage/package.keywords:

~x11-base/xorg-x11-7.4
~x11-base/xorg-server-1.4.2
~x11-libs/libXrender-0.9.4
~media-libs/mesa-7.2
~x11-libs/xtrans-1.0.4
~x11-proto/renderproto-0.9.3
~x11-libs/libdrm-2.3.1
~x11-proto/xextproto-7.0.3
~x11-libs/libXext-1.0.4
~x11-proto/inputproto-1.4.4
~x11-libs/libX11-1.1.5
~x11-proto/xf86driproto-2.0.4
~x11-libs/libXxf86vm-1.0.2
~x11-apps/mesa-progs-7.1
~x11-drivers/xf86-video-intel-2.5.1
~x11-libs/libdrm-2.4.1
~x11-apps/x11perf-1.5
~x11-apps/xev-1.0.3
~x11-apps/mkfontdir-1.0.4
~x11-apps/xprop-1.0.4
~x11-libs/
libXau-1.0.4
~x11-libs/libXrandr-1.2.3
~media-fonts/font-xfree86-type1-1.0.1
~x11-libs/libpciaccess-0.10.3
~x11-apps/xkbcomp-1.0.5
~x11-apps/sessreg-1.0.4
~x11-apps/xset-1.0.4
~x11-apps/mkfontscale-1.0.5
~x11-libs/xtrans-1.2.2
~x11-apps/xdpyinfo-1.0.3
~x11-libs/libXinerama-1.0.3
~x11-libs/libXmu-1.0.4
~x11-apps/xrdb-1.0.5
~x11-libs/libFS-1.0.1
~x11-apps/xwininfo-1.0.4
~x11-apps/xauth-1.0.3
~x11-apps/luit-1.0.3
~x11-misc/util-macros-1.1.6-r1
~x11-misc/xinput-1.3.0
~x11-libs/libSM-1.1.0
~x11-libs/libXfont-1.3.3
~x11-libs/libXv-1.0.4
~x11-apps/xrandr-1.2.3
~x11-libs/libXScrnSaver-1.1.3
~x11-libs/libxkbfile-1.0.5
~x11-libs/libXft-2.1.13
~x11-base/xorg-server-1.5.2
~x11-apps/xwd-1.0.2
~x11-libs/pixman-0.12.0
~x11-proto/xproto-7.0.13
~x11-misc/xkeyboard-config-1.3
~x11-apps/rgb-1.0.3
~x11-apps/xinit-1.0.8-r3
~x11-proto/randrproto-1.2.2
~x11-drivers/xf86-input-keyboard-1.3.1
~x11-drivers/xf86-video-vesa-2.0.0
~x11-drivers/xf86-input-evdev-2.0.6
~x11-drivers/xf86-input-mouse-1.3.
0
~x11-drivers/xf86-input-joystick-1.3.2

I also had to disable the sse2 use flag on x11-libs/pixman by placing the following in my /etc/portage/package.use file.

x11-libs/pixman -sse2

After adding these entries, it was a simple of matter of running

emerge xorg-x11
emerge -1 `eix -I --only-names x11-drivers` #Rebuild drivers against new Xorg
emerge mesa #Rebuild mesa against new Xorg

and then copying the xorg.conf file generated by running

Xorg -configure

to /etc/X11/xorg.conf.