Skip to content

Replay: select complete placed buffer heaps - #3899

Open
john-9474 wants to merge 1 commit into
trustno1-coder:mainfrom
john-9474:codex/replay-heap-selection
Open

john-9474 wants to merge 1 commit into
trustno1-coder:mainfrom
john-9474:codex/replay-heap-selection

Conversation

@john-9474

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot added the pr-diagnostics Pull request: adds logging, counters or tools label Nov 30, 2026
@github-actions github-actions Bot changed the title [pr-diagnostics] Replay: select complete placed buffer heaps Replay: select complete placed buffer heaps Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-diagnostics Pull request: adds logging, counters or tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant