Mesa's Raspberry Pi V3DV Vulkan Driver Lands New Occlusion Queries Implementation

Written by Michael Larabel in Raspberry Pi on 25 November 2022 at 06:00 AM EST. 1 Comment
The Broadcom V3DV VideoCore open-source Vulkan driver within Mesa has landed a rewritten occlusion queries implementation for better performance and reliability.

Iago Toral rewrote the V3DV occlusion queries code to be much improved over the prior implementation of this VideoCore Vulkan driver. He explained in the merge request:
"Our implementation was mostly CPU-based, with things such as query resets and result copying handled in the CPU, as well as some aspects of query availability tracking.

This new implementation handles all GPU-side query functions by dispatching compute shaders to push the work to the GPU. This involves query availability, reset and result copying.

For now, only occlusion queries are managed this way. Performance queries can also be implemented in a similar fashion in the future with some additional work, however, for timestamp queries our only option to improve this would be to execute the actual timestamp in the kernel, since we can't take a timestamp from a shader."

That over thousand lines of reworked code for the V3DV driver has now been merged for Mesa 23.0 as another enhancement on the open-source Raspberry Pi graphics driver front.
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