Add mandatory hardware regressions for copy helpers and Execute boundaries #4677

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

@⁠john-9474 on GitHub · 2026-12-01 01:31 UTC · original
john-9474:codex/place-helper-hardware-regressions → main · +436 −0 · 1 files · 1 commits · closed without merging

Refs #194, #4016 and #4590.

What it changes

Placed-copy helpers can return the expected bytes while recording invalid D3D12 buffer states. Independently recorded native copy lists also behave differently when grouped into one Execute: the implicit-read case returns a wrong, all-zero snapshot, while an explicit-read/write case returns correct bytes despite validation errors. Submission can drain the normal message queue before a test checks it.

Adds eight diagnostics-only ignored hardware fixtures in host/place.rs:

  • Four actual place_copy / place_constant cases: the existing 512-byte test, repeated writes with and without an intermediate snapshot, and an already-valid explicit read-state control.
  • Four native-copy cases: two or three independently recorded lists submitted in one Execute or in separate waited Executes. They check complete 1,024/2,048-byte snapshots; the overwrite cases preserve 256-byte prefix and suffix borders. The explicit 0x841 mask is a real transition, not a claim of shader or CBV execution.

Each explicitly requested case requires a physical adapter, debug interface, Host InfoQueue1, successful callback registration and a positive application-message witness. Missing support fails rather than skipping. Process-static atomic counters and a bounded first description retain errors across queue drains; callback storage survives unregister failure without assuming unregister joins pending callbacks. Completion labels distinguish production helpers from raw native commands.

The diff adds 436 test lines in one file. Production code and all pre-existing main tests are unchanged. The four previously published hardware cases retain their assertions; their observer is shared with the new cases. No state tracker, private runtime instrumentation, dependency, lockfile change, game data or binary is included. Normal CI leaves these hardware fixtures ignored.

How it was tested

Clean main f5c3d243, one-file tests-only candidate, pinned Rust 1.98.1 on Windows, RTX 3080 Ti (10de:2208), driver 610.47. All eight exact cases used the same frozen diagnostics library-test binary, SHA256 prefix 77ce29d7, with a fresh process and mandatory hardware/InfoQueue/callback-witness checks for each case.

Case Completed byte checks High-severity validation messages Rust outcome
Existing helper wrapper 512 3 x ID 538 Known bug captured; exit 101
Write/write/snapshot 1,024, including borders 4 x ID 538 Known bug captured; exit 101
Write/snapshot/write/snapshot 2,048, including borders 5 x ID 538 Known bug captured; exit 101
Helper explicit read state 0x841 512 0 Passing control; exit 0
Two native lists, separate Executes 1,024 0 Passing control; exit 0
Three native lists, explicit read, separate Executes 2,048, including borders 0 Passing control; exit 0
Two native lists, grouped Execute 0: first 1,024-byte snapshot is all zero instead of the expected pattern 1 x ID 538 Data mismatch captured; exit 101
Three native lists, explicit read, grouped Execute 2,048, including borders 1 x ID 538 + 1 x ID 527 Known bug captured; exit 101

These are five captured failures and three passing controls, not eight passing tests. Seven cases completed their full byte assertions; the implicit grouped case failed its first snapshot assertion. All eight outer guards exited 0 after checking the expected observations; that does not turn Rust exit 101 into a test pass. There were no timeouts or native aborts.

CPU commands actually run on this candidate, with locked dependencies and two jobs:

cargo test --locked --jobs 2 -p victory-gpu --features diagnostics --lib --no-run --message-format=json
cargo clippy --locked --jobs 2 -p victory-gpu --all-targets -- -D warnings
cargo clippy --locked --jobs 2 -p victory-gpu --all-targets --features diagnostics -- -D warnings
cargo run --locked --quiet --jobs 2 -p xtask -- policy --staged
git diff --cached --check

Compile-only, the one-file policy check and the diff check passed. Both strict Clippy commands exited 101, reporting exactly the five unchanged UI findings also present in clean f5c3 main CI: too many arguments at host/font.rs:213 and :260, manual-is-multiple-of at host/menu.rs:667, and collapsible-if at host/panel.rs:602 and :668. All three UI files are byte-identical to that base. Existing #4680 addresses those findings separately; no unrelated cleanup or lint allowances are bundled here. No authored diagnostic was reported. The full crate/workspace test suite was not run.

To repeat, use a fresh process with VICTORY_REQUIRE_HW_GPU=1, VICTORY_D3D12_DEBUG=1, VICTORY_GPU_TIMING=0, VICTORY_NARROW_BARRIERS=0, VICTORY_COPIES_IN_PLACE=1, VICTORY_PLACED_CONSTANTS=1, VICTORY_CARD_ALL=1, VICTORY_CARD_BUFFERS_MIN_KB=64, VICTORY_CARD_STEPS=2 and VICTORY_WINDOWS_OWN=0. Both VICTORY_WARP and VICTORY_D3D12_WARP must be absent. Run the compiled library-test executable with --exact NAME --ignored --nocapture --test-threads=1, once per process:

