From: José Fonseca Date: Thu, 29 May 2014 19:02:31 +0000 (+0100) Subject: docs: Document how to replace Windows built-in OpenGL software rasterizer with llvmpipe. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76bf4bd3c567760d02529952a3aa37c048712d09;p=mesa.git docs: Document how to replace Windows built-in OpenGL software rasterizer with llvmpipe. Just happened to stumble across this registry key while debugging something else. This technique is much neater than trying to override opengl32.dll. Also a few minors cleanups. --- diff --git a/docs/llvmpipe.html b/docs/llvmpipe.html index 74f0c67d8b5..291527be8d4 100644 --- a/docs/llvmpipe.html +++ b/docs/llvmpipe.html @@ -43,11 +43,7 @@ It's the fastest software rasterizer for Mesa.

  • -

    LLVM: version 2.9 recommended; 2.6 or later required.

    -

    NOTE: LLVM 2.8 and earlier will not work on systems that support the - Intel AVX extensions (e.g. Sandybridge). LLVM's code generator will - fail when trying to emit AVX instructions. This was fixed in LLVM 2.9. -

    +

    LLVM: version 3.4 recommended; 3.1 or later required.

    For Linux, on a recent Debian based distribution do:

    @@ -101,13 +97,15 @@ but the rest of these instructions assume that scons is used. For Windows the procedure is similar except the target:
    -  scons build=debug libgl-gdi
    +  scons platform=windows build=debug libgl-gdi
     

    Using

    -On Linux, building will create a drop-in alternative for libGL.so into +

    Linux

    + +

    On Linux, building will create a drop-in alternative for libGL.so into

       build/foo/gallium/targets/libgl-xlib/libGL.so
    @@ -117,15 +115,45 @@ or
       lib/gallium/libGL.so
     
    -To use it set the LD_LIBRARY_PATH environment variable accordingly. +

    To use it set the LD_LIBRARY_PATH environment variable accordingly.

    + +

    For performance evaluation pass build=release to scons, and use the corresponding +lib directory without the "-debug" suffix.

    + -For performance evaluation pass debug=no to scons, and use the corresponding -lib directory without the "-debug" suffix. +

    Windows

    -On Windows, building will create a drop-in alternative for opengl32.dll. To use -it put it in the same directory as the application. It can also be used by +

    +On Windows, building will create +build/windows-x86-debug/gallium/targets/libgl-gdi/opengl32.dll +which is a drop-in alternative for system's opengl32.dll. To use +it put it in the same directory as your application. It can also be used by replacing the native ICD driver, but it's quite an advanced usage, so if you need to ask, don't even try it. +

    + +

    +There is however an easy way to replace the OpenGL software renderer that comes +with Microsoft Windows 7 (or later) with llvmpipe (that is, on systems without +any OpenGL drivers): +

    + +

    Profiling