Repository navigation
Conversation
The D3D12 debug layer (now usable: `diagnostics` did not forward to victory-gpu) showed two calls that remove the device when the title loads its world, both now gone: - `GetResourceAllocationInfo` asked about the title's texture description, which may carry the unordered-access flag in a format the host cannot view as unordered access. It answers the live texture's own description instead; the number is a statistic of shared bytes. - A texture unordered view took the title's view format unconditionally. `B5G5R5A1_UNORM` cannot be a typed unordered access view (menu), and `CreateUnorderedAccessView` refused it, which removes the device. `fits` now asks `typed_store` for the format the view really takes and lets the slot fall back to the null-view path. shortcut: such views are null and their writes dropped; map the format to one the host can store when the world needs them. With these the world loads and runs mesh pipelines; the title then dies of a TDR (1428 draws a frame, 8 s of GPU time), a throughput problem, not an invalid call.
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f) on Windows 11 + NVIDIA GeForce RTX 5090:
- Guarding the two invalid title calls and forwarding the
diagnosticsfeature inapps/victory/Cargo.tomlbuilds and passes cleanly. cargo test -p victory-gpu resource::tests: 10/10 passed.cargo clippy -p victory-gpu -p victory --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
Subset/companion of #2431 — same diagnostics wiring (victory-gpu/diagnostics feature + once! guard). Overlaps; whichever merges second conflicts. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.
|
Two parts, two overlaps worth noting for triage:
|
|
Automated triage for the maintainers. Merge candidate. Notes for the maintainer: #2462 adds an overlapping check to Generated by Claude Code |
|
RTX 4060 Laptop (610.47), merged onto main 13f91ca: the B5G5R5A1 UAV half crashes the process (access violation 0xc0000005) on a UAV without a description, because |
|
Automated triage for the maintainers, second look (a review against current Closing because each part is redundant or done elsewhere. The If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
The D3D12 debug layer (previously unusable — the app's
diagnosticsfeature did not forward tovictory-gpu, soVICTORY_D3D12_DEBUGandVICTORY_D3D12_WARPcould never turn on) names two calls that remove the device while the title loads its world. Both are gone.crates/victory-gpu/src/resource.rsinshared_texture:GetResourceAllocationInfowas asked about the title's texture description, which may carryALLOW_UNORDERED_ACCESSin a format the host cannot view as unordered access — an invalid call, answered by device removal. It now asks the live host texture's own description. The result is only theSAVEDstatistic of shared bytes.crates/victory-gpu/src/descriptor/host.rsinfits: a texture unordered view took the title's view format unconditionally.CreateUnorderedAccessViewwithB5G5R5A1_UNORM(the menu's) is an invalid call, and the debug layer removes the device.fitsnow askstyped_store(D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW) about the format the view really takes and rejects the ones the host cannot store, so the slot falls back to the existing null-view path.What it changes in the title
Before: device removed after ~550 frames at the start of the world load (
DXGI_ERROR_INVALID_CALL).After: the world loads, mesh pipelines run, menus at 30 fps; the title then dies of
DXGI_ERROR_DEVICE_HUNG— 1428 draws a frame at 4282 ms/frame, an 8 s submission. That is a throughput problem (world batching/culling), not an invalid call, and is not addressed here.Verification
cargo test -p victory-gpu: 141 passed, 2 failed —descriptor::host::tests::dynamic_slots_are_held_until_releasedandmemory::tests::lists_share_a_table_and_copies_keep_their_views, both failing onmainbefore this change.cargo check -p victory-gpuclean; the touched hunks arerustfmt-clean (the crate has pre-existing formatting drift under rustfmt 1.98.1).