d3d12: resolve extended pipeline statistics on Vulkan #1420

Closed
leonida/mandy
PyZikYG wants to merge 0 commits from mesh-pipeline-statistics into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

PyZikYG commented 2026-11-24 23:48:56 +00:00

Claimed as D3D-132 in the coordination issue.

What and why

Implement D3D12_QUERY_TYPE_PIPELINE_STATISTICS1 from heap creation through command replay and the 112-byte resolve. Extended and legacy queries share the same segment planner, so mixed vertex and mesh workloads and overlapping queries continue to count only their own work.

On devices with meshShaderQueries, populate MSInvocations and MSPrimitives and expose MeshShaderPipelineStatsSupported. The base counters remain available when the mesh query feature is absent. ASInvocations is zero because the runtime has no amplification shader support.

Tested

Built the Windows runtime targets and checked query heap rules, replay, queue synchronization, overlapping queries and mesh result readback.

AI-assisted: yes.

Claimed as D3D-132 in [the coordination issue](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147650349). ### What and why Implement `D3D12_QUERY_TYPE_PIPELINE_STATISTICS1` from heap creation through command replay and the 112-byte resolve. Extended and legacy queries share the same segment planner, so mixed vertex and mesh workloads and overlapping queries continue to count only their own work. On devices with `meshShaderQueries`, populate `MSInvocations` and `MSPrimitives` and expose `MeshShaderPipelineStatsSupported`. The base counters remain available when the mesh query feature is absent. `ASInvocations` is zero because the runtime has no amplification shader support. ### Tested Built the Windows runtime targets and checked query heap rules, replay, queue synchronization, overlapping queries and mesh result readback. AI-assisted: yes.
Sign in to join this conversation.
No description provided.