Trace loose pipeline shader metadata and first use #1681

Manually merged
github merged 5 commits from github-bot/gh-1681 into main 2026-11-29 08:21:47 +00:00 AGit
Owner

@⁠Ondra97 on GitHub · 2026-11-28 23:25 UTC · original
Ondra97:codex/loose-pipeline-trace → main · +434 −5 · 3 files · 5 commits · merged 2026-11-29 08:16 UTC

Related to #587.

What it changes

Add opt-in, bounded diagnostics for loose pipeline requests at 0x1c8 and 0x218 and for the container-backed creation and first-bind paths. Compare declared shader metadata IDs with the digest in the container's DXBC HASH chunk. The graphics trace covers the observed VS/PS prefix. A same-root match gives evidence about the shader stages in a later pipeline. Full state equivalence and stages outside the observed prefix remain unverified.

Enable with VICTORY_LOOSE_PSO_TRACE=1. VICTORY_LOOSE_PSO_TRACE_LIMIT caps the number of recorded events per method. Records contain metadata IDs, sizes, and process-local root and pipeline correlation data. The trace leaves HRESULTs and pipeline selection unchanged. The metadata probe avoids reading shader bodies for hashing or dumping them to the log.

How it was tested

  • Two targeted victory-gpu tests passed. They cover both metadata layouts, terminal tag checks, and the exact DXBC HASH digest range. Stable locked offline release build passed.
  • Windows, RTX 4070 Ti SUPER, Series X, 1440p, DLSS Performance, frame generation off. The release completed the saved opening scene. Of 25,450 loose graphics requests, 23,765 supplied an identifiable VS/PS tuple. For 8,892 requests (494 distinct root/tuple pairs), the trace recorded a later successful 0x2b0 creation with the same root and shader tuple. It linked later first binds to the same root for 162 requests (9 distinct root/tuple pairs). Creation recording reached its cap. Process-wide first-bind matches alone do not carry root verification for uncaptured creations.
  • The same-thread/root compute control grouped 2,689 known fallback pairs. All 1,980 pairs with both metadata IDs present matched. A rotated same-root check with a different fallback produced zero matches in 1,977 comparable pairs.
  • The current metadata-only recording preserves the diagnostic correlations. Mean creation-entry size dropped from 602 to 337 bytes versus the earlier private trace. Performance and missing-draw attribution are outside these tests.

Checked for overlap

  • Checked open PRs for this handler and #587. #506 and #1847 address opt-in loose compute creation. #1847 also adds raw-field diagnostics at the same entry points. This PR adds bounded correlation with the ordinary creation and first-bind paths. #677 logs generic missing-method arguments.
**@⁠Ondra97** on GitHub · 2026-11-28 23:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1681) `Ondra97:codex/loose-pipeline-trace` → `main` · +434 −5 · 3 files · 5 commits · merged 2026-11-29 08:16 UTC Related to #587. ## What it changes Add opt-in, bounded diagnostics for loose pipeline requests at 0x1c8 and 0x218 and for the container-backed creation and first-bind paths. Compare declared shader metadata IDs with the digest in the container's DXBC HASH chunk. The graphics trace covers the observed VS/PS prefix. A same-root match gives evidence about the shader stages in a later pipeline. Full state equivalence and stages outside the observed prefix remain unverified. Enable with VICTORY_LOOSE_PSO_TRACE=1. VICTORY_LOOSE_PSO_TRACE_LIMIT caps the number of recorded events per method. Records contain metadata IDs, sizes, and process-local root and pipeline correlation data. The trace leaves HRESULTs and pipeline selection unchanged. The metadata probe avoids reading shader bodies for hashing or dumping them to the log. ## How it was tested - Two targeted victory-gpu tests passed. They cover both metadata layouts, terminal tag checks, and the exact DXBC HASH digest range. Stable locked offline release build passed. - Windows, RTX 4070 Ti SUPER, Series X, 1440p, DLSS Performance, frame generation off. The release completed the saved opening scene. Of 25,450 loose graphics requests, 23,765 supplied an identifiable VS/PS tuple. For 8,892 requests (494 distinct root/tuple pairs), the trace recorded a later successful 0x2b0 creation with the same root and shader tuple. It linked later first binds to the same root for 162 requests (9 distinct root/tuple pairs). Creation recording reached its cap. Process-wide first-bind matches alone do not carry root verification for uncaptured creations. - The same-thread/root compute control grouped 2,689 known fallback pairs. All 1,980 pairs with both metadata IDs present matched. A rotated same-root check with a different fallback produced zero matches in 1,977 comparable pairs. - The current metadata-only recording preserves the diagnostic correlations. Mean creation-entry size dropped from 602 to 337 bytes versus the earlier private trace. Performance and missing-draw attribution are outside these tests. ## Checked for overlap - [x] Checked open PRs for this handler and #587. #506 and #1847 address opt-in loose compute creation. #1847 also adds raw-field diagnostics at the same entry points. This PR adds bounded correlation with the ordinary creation and first-bind paths. #677 logs generic missing-method arguments.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:30:04 +00:00
github-bot changed title from Trace native program identities for loose pipeline requests to Trace loose pipeline shader metadata and first use 2026-11-29 01:13:11 +00:00
github manually merged commit 7d9bb34941 into main 2026-11-29 08:21:47 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1681
No description provided.