Mesa: Difference between revisions

imported>Natto1784
Created page with "[https://www.mesa3d.org/ Mesa] is an open source implementation of several graphics APIs including OpenGL and Vulkan. == Enabling Vulkan Layers == Vulkan Layers are not enabl..."
 
imported>PedroHLC
m Help users find the default drivers
Line 52: Line 52:


     if (selected_physical_device_count == 0) {
     if (selected_physical_device_count == 0) {
</syntaxhighlight>
== Default drivers ==
In case you wonder where does <code>["auto"]</code> in mesa's attributes lead you, this might be another way to see them (for 22.1.3[https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-22.1.3/meson.build]):
<syntaxhighlight lang="nix">
, galliumDrivers ?
  # Search for `gallium_drivers.contains('auto')` in meson.build
  if stdenv.isLinux then
    if stdenv.isi686 || stdenv.isx86_64  then ["r300" "r600" "radeonsi" "nouveau" "virgl" "svga" "swrast" "iris" "crocus" "i915"]
    else if stdenv.isAarch64 then ["v3d" "vc4" "freedreno" "etnaviv" "nouveau" "tegra" "virgl" "lima" "panfrost" "swrast"]
    else throw "Unsupported platform: this derivation only supports i686/x86_64/aarch64"
  else if stdenv.isDarwin then ["swrast"]
  else throw "Unsupported platform: this derivation only supports Linux/Darwin"
, vulkanDrivers ?
  # Search for `_vulkan_drivers.contains('auto')` in meson.build
  if stdenv.isLinux then
    if stdenv.isi686 || stdenv.isx86_64  then ["amd" "intel" "swrast"]
    else if stdenv.isAarch64 || stdenv.isArch32 then ["swrast"]
    else throw "Unsupported platform: this derivation only supports i686/x86_64/aarch64"
  else if stdenv.isDarwin then  []
  else throw "Unsupported platform: this derivation only supports Linux/Darwin"
</syntaxhighlight>
</syntaxhighlight>