Skip to content

GPU diagnostics: stop inferring descriptor slots from fault addresses - #1236

Closed
EatCodeSleep2 wants to merge 1 commit into
Marvisak:mainfrom
EatCodeSleep2:fix/dred-descriptor-heap-diagnostic-772
Closed

EatCodeSleep2 wants to merge 1 commit into
Marvisak:mainfrom
EatCodeSleep2:fix/dred-descriptor-heap-diagnostic-772

Conversation

@EatCodeSleep2

Copy link
Copy Markdown
Contributor

Summary

  • Remove the descriptor slot estimates that subtract an opaque GPU descriptor handle from the DRED page-fault virtual address.
  • Name the shader-visible view and sampler heaps when DRED is enabled so the allocation report can identify a heap if DRED associates it with a fault.

The old arithmetic reproduces both large numbers in #772 (566,987,264 and 1,139,159,808) from the reported fault address and the handle increments. Those numbers do not identify descriptors accessed by the GPU. Descriptor handle documentation · DRED allocation output

Refs #772. This change covers the page-fault diagnostics. The reported device removal was not reproduced. #1233 addresses descriptor tables in the command breadcrumb report separately.

Verification

  • With VICTORY_D3D12_DRED=1, cargo test --locked -p victory-gpu --lib --features diagnostics -- --quiet (53 passed, 1 ignored).
  • cargo clippy --locked -p victory-gpu --all-targets --features diagnostics -- -D warnings passed.

AI-assisted. No game files were used.

@Zipettte

Copy link
Copy Markdown

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at ec83690: cargo test -p victory-gpu passes, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

@Headache3318

Copy link
Copy Markdown

Second read against ffe310e and the four overlapping descriptor PRs (AI-assisted, Arch Linux kernel 7.3.5, zero-CPU: git merge-tree --write-tree + file reads, nothing built — complements Zipettte's 7700 XT test run):

@Marvisak Marvisak closed this Nov 24, 2026
nazmi added a commit to nazmi/VIctory that referenced this pull request Nov 24, 2026
Three review workers over ~30 PRs against the freshly merged upstream tree,
plus three of our features the merge had discarded, re-applied with their
tests: f32_to_half NaN/nearest-even (Marvisak#843), unique-temp atomic library
writes (Marvisak#1660), VICTORY_PIPELINE_WORKERS (Marvisak#1728).

Integrated: Marvisak#1146, Marvisak#1161, Marvisak#1474, Marvisak#1592, Marvisak#1058, Marvisak#1505, Marvisak#1177, Marvisak#1507, Marvisak#1236,
Marvisak#1180 (with a new regression test for the cached opcode name).
Duplicates confirmed against upstream's own code: Marvisak#957, Marvisak#1103, Marvisak#1057, Marvisak#299.
Obsolete: Marvisak#513 (title_args no longer exists), Marvisak#1507's sibling Marvisak#334 covers it.
Refused: Marvisak#1030 (zip dump of game data), Marvisak#962 (deletes .gitignore).

Verified before this merge: fmt 0 differing, both Clippy gates exit 0,
xtask policy 220 files ok, workspace 662 passed / 0 failed (10 GPU tests
skipped that fail identically on upstream/main itself on this host).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants