fix(intel-gpu): a rest pipeline in place of a mesh pipeline before other work #546
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/546"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gilmarcs on 2026-11-28T00:39:11Z.
Summary
Works around an Intel Arc driver hang: a mesh pipeline left bound on a command list while other work is recorded after it hangs the GPU. A small "rest" pipeline is bound in its place before that work.
Fixes #227
Problem
On an Arc B580 (driver 32.0.101.9175) the game hung with
DXGI_ERROR_DEVICE_HUNGon the first large frame of the world, sometimes as a page fault at what looks like a null base plus an offset.What the measurements ruled out and pinned down:
This points to the driver, not to the translated title. I've reported it to Intel.
Changes
crates/victory-gpu/src/mesh_rest.rs: a vertex-only "rest" pipeline with an empty root signature, whose one point is clipped away.drawmode).Configuration
VICTORY_MESH_REST:binddrawoffNVIDIA and AMD are unchanged unless the switch is set.
Testing
cargo test -p victory-gpuwithVICTORY_MESH_REST=drawforced on, on the Arc B580: 454 passed, 0 failed. This includes a new test that builds the rest pipeline, draws with it and submits the list.cargo clippy -p victory-gpu --all-targets --all-features -- -D warnings: clean for the files this PR changes. The twomanual_is_multiple_oferrors inshadow.rsanddescriptor.rsare already onmain.--series-s --dlss off --fps 30,VICTORY_MESH_REST=bind: through the intro into the Vice City night street, with correct colour, lighting and character shading, at 9–13 fps with 500–1,250 draws/frame. Before the patch, a similar scene ran at 3 fps with 1,448 draws/frame. The extra binds did not show up as dropped draws or as preparation time: most of the frame was copies and textures.Known limitations / follow-ups
VICTORY_MESH_REST=drawon the same scene, read from the new per-frame line.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by jstrdev on 2026-11-28T14:29:30Z.
@gilmarcs Thanks for your work on Intel Arc compatibility! I've tested your mesh-rest patch on my B580 and obtained significantly better results, although a GPU hang is still possible.
Setup
63d8873, with minor local launcher modificationsConfiguration
VICTORY_MESH_REST=bindVICTORY_D3D12_DRED=lightVICTORY_TEXTURE_ROOM_PERCENT=60VICTORY_WARMUP_RESTART=0Results
DRED findings
DXGI_ERROR_DEVICE_HUNG(0x887A0006).0x8000313ce000.f0c7efd2aceb2aaa.7d85c9cab3c80721.Memory immediately before the crash
I haven't isolated the exact cause of this remaining hang. However, reaching controllable gameplay with the default TDR settings is a substantial improvement over my previous tests.
I'll test
VICTORY_MESH_REST=drawnext.Does this page fault resemble the driver issue you reported to Intel, or could it indicate a separate problem?
AI-assisted investigation and reporting. Diagnostic logs attached.
Previous investigation: https://github.com/fxceless/victory-fork/issues/1079
B580_meshrest_bind_diagnostics_20261128.txt
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gilmarcs on 2026-11-28T15:05:46Z.
More one GPU page fault at:
0x80001a55f000Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by jstrdev on 2026-11-28T15:33:17Z.
Update: I tested VICTORY_MESH_REST=draw on the same B580 setup.
Performance remains around 9–14 FPS during gameplay.
This is only one successful run, but draw mode appears promising. Further controlled testing is planned.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by cbw2580147369-commits on 2026-11-29T05:25:56Z.
Independent reproduction of your
drawresult, from a third Arc B580 - Windows 10 19045, 16 GB of RAM, driver 32.0.101.9175, base959dcaf(fxceless main, 28 November) with your patch applied by hand.Your config, with @gilmarcs's patch:
binddrawmemory.load_percent=92, 1.19 GB free0x887A0006No
DXGI_ERROR_DEVICE_HUNGin the draw run, and the same in the bind run - the patch holds on this card too. Frame rates: 18-20 fps in light views (366-951 draws/frame), 12.7 in the intro field (3691 draws), 12 on the night street (1118 draws), 7-9 in the heaviest views (1241-4600). Your 9-14 fps during gameplay matches.One thing to compare against your 10 min 35 s on
bind: I am on 16 GB, so 9 minutes is the memory wall, not the patch, and it gets there at 24.7 GB of private bytes. If your 25 GB figure is right, your machine must be 32 GB - that is the whole difference between our two runs, and it is worth saying so in the thread so nobody reads 10 min 35 s as achievable on 16 GB.Two notes:
DispatchMeshpage fault. The keyboard has no mapping for the analogue sticks, so the camera never moves here. Your DRED numbers (mesh shaderf0c7efd2aceb2aaa, pixel7d85c9cab3c80721, host list 1546, command 141/377) are the only trace of it I have.powershell -Filejoins-Extra a,binto one comma-separated string, andplaydeletes everyVICTORY_*variable it was not told about, so--set VICTORY_MESH_REST=draw,VICTORY_TEXTURE_ROOM_PERCENT=60arrives as one invalid variable and the code falls back to the Intel defaultbind. Check that thevictory_gpu::mesh_restline in the log saysmode=Drawbefore trusting a run. I measured three runs believing they weredrawwhen they werebind.Field report, samples and screenshots: https://github.com/cbw2580147369-commits/victory-arc-b580