Ignore:
Timestamp:
05/31/2022 05:38:37 AM (2 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/soup3, xry111/xf86-video-removal
Children:
9dc1c31
Parents:
5a7d1382
Message:

Update to mesa-22.1.0.

This version of mesa eliminates drivers for very old graphics cards.
It also uses the crocus driver for some Intel graphics. It
has been tested for nvidia, intel, and amd graphics.

The instructions have been simplified to let the package determine
the appropriate drivers needed for the current system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/installing/mesa.xml

    r5a7d1382 rbee072a  
    77  <!ENTITY mesa-download-http "https://mesa.freedesktop.org/archive/mesa-&mesa-version;.tar.xz">
    88  <!ENTITY mesa-download-ftp  "ftp://ftp.freedesktop.org/pub/mesa/mesa-&mesa-version;.tar.xz">
    9   <!ENTITY mesa-md5sum        "689d32b071b10520a54d78267a2edcf7">
    10   <!ENTITY mesa-size          "16 MB">
    11   <!ENTITY mesa-buildsize     "674 MB (with docs, add 380 MB for tests)">
    12   <!ENTITY mesa-time          "3.5 SBU (Using parallelism=4; with docs, add 0.5 SBU for tests)">
     9  <!ENTITY mesa-md5sum        "d0342bd53a6c04dddd953f0a9cfa92cc">
     10  <!ENTITY mesa-size          "15 MB">
     11  <!ENTITY mesa-buildsize     "419 MB (with docs, add 375 MB for tests)">
     12  <!ENTITY mesa-time          "2.8 SBU (Using parallelism=4; with docs, add 0.5 SBU for tests)">
    1313]>
    1414
     
    8888        </para>
    8989      </listitem>
    90       <listitem>
    91         <para>
    92           Required patch (for systems with NVIDIA GPUs):
    93           <ulink url="&patch-root;/mesa-&mesa-version;-nouveau_fixes-1.patch"/>
    94         </para>
    95       </listitem>
    9690    </itemizedlist>
    9791
     
    112106      build <application>libva</application> first without EGL and GLX support,
    113107      install this package, and rebuild <application>libva</application>),
     108     
    114109      <xref linkend="libvdpau"/> (to build VDPAU drivers),
    115       <xref linkend="llvm"/> (required for Gallium3D, nouveau, r300, and radeonsi
     110     
     111      <xref linkend="llvm"/> (required for Gallium3D, nouveau, and radeonsi
    116112      drivers and for swrast, the software rasterizer which is sometimes referred
    117113      to as llvmpipe. See <ulink role="nodep"
    118114      url="https://docs.mesa3d.org/systems.html"/> for more information), and
     115     
    119116      <xref linkend="wayland-protocols"/> (required for
    120117        <xref role="nodep" linkend='plasma5-build'/>,
    121         <!-- <xref role="nodep" linkend='lxqt'/>, -->
    122         GNOME, and recommended for  <xref role="nodep" linkend='gtk3'/>)
     118        GNOME, and recommended for <xref role="nodep" linkend='gtk3'/>)
    123119    </para>
    124120
     
    138134      <ulink url="https://github.com/tizonia/tizonia-openmax-il/wiki/Tizonia-OpenMAX-IL/">
    139135      libtizonia</ulink>,  and
    140       <ulink url="https://www.vulkan.org/">libvulkan</ulink> (for the zink driver)
    141     </para>
    142 
     136      <ulink url="https://www.vulkan.org/">libvulkan</ulink>
     137    </para>
     138<!--
    143139    <note>
    144140      <para>
     
    151147      </para>
    152148    </note>
    153 
     149-->
    154150    <para condition="html" role="usernotes">User Notes:
    155151      <ulink url="&blfs-wiki;/mesalib"/>
     
    173169        freedreno is for qualcom hardware, libdrm will build for it on suitable
    174170        systems. VC4 is for the Broadcom VC4 used in the raspberry pi - ken -->
    175 
     171<!--
    176172    <note>
    177173      <para>
     
    193189      (you will need a freedesktop.org account to get to that page, you can
    194190      download the 0.9.1 release without an account from
    195      <ulink url="https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/0.9.1/virglrenderer-0.9.1.tar.bz2">virglrenderer-0.9.1</ulink>).
     191     <ulink url="https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/0.9.1/virglrenderer-0.9.1.tar.bz2">virglrenderer-0.9.1</ulink>).-->
     192
    196193<!-- If you wish to build all available gallium drivers,
    197194      use 'auto'. FIXME : does not build crocus in 21.2.1 -->
    198195
    199196      <!-- crocus was added to the default x86/x86_64 drivers for meson in the
    200       master branch on 2021-08-31, at some point it will appear in a stable release -->
    201     </para>
    202 
     197      master branch on 2021-08-31, at some point it will appear in a stable release
     198    </para>
     199-->
     200<!--
    203201    <para>
    204202      The (non-gallium) DRI drivers available in X86 are auto, <emphasis>or
     
    210208    <para>
    211209      The platforms ("window systems") available for X86 linux are x11, wayland,
    212      <!--drm,--> and surfaceless. By not specifying anything, the meson
     210     drm, and surfaceless. By not specifying anything, the meson
    213211      build-system will build for all these platforms if you have the
    214212      dependencies, identical to if you had specified '-Dplatforms=auto'.
     
    219217      below will cover most modern video cards and virtual machines.  For help in
    220218      selecting drivers see <ulink url="https://docs.mesa3d.org/systems.html"/>.
     219-->
    221220      <!-- these two don't seem to be mentioned in that mesa link -->
     221<!--
    222222      For intel drivers, specify crocus for i965 gen 4 through to haswell, iris
    223223      for broadwell and later.
     
    233233<screen><userinput>GALLIUM_DRV="crocus,i915,iris,nouveau,r600,radeonsi,svga,swrast,virgl"
    234234DRI_DRIVERS="i965,nouveau"</userinput></screen>
    235 
    236     <note>
    237       <para>
    238         If you are using a NVIDIA GPU in your system, a special patch has been
    239         created that allows for proper multi-threading in the Mesa driver. This
    240         fixes issues with multi-threaded Qt applications, as well as with
    241         starting some GNOME Applications. This patch is also essential if you
    242         plan to use KDE Plasma.
    243 
    244         Apply the patch using the following command:
    245       </para>
    246 
    247 <screen><userinput remap="pre">patch -Np1 -i ../mesa-&mesa-version;-nouveau_fixes-1.patch</userinput></screen>
    248     </note>
     235-->
    249236
    250237    <para>
     
    256243cd    build &amp;&amp;
    257244
    258 meson --prefix=$XORG_PREFIX          \
    259       --buildtype=release            \
    260       -Ddri-drivers=$DRI_DRIVERS     \
    261       -Dgallium-drivers=$GALLIUM_DRV \
    262       -Dgallium-nine=false           \
    263       -Dglx=dri                      \
    264       -Dvalgrind=disabled            \
    265       -Dlibunwind=disabled           \
    266       ..                             &amp;&amp;
    267 
    268 unset GALLIUM_DRV DRI_DRIVERS &amp;&amp;
     245meson --prefix=$XORG_PREFIX   \
     246      --buildtype=release     \
     247      -Dplatforms=x11,wayland \
     248      -Dgallium-drivers=auto  \
     249      -Dglx=dri               \
     250      -Dvalgrind=disabled     \
     251      -Dlibunwind=disabled    \
     252      ..                      &amp;&amp;
    269253
    270254ninja</userinput></screen>
     
    272256    <para>
    273257      If you built the tests (see 'Command Explanations'), to run them issue:
    274       <command>ninja test</command>. One test,
    275       <application>mesa: intel/anv_state_pool</application>, is known to fail.
     258      <command>ninja test</command>.
     259    </para>
    276260<!-- All tests passed for me for 21.2.4 [pierre]
    277       All 33 subtests tests in the mesa:compiler+glsl / glsl compiler warnings
    278       suite are known to fail.-->
    279     </para>
     261     All 33 subtests tests in the mesa:compiler+glsl / glsl compiler warnings
     262      suite are known to fail.
     263 
     264     For 22.1.0:
     265     Ok:                 74
     266     Expected Fail:      0
     267     Fail:               0
     268     Unexpected Pass:    0
     269     Skipped:            0
     270     Timeout:            0
     271-->
    280272
    281273    <para>
     
    306298      switch, build sizes can span into the 2GB range.
    307299    </para>
    308 
     300<!--
    309301    <para>
    310302      <parameter>-Ddri-drivers="..."</parameter>: This parameter
    311303      controls which (non-gallium) dri drivers should be built.
    312304    </para>
    313 
     305-->
    314306    <para>
    315307      <parameter>-Dgallium-drivers="..."</parameter>: This parameter
     
    317309    </para>
    318310
    319     <para>
    320       <parameter>-Dgallium-nine=false</parameter>: Prevents building
    321       support for (MS Windows) games designed for DX9. Set it to true if
    322       this support is desired.
    323     </para>
    324311<!--
    325312    <para>
     
    329316    </para>
    330317-->
    331 <!--
     318
    332319    <para>
    333320      <parameter>-Dplatforms="..."</parameter>: This parameter
    334       controls which platforms EGL will be built for. Available
    335       linux X86 platforms are drm, x11, wayland, and surfaceless.
    336     </para>
    337 -->
     321      controls which windowing systems will be supported. Available
     322      linux platforms are x11 and wayland.
     323    </para>
     324
     325    <para>
     326      <parameter>-Degl-native-platform="..."</parameter>: This parameter
     327      controls which Embedded Graphics Library support will be built. Available
     328      linux options are auto (default), x11, wayland, surfaceless, and drm.
     329    </para>
     330
    338331    <para>
    339332      <parameter>-Dvalgrind=disabled</parameter>: This parameter disables
     
    347340    </para>
    348341
    349 <!--
    350     <para>
    351       <parameter>- -enable-xa</parameter>: This switch enables building the
    352       XA X Acceleration API (Required for VMware 3D Driver).
    353     </para>
    354 
    355     <para>
    356       <parameter>- -enable-gbm</parameter>: This switch enables building the
    357       <application>Mesa</application> Graphics Buffer Manager library.
    358     </para>
    359     These two seem to be automatic in 19.0 - ken
    360 
    361     <para>
    362       <parameter>- -enable-glx-tls</parameter>: This switch enables TLS (Thread Local
    363       Storage) support in GLX.
    364     </para>
    365 -->
    366342    <para>
    367343      <option>-Dbuild-tests=true</option>: This option will cause the test code
    368       to be enabled. To run the tests, issue: <command>ninja test</command>.
     344      to be enabled.
    369345    </para>
    370346
    371347    <para>
    372348      <option>-Dvulkan-drivers=...</option>: This option allows choosing which
    373       Vulkan drivers are built. Since those drivers depend on the
    374       corresponding Gallium3D drivers, do not enable drivers that are not
    375       enabled in Gallium3D drivers. Furthermore, since BLFS does not use
    376       Vulkan, it is safe to leave the list of Vulkan drivers empty.
     349      Vulkan drivers are built.
     350      Since BLFS does not use
     351      Vulkan, it is safe to leave the list of Vulkan drivers empty. The default
     352      is auto.
    377353    </para>
    378354
     
    397373          libGLESv1_CM.so,
    398374          libGLESv2.so,
    399 <!--          libOSMesa.so,-->
    400375          libXvMCnouveau.so,
    401376          libXvMCr600.so,
     
    416391<!--          i830_dri.so,-->
    417392          i915_dri.so,
    418           i965_dri.so,
    419393          iris_dri.so,
    420394          kms_swrast_dri.so,
    421395          nouveau_dri.so,
    422396          nouveau_drv_video.so,
    423           nouveau_vieux_dri.so,
    424           r200_dri.so (optional),
    425           r300_dri.so (optional),
     397          r300_dri.so,
    426398          r600_dri.so,
    427399          r600_drv_video.so,
    428           radeon_dri.so (optional),
     400          radeon_dri.so,
    429401          radeonsi_dri.so,
    430402          radeonsi_drv_video.so,
     
    442414        </seg>
    443415        <seg>
    444           $XORG_PREFIX/{include/{EGL,GL,GLES,GLES2,GLES3,KHR},lib/{dri,vdpau}},
     416          $XORG_PREFIX/{include/{EGL,GL,GLES,GLES2,GLES3,KHR},
     417          $XORG_PREFIX/lib/{dri,vdpau}},
    445418          $XORG_PREFIX/include/d3adapter (optional),
    446419          $XORG_PREFIX/lib/d3d (optional),
     
    449422          $XORG_PREFIX/share/vulkan,
    450423          and
    451           /usr/share/doc/mesa-&mesa-version; (optional)
     424          /usr/share/doc/mesa-&mesa-version;
    452425        </seg>
    453426      </seglistitem>
     
    546519        </listitem>
    547520      </varlistentry>
    548 <!--
    549       <varlistentry id="libOSMesa">
    550         <term><filename class="libraryfile">libOSMesa.so</filename></term>
    551         <listitem>
    552           <para>
    553             is the <application>Mesa</application> Off-screen Rendering library
    554           </para>
    555           <indexterm zone="mesa libOSMesa">
    556             <primary sortas="c-libOSMesa">libOSMesa.so</primary>
    557           </indexterm>
    558         </listitem>
    559       </varlistentry>
    560 -->
     521
    561522    </variablelist>
    562523
Note: See TracChangeset for help on using the changeset viewer.