host::place::tests::place_copy_then_place_constant_hw_debug
host::place::tests::place_repeat_snapshot_then_overwrite_hw_debug
host::place::tests::place_repeat_overwrite_then_snapshot_hw_debug
host::place::tests::place_explicit_read_prefix_hw_debug
host::place::tests::buffer_execute_implicit_grouped_hw_debug
host::place::tests::buffer_execute_implicit_separate_hw_debug
host::place::tests::buffer_execute_explicit_grouped_hw_debug
host::place::tests::buffer_execute_explicit_separate_hw_debug

This validates owned allocations, native copy commands and synchronous DIRECT-queue Execute boundaries. No game profile, DLSS/frame generation, ray-tracing workload, shader algorithm/wave-size, GPU lifetime, visual or FPS result is claimed. Separate private exact-state experiments are not part of this PR or of the clean binary above.

Checked for overlap

  • Read current contribution rules; searched exact test/helper names, grouped Execute, hardware validation and InfoQueue terms; inspected the actual relevant tests and source in #194, #4016 and #4590, plus related submission/copy test PRs.
  • #194 already has buffer-state models, placed-copy/root-view tests, a drain-independent callback and a cross-list helper/metadata case. This is not the first grouped-state or callback test. The added matrix uses actual native copies in independent recordings, mandatory physical-hardware/witness checks, complete snapshots and paired real grouped/separate Execute controls.
  • #4016 already provides mandatory WARP/InfoQueue single-list read/overwrite regressions. The physical-adapter observer, valid explicit-state control and real Execute-boundary matrix here complement that coverage.
  • #4590 contains the related producer fix and no authored test addition. This PR remains tests only and supplies evidence for reviewing such fixes.
  • #3612/#3069 test submission cuts and copy coalescing; #874 concerns deferred copy/submission ordering; #4320 tests constant-buffer pool retirement. #4527 and #4574 cover owned readback transport and retained failure reports respectively. Their reviewed tests do not provide this exact native-copy hardware control matrix.
