Mesa 22.3 RADV Driver Now Allows Enabling NGG Stream-Out Functionality

Written by Michael Larabel in Radeon on 1 November 2022 at 03:00 PM EDT. Add A Comment
It's been 3+ years that the Mesa Radeon Vulkan driver "RADV" has been working on NGG Stream-Out support for making use of the Next-Gen Geometry engine that is in workable shape for some RDNA GPUs. Finally with Mesa 22.3 releasing this quarter, a new environment variable option is allowing the NGG Streamout / Transform Feedback functionality to be flipped on with the RADV driver.

Samuel Pitoiset with Valve's open-source Linux graphics driver team landed the patches today for introducing the RADV_PERFTEST=ngg_streamout environment variable option for flipping it on. The patches also allow NGG Stream-Out to be enabled for upcoming RDNA3 / GFX11 hardware, but in this case it's known to be "untested" on the yet-to-be-released AMD GPUs.

At least with GFX10.3 RDNA2 GPUs, the RADV_PERFTEST=ngg_streamout option is working well for enabling stream-out / transform feedback with this NGG geometry engine.

The code today now flips on the geometryStreams, transformFeedbackQueries, and transformFeedbackStreamsLinesTriangles features that were previously disabled if trying the experimental NGG Stream-Out code path. The changes today also include enabling VK_EXT_transform_feedback with GFX11 hardware. RADV and the ACO compiler back-end have been seeing a lot of prep work for RDNA3 "GFX11" IP based on changes being made in the public to the AMDGPU LLVM compiler back-end, RadeonSI, and any breadcrumbs being shared by AMD with the open-source team at Valve. So it's looking like RADV may be in decent shape when RDNA3 GPUs begin shipping and hopefully any issues will be quickly addressed.

It was just this summer on the RadeonSI side with that official Gallium3D OpenGL driver that AMD stabilized the RDNA/GFX10 NGG Stream-Out code in preparation for RDNA3/GFX11. This NGG work has been of much attention this year since RDNA3 has NGG always-enabled.

More details in this merge request that is now merged for Mesa 22.3 due out in a few weeks.
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