%general-entities; ]> $LastChangedBy$ $Date$ Mesa-&mesa-version; Mesa Introduction to Mesa Mesa is an OpenGL compatible 3D graphics library. Mesa is updated relatively often. You may want to use the latest available &mesa-major-minor;.x mesa version. &lfs84_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &mesa-md5sum; Download size: &mesa-size; Estimated disk space required: &mesa-buildsize; Estimated build time: &mesa-time; Additional Downloads Recommended patch: (installs 2 demo programs for testing Mesa - not needed if you install the mesa-demos package) Mesa Dependencies Required , , and Recommended (to build drivers for supported hardware, note that there is a circular dependency. You must build libva first without EGL and GLX support, install this package, and rebuild libva.), (to build VDPAU drivers), (required for Gallium3D, r300, and radeonsi drivers and for the llvmpipe software rasterizer. See for more information), and (required for , GNOME, and recommended for ) Optional , , , , 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), and libtizonia The instructions below assume that LLVM with the r600/amdgpu and host backends are installed. You will need to modify the instructions if you choose not to install it. For an explanation of Gallium3D see . User Notes: Installation of Mesa 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-&mesa-version;-add_xdemos-2.patch Now, select the drivers you wish to install. The gallium available drivers are kmsro, radeonsi, r300, r600, nouveau, freedreno, swrast, v3d, vc4, etnaviv, tegra, i915, svga, virgl, and swr. The DRI drivers available are i915, i965, r100, r200, nouveau, and swrast. The platforms available are x11, wayland, drm, surfaceless, haiku, and android. Modify the commands below for any desired drivers. The listed drivers below will cover most modern video cards. For help in selecting drivers see . GALLIUM_DRV="nouveau,radeonsi,svga,swrast" DRI_DRIVERS="i915,i965,nouveau" PLATFORMS="x11,wayland,drm" Install Mesa by running the following commands: mkdir build && cd build && meson --prefix=$XORG_PREFIX \ --sysconfdir=/etc \ -Dvalgrind=false \ -Dglx=dri \ -Dosmesa=gallium \ -Dgallium-nine=true \ -Ddri-drivers=$DRI_DRIVERS \ -Dgallium-drivers=$GALLIUM_DRV \ -Dplatforms=$PLATFORMS \ .. && unset GALLIUM_DRV DRI_DRIVERS PLATFORMS && ninja If you have applied the xdemos patch, build the demo programs by running the following command: make -C ../xdemos DEMOS_PREFIX=$XORG_PREFIX LIBRARY_PATH=$PWD/src/glx This package does not come with a test suite. Now, as the root user: ninja install If you have built the demo programs, install them by running the following command as the root user: make -C ../xdemos DEMOS_PREFIX=$XORG_PREFIX install If desired, install the optional documentation by running the following commands as the root user: install -v -dm755 /usr/share/doc/mesa-&mesa-version; && cp -rfv ../docs/* /usr/share/doc/mesa-&mesa-version; Command Explanations -Dplatforms="...": This parameter controls which platforms EGL will be built for. Available platforms are drm, x11, surfaceless, haiku, android, and wayland. -Dgallium-drivers="...": This parameter controls which Gallium3D drivers should be built. Available drivers are pl111, radeonsi, r300, r600, nouveau, and freedreno. -Ddri-drivers="...": This parameter controls which platforms should be supported. Available platforms are i915, i965, r100, r200, nouveau, and swrast. -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. Contents Installed Programs Installed Libraries Installed Directories glxgears and glxinfo d3dadapter9.so, i915_dri.so, i965_dri.so, kms_swrast_dri.so, nouveau_dri.so, nouveau_vieux_dri.so, radeonsi_dri.so, radeonsi_drv_video.so, swrast_dri.so, vmwgfx_dri.so libEGL.so, libGL.so, libGLESv1_CM.so, libGLESv2.so, libOSMesa.so, libXvMCnouveau.so, libgbm.so, libglapi.so, libvulkan_intel.so, libvulkan_radeon.so, libxatracker.so, libvdpau_nouveau.so, and libvdpau_radeonsi.so $XORG_PREFIX/{include/{EGL,GL,GLES,GLES2,GLES3,KHR,vulkan},lib/{d3d,dri,vdpau}} and /usr/share/doc/mesa-&mesa-version; (optional) Short Descriptions glxgears is a GL demo useful for troubleshooting graphics problems. glxgears glxinfo is a diagnostic program that displays information about the graphics hardware and installed GL libraries. glxinfo libEGL.so provides a native platform graphics interface as defined by the EGL-1.4 specification. libEGL.so libgbm.so is the Mesa Graphics Buffer Manager library. libgbm.so libGLESv1_CM.so is the Mesa OpenGL ES 1.1 library. libGLESv1_CM.so libGLES2.so is the Mesa OpenGL ES 2.0 library. libGLES2.so libGL.so is the main Mesa OpenGL library. libGL.so libOSMesa.so is the Mesa Off-screen Rendering library. libOSMesa.so