d3d12: resolve extended pipeline statistics on Vulkan #1420

Closed
github-bot wants to merge 1 commit from github-bot/gh-1420 into main AGit
Owner

@⁠PyZikYG on GitHub · 2026-11-24 23:48 UTC · original
PyZikYG:mesh-pipeline-statistics → main · +229 −121 · 10 files · 1 commits · closed without merging

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.

**@⁠PyZikYG** on GitHub · 2026-11-24 23:48 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1420) `PyZikYG:mesh-pipeline-statistics` → `main` · +229 −121 · 10 files · 1 commits · closed without merging Claimed as D3D-132 in [the coordination issue](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). ### 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:50:52 +00:00
github-bot closed this pull request 2026-11-26 12:21:01 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.