Mesa-19.3.4

Mesa の概要

Mesa は OpenGL 互換の 3D グラフィックライブラリです。

[注記]

注記

Mesa は頻繁に更新されています。 mesa の最新バージョン 19.3.x があれば、それを利用することもできます。

本パッケージは LFS-9.0 において正しくビルドでき動作することが確認されています。

パッケージ情報

追加のダウンロード

Mesa の依存パッケージ

必須

Xorg ライブラリ, libdrm-2.4.100, Mako-1.1.1

推奨

任意

libgcrypt-1.8.5, lm-sensors-3-6-0 , Nettle-3.5.1, Valgrind-3.15.0, mesa-demos (provides more than 300 extra demos to test Mesa; this includes the same programs added by the patch above), Bellagio OpenMAX Integration Layer (for mobile platforms), libunwind, and libtizonia

[注記]

注記

The instructions below assume that LLVM with the r600/amdgpu and host backends and run-time type information (RTTI - needed for nouveau) are installed. You will need to modify the instructions if you choose not to install all of these. For an explanation of Gallium3D see https://en.wikipedia.org/wiki/Gallium3D.

ユーザー情報: http://wiki.linuxfromscratch.org/blfs/wiki/mesa

Mesa のインストール

First, fix a problem when using Xorg with any device that uses the SVGA driver:

patch -Np1 -i ../mesa-19.3.4-fix_svga_vmwgfx_segfaults-1.patch

If you have downloaded the xdemos patch (needed if testing the Xorg installation per BLFS instructions), apply it by running the following command:

patch -Np1 -i ../mesa-19.3.4-add_xdemos-1.patch

If Python-2.7.17 is not installed, adjust a script file in test suite to use Python 3:

sed '1s/python/&3/' -i bin/symbols-check.py
[注記]

注記

The measurements above, and the Contents below, are for a full build. Many people will not wish to install drivers they cannot use, so the following paragraphs explain how to limit the drivers, and give an example which can be be reduced or amended as necessary.

Now, select the drivers you wish to install. For the X86 architecture, the available gallium drivers are auto, or alternatively a choice from i915, nouveau, r300, r600, radeonsi, svga, swrast, and virgl. The latter is recommended if you intend to run the system under qemu-4.2.0. If you wish to build all available gallium drivers, use 'auto'.

The (non-gallium) DRI drivers available in X86 are auto, or alternatively a choice from i915, i965, nouveau, r100, r200, and swrast. Use 'auto' to build all available DRI drivers, or use an empty string (DRI_DRIVERS="") if you wish to only build gallium drivers.

The platforms ("window systems") available for X86 linux are x11, wayland, drm, and surfaceless. By not specifying anything, the meson build-system will build for all these platforms if you have the dependencies, identical to if you had specified '-Dplatforms=auto'.

Modify the commands below for your desired drivers. The drivers listed below will cover most modern video cards and virtual machines. For help in selecting drivers see http://www.mesa3d.org/systems.html.

[注記]

注記

Although the nouveau drivers can be built for both gallium and dri, the i915 driver can only be built for one or the other.

GALLIUM_DRV="i915,nouveau,r600,radeonsi,svga,swrast,virgl"
DRI_DRIVERS="i965,nouveau"

以下のコマンドを実行して Mesa をビルドします。

mkdir build &&
cd    build &&

meson --prefix=$XORG_PREFIX          \
      -Dbuildtype=release            \
      -Ddri-drivers=$DRI_DRIVERS     \
      -Dgallium-drivers=$GALLIUM_DRV \
      -Dgallium-nine=false           \
      -Dglx=dri                      \
      -Dosmesa=gallium               \
      -Dvalgrind=false               \
      ..                             &&

unset GALLIUM_DRV DRI_DRIVERS &&

ninja

If you built the tests (see 'Command Explanations'), to run them issue: ninja test.

root ユーザーになって以下を実行します。

ninja install

任意インストールのドキュメントを導入したい場合は、root ユーザーになって以下を実行します。

install -v -dm755 /usr/share/doc/mesa-19.3.4 &&
cp -rfv ../docs/* /usr/share/doc/mesa-19.3.4

コマンド説明

-Dbuildtype=release: This switch ensures a fully-optimized build, and disables debug assertions which will severely slow down the libraries in certain use-cases. Without this switch, build sizes can span into the 2GB range.

-Ddri-drivers="...": This parameter controls which (non-gallium) dri drivers should be built.

-Dgallium-drivers="...": This parameter controls which Gallium3D drivers should be built.

-Dgallium-nine=true: Setting this option to true will provide support for (MS Windows) games designed for DX9.

-Dosmesa=gallium: This switch enables building the libOSMesa library and provides Gallium3D support in it. It requires the swrast gallium driver.

-Dvalgrind=false: This parameter disables the usage of Valgrind during the build process. Remove this parameter if you have Valgrind installed, and wish to check for memory leaks.

-Dbuild-tests=true: This option will cause the test code to be enabled.

パッケージ構成

インストールプログラム: glxgears, glxinfo
インストールライブラリ: d3dadapter9.so, i915_dri.so, i965_dri.so, kms_swrast_dri.so, nouveau_dri.so, nouveau_drv_video.so, nouveau_vieux_dri.so, r200_dri.so, r300_dri.so, r600_dri.so, r600_drv_video.so, radeon_dri.so, radeonsi_dri.so, radeonsi_drv_video.so, swrast_dri.so, virtio_gpu_dri.so, vmwgfx_dri.so libEGL.so, libGL.so, libGLESv1_CM.so, libGLESv2.so, libOSMesa.so, libXvMCnouveau.so, libXvMCr600.so, libgbm.so, libglapi.so, libvulkan_intel.so, libvulkan_radeon.so, libxatracker.so, libvdpau_nouveau.so, libvdpau_r300.so, libvdpau_r600.so, libvdpau_radeonsi.so
インストールディレクトリ: $XORG_PREFIX/{include/{d3dapater,EGL,GL,GLES,GLES2,GLES3,KHR,vulkan},lib/{d3d,dri,vdpau}} $XORG_PREFIX/share/drirc.d (contains workarounds for various applications, particularly browsers and games) $XORG_PREFIX/share/vulkan/icd.d, /usr/share/doc/mesa-19.3.4 (optional)

概略説明

glxgears

GL のデモプログラム。グラフィックにて何か問題があった場合のトラブルシューティングとなります。

glxinfo

グラフィックハードウェアや、インストールされている GL ライブラリの情報を表示する診断プログラムです。

libEGL.so

provides a native platform graphics interface as defined by the EGL-1.4 specification.

libgbm.so

is the Mesa Graphics Buffer Manager library.

libGLESv1_CM.so

is the Mesa OpenGL ES 1.1 library.

libGLES2.so

is the Mesa OpenGL ES 2.0 library.

libGL.so

主要な Mesa OpenGL ライブラリ。

libOSMesa.so

is the Mesa Off-screen Rendering library.

最終更新日: 2020-02-19 04:26:31 +0900