View source in Mesa

OpenSWR

A High Performance, Highly Scalable Software Rasterizer for OpenGL

For more information please send us an email.

Linux Build Instructions

On Linux, OpenSWR is built using the standard autoconf package as described here, with the addition of "swr" to the list of gallium drivers. Mesa requires some additional packages to build. Please follow the Mesa instructions and make sure you install them. One of the major Mesa requirements is LLVM, but with some additional flags required.

Below is a set of instructions for building both LLVM and Mesa, with OpenSWR support.


  mkdir llvm
  cd llvm
  tar xfJ /path/to/llvm-x.y.z.src.tar.xz
  mkdir build root
  cd build
  cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DBUILD_SHARED_LIBS=1 -DLLVM_ENABLE_RTTI=1 -DCMAKE_INSTALL_PREFIX=$PWD/../root  ../llvm-x.y.z.src
  make -j10
  make install
  cd ..
  export PATH=$PATH:$PWD/root/bin
  export LD_LIBRARY_PATH=$PWD/root/lib
  cd ..
  mkdir build
  cd build
  ../autogen.sh --disable-dri --disable-egl --disable-gbm --with-gallium-drivers=swrast,swr
  make -j10

Please feel free to modify the above instructions to fit your needs.