0x887A0001 (INVALID_CALL) at frame 2,498 right after depth-texture UAV logs (RTX 3080, driver 621.14) #72
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#72
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Aminou973 on GitHub · 2026-11-24 21:09 UTC · original
RTX 3080 10 GB (driver 621.14, Win 11), the
fxceless/victory-gta6fork (main, diag build, fresh cache): 0x887A0001 (INVALID_CALL) device removal at frame 2,498, still in Prestream; the segment before presented 11,221 draws/frame with no hang, and an earlier run reached 3,610+ frames with no device loss — the upstream 0x887A0006 mesh-batch hang is gone on this card. Immediately before the removal, repeatedvictory_gpu::descriptor::host: unordered access view of a depth texture resource=0x102127e950 view=Some([56,...])/view=Some([62,4,0,1,...])logs — a compute pass taking UAVs of a depth texture. Rerunning withVICTORY_D3D12_DEBUG=1to name the exact rejected command. Measured on my own copy; no game data. AI-assisted.@Aminou973 on GitHub · 2026-11-24 21:14 UTC · original
Named with
VICTORY_D3D12_DEBUG=1, logged twice around the removal:So the invalid call is a >64 KB constant-buffer view — legal on the console's D3D12, refused by PC D3D12 (CBV max 64 KB). Device removal is INVALID_CALL right after this CBV is recorded into a list. Next: I'll try clamping
SizeInBytesto 65536 host-side and report whether the run gets past it.@Aminou973 on GitHub · 2026-11-24 21:35 UTC · original
The clamp works. Same card,
SizeInBytesclamped to 65536 host-side in both CBV paths:Patch here is 2 sites in
crates/victory-gpu/src/descriptor/host.rs(constant_atandmake/View::Constant):SizeInBytes: size.next_multiple_of(256).min(65536)with a one-time warn. Happy to open a PR (branch on my fork).@Aminou973 on GitHub · 2026-11-24 21:46 UTC · original
Run 4 on the same 3080, with
VICTORY_GPU_TIMING=1+ your speed-switch set (VICTORY_RELAY=2 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_*). Frame 2,076, clean, prologue again ~400 ms/frame with 4,609 draws — the switches did not move the frame time here.What the timings say the frame time actually is:
So on this card the next lever is the title-memory copy/watch path, not shader work: your
VICTORY_INPLACEstages (buffers used in place instead of copied) andVICTORY_CARD_BUFFERSare the mechanisms aimed at exactly this. One config note: the relay lines show nothing in the log —VICTORY_RELAY=2did not appear to activate (no "relay" lines at all); worth a check on this build.@Aminou973 on GitHub · 2026-11-24 21:56 UTC · original
VICTORY_INPLACE=1follow-up on the same 3080 (timing on, alsoLATE_WAIT=3+ card buffers): clean to frame 3,419, no removals. The mode activates but only its first stage:Per frame the host still checks ~10.3 GB of title memory through ~2,200 watches (~28 ms) and makes ~13,800 title copies — the dominant frame cost from the previous post is unchanged. So the big buffers the prologue streams through are not the 4 MB window. Is the "title buffers in place" stage implemented in this fork (
VICTORY_INPLACE_MBseems to bound only the window), or does it need what the README calls probe/first-stage only? If there's a switch/limit that lets the streamed buffers go in place, that's the frame-time lever this card is waiting for.@Aminou973 on GitHub · 2026-11-24 22:20 UTC · original
Correction to my posts above:
VICTORY_RELAYexists (host.rs:1733); "didn't activate" only meant no log line. And the GPU is a large share: your per-frame line gives the card ~51% busy at default (~242 ms GPU plus ~226 ms of preparation, serialized), ~60% with the speed switches (~232 + ~149). The constant-buffer fix here duplicates #24 (and #104 covers the staged copy); closing this in favour of #24.