Intel Adds New Option To Help In Profiling Their Open-Source Vulkan Driver

Written by Michael Larabel in Mesa on 14 March 2023 at 04:50 PM EDT. Add A Comment
MESA
A two year old merge request finally made it to mainline today for Mesa 23.1 to enhance in profiling the open-source Mesa Vulkan drivers.

The new option added to Mesa's Vulkan windowing system integration (WSI) is a headless swapchain. This is for turning every swapchain creation into a null swapchain and in turn not presenting anything, which in turn allows the application to churn out as many frames as possible.

The intent when this mode is activated via the "MESA_VK_WSI_NULL_SWAPCHAIN" variable is to help identify slow spots within the Vulkan driver's command buffer building code path.

This Mesa Vulkan headless swapchain option was started by Intel's Lionel Landwerlin two years ago but took until today to be mainlined.

This isn't directly useful to Linux gamers/enthusiasts but can indirectly benefit them with Vulkan driver developers being able to leverage the headless swapchain for helping to uncover slow code paths. As this is just touching the common Mesa Vulkan WSI code and not ANV-specific, this can help out other Mesa Vulkan drivers too beyond Intel. See this MR for more details if interested.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com 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 OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week