**@⁠john-9474** on GitHub · 2026-12-01 01:31 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4676) `john-9474:codex/place-helper-hardware-regressions` → `main` · +436 −0 · 1 files · 1 commits · closed without merging Refs #194, #4016 and #4590. ## What it changes Placed-copy helpers can return the expected bytes while recording invalid D3D12 buffer states. Independently recorded native copy lists also behave differently when grouped into one Execute: the implicit-read case returns a wrong, all-zero snapshot, while an explicit-read/write case returns correct bytes despite validation errors. Submission can drain the normal message queue before a test checks it. Adds eight diagnostics-only ignored hardware fixtures in `host/place.rs`: - Four actual `place_copy` / `place_constant` cases: the existing 512-byte test, repeated writes with and without an intermediate snapshot, and an already-valid explicit read-state control. - Four native-copy cases: two or three independently recorded lists submitted in one Execute or in separate waited Executes. They check complete 1,024/2,048-byte snapshots; the overwrite cases preserve 256-byte prefix and suffix borders. The explicit `0x841` mask is a real transition, not a claim of shader or CBV execution. Each explicitly requested case requires a physical adapter, debug interface, Host InfoQueue1, successful callback registration and a positive application-message witness. Missing support fails rather than skipping. Process-static atomic counters and a bounded first description retain errors across queue drains; callback storage survives unregister failure without assuming unregister joins pending callbacks. Completion labels distinguish production helpers from raw native commands. The diff adds 436 test lines in one file. Production code and all pre-existing main tests are unchanged. The four previously published hardware cases retain their assertions; their observer is shared with the new cases. No state tracker, private runtime instrumentation, dependency, lockfile change, game data or binary is included. Normal CI leaves these hardware fixtures ignored. ## How it was tested **Clean main `f5c3d243`, one-file tests-only candidate**, pinned Rust 1.98.1 on Windows, RTX 3080 Ti (`10de:2208`), driver 610.47. All eight exact cases used the same frozen diagnostics library-test binary, SHA256 prefix `77ce29d7`, with a fresh process and mandatory hardware/InfoQueue/callback-witness checks for each case. | Case | Completed byte checks | High-severity validation messages | Rust outcome | |---|---:|---|---| | Existing helper wrapper | 512 | 3 x ID 538 | Known bug captured; exit 101 | | Write/write/snapshot | 1,024, including borders | 4 x ID 538 | Known bug captured; exit 101 | | Write/snapshot/write/snapshot | 2,048, including borders | 5 x ID 538 | Known bug captured; exit 101 | | Helper explicit read state `0x841` | 512 | 0 | Passing control; exit 0 | | Two native lists, separate Executes | 1,024 | 0 | Passing control; exit 0 | | Three native lists, explicit read, separate Executes | 2,048, including borders | 0 | Passing control; exit 0 | | Two native lists, grouped Execute | 0: first 1,024-byte snapshot is all zero instead of the expected pattern | 1 x ID 538 | Data mismatch captured; exit 101 | | Three native lists, explicit read, grouped Execute | 2,048, including borders | 1 x ID 538 + 1 x ID 527 | Known bug captured; exit 101 | These are **five captured failures and three passing controls, not eight passing tests**. Seven cases completed their full byte assertions; the implicit grouped case failed its first snapshot assertion. All eight outer guards exited 0 after checking the expected observations; that does not turn Rust exit 101 into a test pass. There were no timeouts or native aborts. CPU commands actually run on this candidate, with locked dependencies and two jobs: ```text cargo test --locked --jobs 2 -p victory-gpu --features diagnostics --lib --no-run --message-format=json cargo clippy --locked --jobs 2 -p victory-gpu --all-targets -- -D warnings cargo clippy --locked --jobs 2 -p victory-gpu --all-targets --features diagnostics -- -D warnings cargo run --locked --quiet --jobs 2 -p xtask -- policy --staged git diff --cached --check ``` Compile-only, the one-file policy check and the diff check passed. **Both strict Clippy commands exited 101**, reporting exactly the five unchanged UI findings also present in [clean f5c3 main CI](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46553617760/job/142323033705): too many arguments at `host/font.rs:213` and `:260`, manual-is-multiple-of at `host/menu.rs:667`, and collapsible-if at `host/panel.rs:602` and `:668`. All three UI files are byte-identical to that base. Existing #4680 addresses those findings separately; no unrelated cleanup or lint allowances are bundled here. No authored diagnostic was reported. The full crate/workspace test suite was not run. To repeat, use a fresh process with `VICTORY_REQUIRE_HW_GPU=1`, `VICTORY_D3D12_DEBUG=1`, `VICTORY_GPU_TIMING=0`, `VICTORY_NARROW_BARRIERS=0`, `VICTORY_COPIES_IN_PLACE=1`, `VICTORY_PLACED_CONSTANTS=1`, `VICTORY_CARD_ALL=1`, `VICTORY_CARD_BUFFERS_MIN_KB=64`, `VICTORY_CARD_STEPS=2` and `VICTORY_WINDOWS_OWN=0`. Both `VICTORY_WARP` and `VICTORY_D3D12_WARP` must be absent. Run the compiled library-test executable with `--exact NAME --ignored --nocapture --test-threads=1`, once per process: ```text host::place::tests::place_copy_then_place_constant_hw_debug host::place::tests::place_repeat_snapshot_then_overwrite_hw_debug host::place::tests::place_repeat_overwrite_then_snapshot_hw_debug host::place::tests::place_explicit_read_prefix_hw_debug host::place::tests::buffer_execute_implicit_grouped_hw_debug host::place::tests::buffer_execute_implicit_separate_hw_debug host::place::tests::buffer_execute_explicit_grouped_hw_debug host::place::tests::buffer_execute_explicit_separate_hw_debug ``` This validates owned allocations, native copy commands and synchronous DIRECT-queue Execute boundaries. No game profile, DLSS/frame generation, ray-tracing workload, shader algorithm/wave-size, GPU lifetime, visual or FPS result is claimed. Separate private exact-state experiments are not part of this PR or of the clean binary above. ## Checked for overlap - [x] Read current contribution rules; searched exact test/helper names, grouped Execute, hardware validation and InfoQueue terms; inspected the actual relevant tests and source in #194, #4016 and #4590, plus related submission/copy test PRs. - #194 already has buffer-state models, placed-copy/root-view tests, a drain-independent callback and a cross-list helper/metadata case. This is not the first grouped-state or callback test. The added matrix uses actual native copies in independent recordings, mandatory physical-hardware/witness checks, complete snapshots and paired real grouped/separate Execute controls. - #4016 already provides mandatory WARP/InfoQueue single-list read/overwrite regressions. The physical-adapter observer, valid explicit-state control and real Execute-boundary matrix here complement that coverage. - #4590 contains the related producer fix and no authored test addition. This PR remains tests only and supplies evidence for reviewing such fixes. - #3612/#3069 test submission cuts and copy coalescing; #874 concerns deferred copy/submission ordering; #4320 tests constant-buffer pool retirement. #4527 and #4574 cover owned readback transport and retained failure reports respectively. Their reviewed tests do not provide this exact native-copy hardware control matrix.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 01:35:54 +00:00
github-bot changed title from Add mandatory hardware regressions for placed copy helpers to Add mandatory hardware regressions for copy helpers and Execute boundaries 2026-12-01 02:53:02 +00:00
github-bot force-pushed github-bot/gh-4676 from 792b71a8bc to 5b926b0b06 2026-12-01 02:53:04 +00:00 Compare
github-bot closed this pull request 2026-12-01 18:36:54 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:35 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4676#issuecomment-7321174586) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

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!4677
No description provided.