Replay: select complete placed buffer heaps #3899

Open
github-bot wants to merge 1 commit from github-bot/gh-3899 into main AGit
Owner

@⁠john-9474 on GitHub · 2026-11-30 10:51 UTC · original
john-9474:codex/replay-heap-selection → main · +145 −31 · 4 files · 1 commits · open

What it changes

Filtered replay memory experiments currently affect committed buffers only: any nonempty --only-buffers prevents a placed buffer heap from moving. This leaves small buffers packed into shared heaps out of an experiment even when the filter selects all their resources.

The replay can now select complete placed buffer heaps with --only-buffers heap=<id>[,..], or with existing filters matching every resource in a buffer-only heap. Selecting only some members leaves the entire heap in its recorded memory. Offsets, neighbours and aliases stay together. Heap eligibility is determined in one pass over the resources. The listing includes heap IDs, sizes and memory properties, and the CLI help and replay documentation explain the filter.

The synthetic fixture adds a neighbouring buffer whose bytes are consumed by the main buffer. It also supplies the missing shader-read-to-copy-destination transition before both writes into that main buffer. Each new heap-selection case checks full contents and rejects error 538 in its replay report.

How it was tested

  • Base: upstream 41adb551 / v2026.11.29.05. Windows 11, RTX 3080 Ti 12 GB, driver 610.47. Synthetic recorder/replay workload only; no Series X/S profile, DLSS, frame generation or ray tracing.
  • Locked diagnostics builds of the GPU library unit tests and replay integration fixture passed. Existing library warnings remain.
  • Pure selector regression: 1 passed, covering comma-separated and negated heap filters, partial overlapping aliases, mixed buffer/texture heaps, empty heaps and invalid IDs.
  • Real D3D12 fixture: passed in two fresh processes, debug layer off/on. Full checked buffer contents and replay images match for unchanged replay, all-buffer relocation, single-heap relocation, comma-separated and negated heap selection, and partial selection that must leave the heap alone.
  • Negative control: the same corrected fixture with the exact upstream player fails at the requested-heap assertion in both debug modes, after its content checks pass. The proposed player passes both modes.
  • The upstream fixture reports one error 538 per ordinary replay variant; the additional copy initially exposed a second occurrence. The explicit fixture transition reduces these to zero, including all four newly asserted heap-selection variants.
  • Debug validation is not globally clean: the upstream control and this change both report error 1003 twice per ordinary variant, and error 527 three times in the one-submission experiment. Those existing issues are unchanged. The full GPU library/workspace suite was not rerun for this change. No shader translation change; wave-size checks do not apply.
  • git diff --check and the staged asset policy passed for the four source/documentation files. No dependency or lockfile changes.

All test data is generated by the fixture. This is profiling support; it makes no gameplay FPS or visual-fix claim.

Checked for overlap

  • Searched open and recently closed PRs for replay, placed heaps, filters, memory experiments and the touched files; rechecked before publishing.
  • #2143 repairs replay handling of recorded aliasing barriers and the diagnostics build; this change controls memory selection for complete placed buffer heaps.
  • #3820 adds a synthetic submission/preparation benchmark; it does not change replay memory selection.
  • #2751 records/replays integer UAV clears. This branch contains none of that work or the local enhanced-barrier, output-hash, recorder-storage or runtime experiments.
**@⁠john-9474** on GitHub · 2026-11-30 10:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3899) `john-9474:codex/replay-heap-selection` → `main` · +145 −31 · 4 files · 1 commits · open ## What it changes Filtered replay memory experiments currently affect committed buffers only: any nonempty `--only-buffers` prevents a placed buffer heap from moving. This leaves small buffers packed into shared heaps out of an experiment even when the filter selects all their resources. The replay can now select complete placed buffer heaps with `--only-buffers heap=<id>[,..]`, or with existing filters matching every resource in a buffer-only heap. Selecting only some members leaves the entire heap in its recorded memory. Offsets, neighbours and aliases stay together. Heap eligibility is determined in one pass over the resources. The listing includes heap IDs, sizes and memory properties, and the CLI help and replay documentation explain the filter. The synthetic fixture adds a neighbouring buffer whose bytes are consumed by the main buffer. It also supplies the missing shader-read-to-copy-destination transition before both writes into that main buffer. Each new heap-selection case checks full contents and rejects error 538 in its replay report. ## How it was tested - Base: upstream `41adb551` / `v2026.11.29.05`. Windows 11, RTX 3080 Ti 12 GB, driver 610.47. Synthetic recorder/replay workload only; no Series X/S profile, DLSS, frame generation or ray tracing. - Locked diagnostics builds of the GPU library unit tests and replay integration fixture passed. Existing library warnings remain. - Pure selector regression: **1 passed**, covering comma-separated and negated heap filters, partial overlapping aliases, mixed buffer/texture heaps, empty heaps and invalid IDs. - Real D3D12 fixture: **passed in two fresh processes**, debug layer off/on. Full checked buffer contents and replay images match for unchanged replay, all-buffer relocation, single-heap relocation, comma-separated and negated heap selection, and partial selection that must leave the heap alone. - Negative control: the same corrected fixture with the exact upstream player fails at the requested-heap assertion in both debug modes, after its content checks pass. The proposed player passes both modes. - The upstream fixture reports one error 538 per ordinary replay variant; the additional copy initially exposed a second occurrence. The explicit fixture transition reduces these to **zero**, including all four newly asserted heap-selection variants. - Debug validation is not globally clean: the upstream control and this change both report error 1003 twice per ordinary variant, and error 527 three times in the one-submission experiment. Those existing issues are unchanged. The full GPU library/workspace suite was not rerun for this change. No shader translation change; wave-size checks do not apply. - `git diff --check` and the staged asset policy passed for the four source/documentation files. No dependency or lockfile changes. All test data is generated by the fixture. This is profiling support; it makes no gameplay FPS or visual-fix claim. ## Checked for overlap - [x] Searched open and recently closed PRs for replay, placed heaps, filters, memory experiments and the touched files; rechecked before publishing. - #2143 repairs replay handling of recorded aliasing barriers and the diagnostics build; this change controls memory selection for complete placed buffer heaps. - #3820 adds a synthetic submission/preparation benchmark; it does not change replay memory selection. - #2751 records/replays integer UAV clears. This branch contains none of that work or the local enhanced-barrier, output-hash, recorder-storage or runtime experiments.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 10:51:57 +00:00
github-bot changed title from [pr-diagnostics] Replay: select complete placed buffer heaps to Replay: select complete placed buffer heaps 2026-11-30 10:57:20 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3899/head:github-bot/gh-3899'
git switch 'github-bot/gh-3899'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3899'
git switch 'github-bot/gh-3899'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3899'
git switch 'github-bot/gh-3899'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3899'
git switch 'main'
git merge --squash 'github-bot/gh-3899'
git switch 'main'
git merge --ff-only 'github-bot/gh-3899'
git switch 'main'
git merge 'github-bot/gh-3899'
git push origin 'main'
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!3899
No description provided.