~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to docs/llvmpipe.html

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
<h1>Requirements</h1>
24
24
 
25
 
<dl>
26
 
<dt>An x86 or amd64 processor.  64-bit mode is preferred.</dt>
27
 
<dd>
 
25
<ul>
 
26
<li>
 
27
         <p>An x86 or amd64 processor; 64-bit mode recommended.</p
28
28
   <p>
29
 
   Support for sse2 is strongly encouraged.  Support for ssse3, and sse4.1 will
30
 
   yield the most efficient code.  The less features the CPU has the more
31
 
   likely is that you ran into underperforming, buggy, or incomplete code.  
 
29
   Support for SSE2 is strongly encouraged.  Support for SSSE3 and SSE4.1 will
 
30
   yield the most efficient code.  The fewer features the CPU has the more
 
31
   likely is that you run into underperforming, buggy, or incomplete code.  
32
32
   </p>
33
33
   <p>
34
34
   See /proc/cpuinfo to know what your CPU supports.
35
35
   </p>
36
 
</dd>
37
 
<dt>LLVM. Version 2.8 recommended. 2.6 or later required.</dt>
38
 
<dd>
39
 
   <p>
 
36
</li>
 
37
<li>
 
38
         <p>LLVM: version 2.9 recommended; 2.6 or later required.</p>
40
39
   <b>NOTE</b>: LLVM 2.8 and earlier will not work on systems that support the
41
40
   Intel AVX extensions (e.g. Sandybridge).  LLVM's code generator will
42
41
   fail when trying to emit AVX instructions.  This was fixed in LLVM 2.9.
54
53
</pre>
55
54
 
56
55
   <p>
57
 
   For Windows download pre-built MSVC 9.0 or MinGW binaries from
58
 
   http://people.freedesktop.org/~jrfonseca/llvm/ and set the LLVM environment
59
 
   variable to the extracted path.
60
 
   </p>
61
 
 
62
 
   <p>
63
 
   For MSVC there are two set of binaries: llvm-x.x-msvc32mt.7z and
64
 
   llvm-x.x-msvc32mtd.7z .
65
 
   </p>
66
 
 
67
 
   <p>
68
 
   You have to set the LLVM=/path/to/llvm-x.x-msvc32mtd env var when passing
69
 
   debug=yes to scons, and LLVM=/path/to/llvm-x.x-msvc32mt when building with
70
 
   debug=no. This is necessary as LLVM builds as static library so the chosen
71
 
   MS CRT must match.
72
 
   </p>
73
 
</dd>
74
 
 
75
 
<dt>scons (optional)</dt>
76
 
</dl>
 
56
         For Windows you will need to build LLVM from source with MSVC or MINGW
 
57
         (either natively or through cross compilers) and CMake, and set the LLVM
 
58
         environment variable to the directory you installed it to.
 
59
 
 
60
   LLVM will be statically linked, so when building on MSVC it needs to be
 
61
   built with a matching CRT as Mesa, and you'll need to pass
 
62
   -DLLVM_USE_CRT_RELEASE=MTd for debug and checked builds,
 
63
   -DLLVM_USE_CRT_RELEASE=MTd for profile and release builds.
 
64
 
 
65
   You can build only the x86 target by passing -DLLVM_TARGETS_TO_BUILD=X86
 
66
   to cmake.
 
67
   </p>
 
68
</li>
 
69
 
 
70
<li>
 
71
   <p>scons (optional)</p>
 
72
</li>
 
73
</ul>
 
74
 
77
75
 
78
76
 
79
77
 
93
91
 
94
92
but the rest of these instructions assume that scons is used.
95
93
 
96
 
For windows is everything the except except the winsys:
 
94
For Windows the procedure is similar except the target:
97
95
 
98
96
<pre>
99
97
  scons build=debug libgl-gdi