<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vi-toolkit.com/index.php?action=history&amp;feed=atom&amp;title=Building_Gallium3D</id>
	<title>Building Gallium3D - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vi-toolkit.com/index.php?action=history&amp;feed=atom&amp;title=Building_Gallium3D"/>
	<link rel="alternate" type="text/html" href="https://wiki.vi-toolkit.com/index.php?title=Building_Gallium3D&amp;action=history"/>
	<updated>2026-06-02T14:36:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.vi-toolkit.com/index.php?title=Building_Gallium3D&amp;diff=1533&amp;oldid=prev</id>
		<title>Wila: Copy from my internal wiki on how-to build Gallium3D (hopelessly out of date now, but perhaps it helps)</title>
		<link rel="alternate" type="text/html" href="https://wiki.vi-toolkit.com/index.php?title=Building_Gallium3D&amp;diff=1533&amp;oldid=prev"/>
		<updated>2021-11-02T09:55:58Z</updated>

		<summary type="html">&lt;p&gt;Copy from my internal wiki on how-to build Gallium3D (hopelessly out of date now, but perhaps it helps)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==== basic research ====&lt;br /&gt;
&lt;br /&gt;
setup Ubuntu Lucid (10.04) x64&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get mesa-utils&lt;br /&gt;
&lt;br /&gt;
 glxinfo | grep -i render&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:xorg-edgers/drivers-only &lt;br /&gt;
&lt;br /&gt;
Brian Paul at vmware&lt;br /&gt;
&lt;br /&gt;
Gallium llvmpipe is what we need and a kernel driver called  vmwgfx driver&lt;br /&gt;
===== vmwgfx =====&lt;br /&gt;
The vmwgfx kernel driver source can be found at: http://cgit.freedesktop.org/mesa/vmwgfx/commit/&lt;br /&gt;
direct download link sources:&lt;br /&gt;
http://cgit.freedesktop.org/mesa/vmwgfx/snapshot/vmwgfx-master.tar.gz&lt;br /&gt;
&lt;br /&gt;
In order to built the kernel module you&amp;#039;ll need to have the kernel headers installed.&lt;br /&gt;
No Configure step is needed.&lt;br /&gt;
Just run:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
The install doesn&amp;#039;t appear to copy the kernel module into the kernel driver tree for whatever reason, so copy by hand: &lt;br /&gt;
 cp vmwgfx.ko /lib/modules/2.6.33-020633-generic/kernel/drivers/gpu/drm/vmwgfx&lt;br /&gt;
(create the vmwgfx subfolder first)&lt;br /&gt;
&lt;br /&gt;
Doesn&amp;#039;t work either....&lt;br /&gt;
&lt;br /&gt;
Restarting X server &amp;gt; Right Alt + Print Screen + k&lt;br /&gt;
instead of Ctrl + Alt + Backspace&lt;br /&gt;
&lt;br /&gt;
===== Mesa =====&lt;br /&gt;
Gallium3D is part of the mesa drivers&lt;br /&gt;
The mesa drivers can be found at: http://cgit.freedesktop.org/mesa/mesa/commit/&lt;br /&gt;
and a direct download link for the source:&lt;br /&gt;
&lt;br /&gt;
http://cgit.freedesktop.org/mesa/mesa/snapshot/mesa-master.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://www.khattam.info/2010/02/06/installing-kernel-2-6-33-to-lucid-lynx-ubuntu-10-04-without-compiling/&lt;br /&gt;
&lt;br /&gt;
http://www.x.org/wiki/radeonBuildHowTo&lt;br /&gt;
&lt;br /&gt;
 # cd xf86-video-radeonhd/ # ./autogen.sh --prefix=/usr # make # make install&lt;br /&gt;
&lt;br /&gt;
This should install the RadeonHD driver for you. Please note that it might be nontrivial to completely uninstall the driver now.&lt;br /&gt;
&lt;br /&gt;
Also note that you can also drop off the --prefix=/usr part so the driver will be installed to /usr/local. You should at this point find out which path your X downloads its modules from. The next will prepend module search directory under /usr/local before the one which in many computers is the default X.org module path. Not that this can cause your X not to start if main module path is changed for some reason so don&amp;#039;t forget this setting&amp;#039;s existence. The second path needs to be the real X.org module path.&lt;br /&gt;
 File: /etc/X11/xorg.conf&lt;br /&gt;
 Section &amp;quot;Files&amp;quot;&lt;br /&gt;
   ModulePath &amp;quot;/usr/local/lib/xorg/modules,/usr/lib/xorg/modules&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
==== mesa build requirements ====&lt;br /&gt;
 sudo apt-get install build-essentials automake autoconf xserver-xorg-dev libdrm-dev x11proto-gl-dev libxfixes-dev x11proto-fixes-dev&lt;br /&gt;
 mesa-common-dev libosmesa-dev&lt;br /&gt;
 libxext-dev&lt;br /&gt;
 libxdamage-dev&lt;br /&gt;
 libxxf86vm-dev&lt;br /&gt;
 expat libexpat1-dev&lt;br /&gt;
 libxt-dev&lt;br /&gt;
 libxmu-dev&lt;br /&gt;
 libxi-dev&lt;br /&gt;
 llvm-dev&lt;br /&gt;
&lt;br /&gt;
 ./autogen.sh --enable-gallium-llvm --prefix=/opt/xorg&lt;br /&gt;
 ./autogen.sh --enable-gallium-llvm --with-driver=xlib --prefix=/opt/xorg&lt;br /&gt;
 ./autogen.sh --with-driver=osmesa --prefix=/opt/xorg&lt;br /&gt;
&lt;br /&gt;
 ./autogen.sh --prefix=/opt/xorg&lt;br /&gt;
&lt;br /&gt;
Now without gallium-llvm (this is the only one that compiles OK)&lt;br /&gt;
 ./autogen.sh --with-driver=xlib --prefix=/opt/xorg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== External links ====&lt;br /&gt;
&lt;br /&gt;
[http://www.phoronix.com/scan.php?page=article&amp;amp;item=gallium3d_llvmpipe&amp;amp;num=1 LLVMpipe: OpenGL With Gallium3D on Your CPU]&lt;br /&gt;
&lt;br /&gt;
[http://www.phoronix.com/scan.php?page=news_item&amp;amp;px=ODA1OA Gallium3D&amp;#039;s LLVMpipe Software Rasterizer Is Kicking]&lt;br /&gt;
&lt;br /&gt;
[http://www.phoronix.com/scan.php?page=news_item&amp;amp;px=Nzc4Ng VMware Goes For Mainline Inclusion Of Its DRM]&lt;br /&gt;
&lt;br /&gt;
[http://www.phoronix.com/scan.php?page=news_item&amp;amp;px=ODIxMw LLVMpipe Doesn&amp;#039;t Yet Like The GNOME Shell]&lt;br /&gt;
&lt;br /&gt;
http://vmware-svga.sourceforge.net/&lt;/div&gt;</summary>
		<author><name>Wila</name></author>
	</entry>
</feed>