Mesa 21.2's Direct3D 12 Driver Now Allows For Easy Multi-GPU Selection

Written by Michael Larabel in Mesa on 7 June 2021 at 08:29 AM EDT. 8 Comments
Mesa's Direct3D 12 driver maintained by Microsoft as part of their WSL and Windows OpenGL-over-D3D12 efforts has added a means of being able to select between multiple GPUs/adapters.

Mesa 21.2-devel has added support for the MESA_D3D12_DEFAULT_ADAPTER_NAME= environment variable so the D3D12 driver can select between multiple GPUs on a given system.

MESA_D3D12_DEFAULT_ADAPTER_NAME can be set with a substring of the given GPU you desire to use with the driver, whether it just be the GPU vendor name or a portion of the graphics card model, depending upon the GPU makeup of your system.

Without this environment variable or no matches, the first enumerated GPU is selected. The patch by one of Microsoft's engineers working on their Mesa/graphics efforts was merged this morning ahead of next quarter's Mesa 21.2 feature release.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week