From 76bf4bd3c567760d02529952a3aa37c048712d09 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Jos=C3=A9=20Fonseca?=
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
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. +
+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): +
+ +copy build/windows-x86-debug/gallium/targets/libgl-gdi/opengl32.dll to C:\Windows\SysWOW64\mesadrv.dll
load this registry settings:
+REGEDIT4 + +; http://technet.microsoft.com/en-us/library/cc749368.aspx +; http://www.msfn.org/board/topic/143241-portable-windows-7-build-from-winpe-30/page-5#entry942596 +[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOGL] +"DLL"="mesadrv.dll" +"DriverVersion"=dword:00000001 +"Flags"=dword:00000001 +"Version"=dword:00000002 ++