Skip to content

tu: provide RenderDoc-tailored VK_KHR_performance_query behavior

RenderDoc can measure performance counters that are exposed through the VK_KHR_performance_query extension.

Besides a couple of generic fixes specific to the implementation of that extension, RenderDoc expects each counter to have a command scope, instead of the command buffer scope we're currently using.

Another idea currently implemented is to provide limited sets of fd_perfcntr_countable values for each perfcounter group, instead of exposing all the available countables. This makes the experience of selecting relevant countables that should be measured a bit easier.

Current implementation exposes this tailored behavior through TU_DEBUG=renderdoc. The WIP patch only provides examples of limited countable sets for a couple of perfcounter groups.

Merge request reports

Loading