View source in Mesa


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
  make -j10
  make install
  cd ..
  export PATH=$PATH:$PWD/root/bin
  export LD_LIBRARY_PATH=$PWD/root/lib
  cd ..
  mkdir build
  cd build
  ../ --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.