Windows 11 / RX 9070 XT: second device removal (~8 min in world) after e5b0dc8 raw-twin fix #5
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?
Imported from Slaktarn700/SlaktarnVI. Originally posted by JulienReppert on 2026-11-27T17:30:46Z.
Follow-up to #1. With
e5b0dc8applied the raw-twin crash is gone — the log confirmsraw twins not made from their own dword: Windows' D3D12 removes the device for a raw view off 16 bytes— and the title now reaches the world at 25 fps. A different device removal still happens about 8 minutes in.System
0x7550, RDNA4), Adrenalin 32.0.32029.2010cargo build --locked --profile diag -p victory --features diagnostics --bins, commite5b0dc8victory.tomlpaths outside the repo; own copy of the title v1.0.2.1Run
scripts\play.ps1 -Exe <title>\game_scarlett_master.exewith-More @{VICTORY_D3D12_DEBUG='1'; VICTORY_D3D12_DRED='1'}(the debug layer is not installed here:no D3D12 debug layer ... 0x887A002D, but DRED breadcrumbs/markers are on).39.2 fps, 25.5 ms/frame (... 8.5 on the GPU ...), 440 draws/frame; then17.4 fps, 57.5 ms/frame, 1410 draws/frame, dropped 197 without a host pipeline (54 being made)Failure
Root-signature tables in the DRED report:
GetDeviceRemovedReason=0x887A0001(DXGI_ERROR_INVALID_CALL). No TDR or display-driver error in the Windows event log.Notes
e5b0dc8, every run lost the device in 49–102 s (ours: 173–185 s). I triedVICTORY_PIPELINE_WORKERS=1,VICTORY_LIBRARY_MAP=0,VICTORY_WAIT_RESIDENT=0, allVICTORY_PORT_*=0, 1920x1080 + 30 fps, a barevalhalla run, and compiler-crash guards; none helped. With the fix applied the run survives ~8× longer and reaches the world.slaktarn-monitor2.err(28k lines); I can paste any section needed.Imported from Slaktarn700/SlaktarnVI. Originally posted by JulienReppert on 2026-11-27T19:39:33Z.
Found and fixed the second device removal locally. It is the same bug class as the raw-twin fix in
4f6a3758, in a different path.Root cause:
constant_at()incrates/victory-gpu/src/descriptor/host.rsmade a raw SRV twin of a constant-buffer view withFirstElement = (gpu - buffer_base) / 4and no 16-byte alignment check. Windows D3D12 removes the device for a raw SRV whoseFirstElementis not a multiple of 4; vkd3d/Proton tolerates it.Bisect on
e5b0dc8(diag build, RX 9070 XT, Windows 11 26100):VICTORY_PORT_*offVICTORY_PORT_CONSTANTS=1onlyPORT_CONSTANTS=1+ patch belowplay.ps1(all ports on) + patchSo
VICTORY_PORT_CONSTANTSwas the remaining trigger.Patch:
Un-aligned CBVs get no raw twin (translated shaders read zeros there) instead of removing the device.
After the patch the game stays in the world past 10 minutes at 38 fps with default settings. Happy to send a PR if useful.
Imported from Slaktarn700/SlaktarnVI. Originally posted by Slaktarn700 on 2026-11-29T11:17:46Z.
Thank you for the bisect and the patch. It is in my working copy; I only have Linux, so your test is the proof. Not published yet.