[pr-tests] Reproduce stale color/depth bindings across list replay (hardware fixture) #6

Closed
Tristan1019-user wants to merge 1 commit from upstream-pr/6 into main
Tristan1019-user commented 2026-11-29 16:43:55 +00:00 (Migrated from github.com)

Imported from cocainebunnylaboratories/cblvictoryvi. Originally posted by Tristan1019-user on 2026-11-29T16:43:55Z.


Reproducer only (draft, no runtime changes)

An internal command-list split should preserve the attachments originally bound, even if the guest reuses the descriptor slots before replay. This opt-in hardware test uses three color attachments, a depth attachment, original HLSL, generated colors and a pixel readback. The test uses the descriptor increments reported by this renderer; it makes no assumptions about console ABI sizes. Attachments stay alive through execution.

On current main on an RTX 5080, the no-split control passed 48/48 pixels. With color slots overwritten after binding, the first replayed draw returned blue at attachment 0 pixel (0,0), where red was expected. This is a deterministic wrong destination, not a claim about any particular game's material. The following command is expected to fail at the pixel assertion on this base; the hardware test is ignored in normal CI:

cargo test --locked -p victory-gpu --features diagnostics --lib replay_uses_the_previously_bound_attachments -- --ignored --nocapture --test-threads=1

For a fix, preserve the originally bound views and retain their backing owners until each consuming list retires. Re-resolving an old guest pointer alone is not sufficient lifetime evidence. An example of the former approach is BoundTargets::restore in trustno1-coder/VIctory-NVIDIA; trustno1-coder/VIctory-NVIDIA#2730 addresses list ownership separately. No proprietary assets, SDK definitions, or frame captures are involved.

<!-- greyfinch-sync:cocainebunnylaboratories/cblvictoryvi:issue:5552848348 --> Imported from [cocainebunnylaboratories/cblvictoryvi](https://github.com/cocainebunnylaboratories/cblvictoryvi/pull/6). Originally posted by [Tristan1019-user](https://github.com/Tristan1019-user) on 2026-11-29T16:43:55Z. --- ## Reproducer only (draft, no runtime changes) An internal command-list split should preserve the attachments originally bound, even if the guest reuses the descriptor slots before replay. This opt-in hardware test uses three color attachments, a depth attachment, original HLSL, generated colors and a pixel readback. The test uses the descriptor increments reported by this renderer; it makes no assumptions about console ABI sizes. Attachments stay alive through execution. On current main on an RTX 5080, the no-split control passed 48/48 pixels. With color slots overwritten after binding, the first replayed draw returned blue at attachment 0 pixel (0,0), where red was expected. This is a deterministic wrong destination, not a claim about any particular game's material. The following command is expected to fail at the pixel assertion on this base; the hardware test is ignored in normal CI: ```sh cargo test --locked -p victory-gpu --features diagnostics --lib replay_uses_the_previously_bound_attachments -- --ignored --nocapture --test-threads=1 ``` For a fix, preserve the originally bound views and retain their backing owners until each consuming list retires. Re-resolving an old guest pointer alone is not sufficient lifetime evidence. An example of the former approach is `BoundTargets::restore` in trustno1-coder/VIctory-NVIDIA; trustno1-coder/VIctory-NVIDIA#2730 addresses list ownership separately. No proprietary assets, SDK definitions, or frame captures are involved.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
cocainebunnylaboratories/cblvictoryvi!6
No description provided.