Experimental Code Gets Open-Source Mesa RADV Vulkan Driver Running On Windows

Written by Michael Larabel in Radeon on 9 July 2024 at 05:45 PM EDT. 51 Comments
Over the years there have been various attempts at getting the open-source RADV Vulkan driver on Windows, Faith Ekstrand of Collabora has been recently hacking on it and achieving success for having this popular Radeon Vulkan API driver for Linux working under Windows.

Faith recently opened up a Mesa merge request providing Vulkan WDDM2 (Windows Display Driver Model 2.0) device support. The focus has been around enabling RADV on Windows -- RADV being the driver backed by Valve and the other open-source community as an alternative to AMD's official AMDVLK driver. Faith explains in that still-open merge request:
"This is a placeholder MR to hold a few patches from my RADV branch and maybe get some discussion going. As with everything in the runtime, I'm trying to take a light approach at first. So far, this branch just has WDDM2 device enumeration and support for a new vk_sync type for WDDM2 monitored fences.

For device enumeration, I added a vk_wddm2_adapter_info struct which gets populated with a couple of common queries that are available starting with WDDM 2.0. This gives the driver the PCI info so that it can quick-reject the adapter before actually cloning its own handle and doing any additional queries. It's unclear how much of this we want in common Vulkan code and how much we should just tell drivers to call D3DKMTQueryAdapterInfo() themselves. For now, I went with roughly the same information as is in drmDevice."

These Vulkan WDDM2 bits in current form just amount to over 800 lines of new code.

Ekstrand then shared on Mastodon a Vulkan code sample running on the RADV driver under Windows.

RADV driver on Windows screenshot

Nice work! It will be interesting to see how far this work goes and how fruitful it will be as well as ultimately how well RADV performs on Windows relative to the official AMD Radeon Software Vulkan driver.
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