I'm sure many if you have been waiting for this for a while and its finally here, 3D Hardware acceleration in Linux!
I just got openSUSE 12.1 working with GNOME 3 experience and wanted to share it here with you. This is experimental so I would recommend you make a new VM if you want to try it.
I started with opensuse 12.1 32bit liveCD
Don't forget to turn on 3D acceleration
VM > Settings > Display > Accelerate 3D graphics
Start the liveCD and Install opensuse under
Applications > System Tools > Live Installer
You need to fully update by running:
sudo zypper update
Reboot after updating
Install the following dependencies that are needed to build:
Getting the Latest Source Code
Mesa/Gallium master branch. This code is used to build libGL, and the direct rendering svga driver for libGL, vmwgfx_dri.so, and the X acceleration library libxatracker.so.x.x.x.
git clone git://anongit.freedesktop.org/git/mesa/mesa
VMware Linux guest kernel module. Note that this repo contains the complete DRM and TTM code. The vmware-specific driver is really only the files prefixed with vmwgfx.
git clone git://anongit.freedesktop.org/git/mesa/vmwgfx
libdrm, A user-space library that interfaces with drm. Most distros ship with this driver. Safest bet is really to replace the system one. Optionally you can point LIBDRM_CFLAGS and LIBDRM_LIBS to the libdrm-2.4.22 package in toolchain. But here, we replace:
git clone git://anongit.freedesktop.org/git/mesa/drm
xf86-video-vmware. The chainloading driver, vmware_drv.so, the legacy driver vmwlegacy_drv.so, and the vmwgfx driver vmwgfx_drv.so.
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-vmware
Building the Code
Build libdrm: If you're on a 32-bit system, you should skip the --libdir configure option. Note also the comment about toolchain libdrm above.
cd drm
./autogen.sh --prefix=/usr --enable-vmwgfx-experimental-api --libdir=/usr/lib64
make
sudo make install
cd ..
Build Mesa and the vmwgfx_dri.so driver, the vmwgfx_drv.so xorg driver, the X acceleration library libxatracker. The vmwgfx_dri.so is used by the OpenGL libraries during direct rendering, and by the Xorg server during accelerated indirect GL rendering. The libxatracker library is used exclusively by the X server to do render, copy and video acceleration: The following configure options doesn't build the EGL system. As before, if you're on a 32-bit system, you should skip the --libdir configure option.
cd mesa
./autogen.sh --prefix=/usr --libdir=/usr/lib64 --with-gallium-drivers=svga --with-dri-drivers= --enable-xa
gmake
sudo make install
cd ..
Build xf86-video-vmware: Now, once libxatracker is installed, we proceed with building and replacing the current Xorg driver. First check if your system is 32- or 64-bit. If you're building for a 32-bit system, you will not be needing the --libdir=/usr/lib64 option to autogen.
cd xf86-video-vmware
./autogen.sh --prefix=/usr --libdir=/usr/lib64
make
sudo make install
cd ..
Build vmwgfx kernel module. First make sure that any old version of this kernel module is removed from the system by issuing
sudo rm /lib/modules/`uname -r`/kernel/drivers/gpu/drm/vmwgfx/vmwgfx.ko*
then build
cd vmwgfx
make
sudo make install
sudo cp 00-vmwgfx.rules /etc/udev/rules.d
You need to enter root to run depmod and modprobe, sudo wont work
su
depmod -ae
Now try to load the kernel module by issuing:
modprobe vmwgfx
exit
Then type dmesg and look at the output. you should see:
If you run into any problems post the errors you get here and I will try to help but this is pretty new to me. In 64bit you probably need to get some different dependencies. I went though the guide again and made some adjustments so it should work now if you were having any problems.
made corrections to guide:
-added make to dependencies
-run gmake instead of make for mesa
-removed xorg-x11-devel from dependencies (it gets installed by another package anyways)
-added info about su for depmod and modprobe
Message was edited by: khogan made corrections to guide -added make to dependencies -run gmake instead of make for mesa -removed xorg-x11-devel from dependencies (it gets installed by another package anyways) -added info about su for depmod and modprobe