Repository navigation
Conversation
|
The test build does not compile, so nothing in this PR can be exercised yet: The library itself builds ( Once that is fixed I can run the GPU suite under Wine + vkd3d-proton as with the other PRs. No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent). |
With indirect execution on, the world takes more dynamic descriptor slots than a view heap has (65,536): a frame binds thousands of tables holding constant buffers, each made afresh. When `HostHeap::dynamic` found none, `State::tables` left the table unmade and the draw ran anyway, its shaders indexing the title's own slots for that table. Those hold whatever was mirrored there, not what the shader expects, and the host GPU page-faulted at a low address about a second after the "no free dynamic descriptor slots" warning (device removed, DXGI_ERROR_DEVICE_HUNG). - A draw, mesh dispatch, dispatch or indirect execution whose bind could not make a table is dropped, counted with the other dropped draws. - Dynamic slots per view heap go from 2^16 to 2^19, so the world's frames fit. On a host that caps view heaps at 1,000,000 views this leaves fewer slots mirroring the title's (475,712 instead of 934,464).
7831e92 to
6d8d197
Compare
|
Re-checked the new head So the test target still does not compile and the GPU suite cannot run. Moving the new tests into the existing No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent). |
|
Raising #135 makes the same change but keeps Static review, not built or run. |
|
Closing this in favour of #135, which makes the same two changes, keeps the smaller reserve when the host caps the view heap (the NVIDIA concern raised above), and also defers releasing replaced host resources. On the test build: the Runs on
A second run of the last build, which skipped the intro and reached a heavier scene, ended the same way after one submission took 4.0 s. In both, the GPU had been taking 60 to 70 ms per frame until that submission, so it looks like one mesh dispatch running away rather than a slow frame. That is the failure left on this machine once the slots and the freed textures are dealt with. No game data used. AI-assisted. |
…slots; more dynamic slots) into the integration Already covered by PR Marvisak#135's merge (DYNAMIC 1<<19, drop on unmade table): the branch's resolution is kept. Constant tables that find no slots drop the draw, and other tables fall back to the title's slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
|
Tested head |
…evice removal) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolved the conflict in emit/lower.rs by keeping both new helpers (f64_bits_to_f32_bits from Marvisak#134 and src64_dwords from Marvisak#135). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
With indirect execution on (35b054e), the world ends on a host GPU page fault at a low address within a minute:
In both runs where I saw it, this warning came about one second earlier:
The world's frames bind thousands of tables that hold constant buffers, each made afresh in the dynamic slots, and the 65,536 slots of a view heap run out. When
HostHeap::dynamicreturnsNone,State::tablesskips the table but the draw still runs.bindthen gives the shader the title's own table offset, so it indexes the title's slots for that table, which hold whatever was mirrored there and not what the shader expects.Change
draw.rs: a draw, mesh dispatch, dispatch or indirect execution whose bind could not make a table is dropped instead of executed. It is counted with the other dropped draws.descriptor/host.rs: dynamic slots per view heap go from 2^16 to 2^19, so the world's frames fit and those draws are not dropped in practice.Testing
One machine: Windows 11, AMD RX 9070, diagnostics build with
VICTORY_D3D12_DEBUG=1andVICTORY_D3D12_DRED=1.Not tested in the game on current
main: there the change applies cleanly andcargo build --profile diag -p victory --features diagnosticssucceeds. Thevictory-gpudescriptor tests pass on 35b054e with the change. Onmainat 9aef3d9 thevictory-gputest target did not compile for me (mod testsis defined twice inhost.rs), which this change does not touch.Notes for review
DYNAMIChas a cost on a host that caps view heaps at 1,000,000 views: fewer slots mirror the title's (475,712 instead of 934,464), so more tables go through the dynamic slots there. I have no NVIDIA card to measure it. Dropping the draw is the part that fixes the fault; the size is yours to set.🤖 Generated with Claude Code