d3d12: on c1139ab2, ProjectScarlett stops after the account picker at 3840x2160: handoffs::plan refuses a batch with no phases (RX 6700 XT, RADV) #661
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 brcly/TuxBox. Originally posted by JeffreyBytes on 2026-12-02T20:07:47Z.
What I see
On main
c1139ab2, ProjectScarlett ends the same way in all three of my runs on an RX 6700 XT, right after the account picker at 3840x2160. The direct queue refuses a batch it can't order. The present fails, and then the title's watchdog (#215) exits with code 5. NickStallman hit the same refusal on an RTX 5090, and 1093i3511 hit it on an RX 6600 (four runs, exit 5 at 116-121 s). Both reports are in #533, so this isn't vendor-specific. This crash also blocks the 3840x2160 memory run brcly asked for in #292.Two clean runs ended at 113.6 s and 119.1 s. A run with a local logging build ended at 117.3 s. Every run logs:
Then come 11-12
winevulkan signaller_worker wait timed out with non-empty poll listlines and an access violation atgame_scarlett_master.exe+0x23CF683, which is the watchdog. The game exits with code 5. Frames drop from about 400 per 10 s to 154-282 just before. I see no GPU fault and noVK_ERROR_DEVICE_LOST, and the kernel log has nothing related.Which check refuses it
I added local logging at each refusal branch of
handoffs::planandPhase::resolve. It isn't meant for merging. It printed this once:So the refusal comes from
phases.is_empty() || copies.untracked || overlap == FixedOrMirroredBufferinruntime/d3d12/src/device/placement/handoffs.rs(around line 169). The batch has no phases. A write through a fixed or mirrored buffer also overlaps the first 64 KiB of a mapped image the batch reads. Both conditions are true, so I can't say yet which one is the real problem. I also haven't traced why the batch has no phases.Before
c1139ab2On
1b4ed472, two runs failed earlier, at 72.5 s and 71.5 s. Both loggedimport SRV at 0xd43200000, 118064 bytes stride=4 fmt=39 ... failed HRESULT(0x80004001)and then fail-fast with exit 2. That's the same failure DrArroway posted in #656. From the code (not tested), I think the GPU reservation ID that1b4ed472gave the 0x900200000 aperture makesbuffer_atandfixed_placement(from9c3cf86f) return E_NOTIMPL there.gpu_buffer_for_viewinc1139ab2removes it, and none of my three runs onc1139ab2had an import failure. Those earlier crashes hid any later failure, so on this card I can't tell whether the refusal is new inc1139ab2. 1093i3511 saw the same line on1b4ed472.Not tested
I haven't tried a lower resolution. 1093i3511 hit it with the Series S profile, so my guess is resolution doesn't matter, but I haven't checked. I also haven't tested NVIDIA on
c1139ab2. 1093i3511 reports the refusal doesn't appear withTUXBOX_XMEM_PRIVATE_VIEWS=1; I haven't tried that either.Next
I'm working on a fix. First I'll trace why this batch reaches
planwith no phases. Then I'll add a unit test toruntime/d3d12/src/tests/device/placement/handoffs.rsthat builds a batch like this one and fails on this refusal. Nothing to share yet.Setup: RX 6700 XT (1002:73df), Mesa 26.3.1 RADV, Linux 7.3.6 (CachyOS), GE-Proton11-15. I launch with
tuxbox.py run(offline), warm shader caches, and no forced resolution. The title presents at 3840x2160 on a 4K display.Imported from brcly/TuxBox. Originally posted by Kayotic1337 on 2026-12-02T20:38:29Z.
Same stop on RDNA4. RX 9070 XT (
1002:7550), Mesa 26.3.1 RADV, GE-Proton11-15, mainc1139ab2,tuxbox.py run, warm caches, 3840x2160.command list cannot record cannot order buffer and texture accesses: HRESULT(0x80004001), the batch rejected,PresentX failed planes=1 HRESULT=0x80004001. No GPU fault, nothing in the kernel log.TUXBOX_XMEM_PRIVATE_VIEWS=1: exit 3 after 34.1 s, before the title menu.radv/amdgpu: The CS has been rejected, see dmesg for more information (-1), thenVK_ERROR_DEVICE_LOST. The kernel log has nothing for it. The refusal line doesn't appear, but that run never got as far as the place where it shows up. So it doesn't tell whether private views avoid it. The early CS rejection looks like what #660 describes. I haven't tested #660.One run each.
Imported from brcly/TuxBox. Originally posted by DrArroway on 2026-12-02T20:41:19Z.
Confirming we reproduce the exact same
handoffs::plan0x80004001refusal onc1139ab2right after the account picker onAMD Radeon RX 6900 XT (1002:73bf)(3840x2160, RADV /GE-Proton11-15,TUXBOX_XMEM_PRIVATE_VIEWS=1).FWIW, when we let
FixedOrMirroredBufferdegrade locally, three adjacent refusal sites fired immediately behind it before reaching the 3D world:handoffs.rs:direct=truefromBufferCopies's address-blindreads/writesbooleans (e.g., placed upload copies alongside heap-backed draws/dispatches).remapped.rs: mapped textures withhas_nullhittingE_NOTIMPLon!stableRT/UAV writes.shader_buffers.rs: conservativeaccesses.indirectscans rejecting on unrelated deadBacking::Fixedimports.Letting those coarse overlaps degrade to whole-submission ordering via
report_alias— while keeping intra-commandQueueBackeddraw/dispatch alias rejections strict — cleared the account picker into the 3D world and passedlanes-selftest32/32withTUXBOX_XMEM_PRIVATE_VIEWS=1onAMD Radeon RX 6900 XT (1002:73bf).Happy to test your PR branch on both
AMD Radeon RX 6900 XT (1002:73bf)andAMD Raphael Radeon 610M iGPU (1002:164e)once it's up.Imported from brcly/TuxBox. Originally posted by DrArroway on 2026-12-02T21:12:16Z.
Quick heads-up @JeffreyBytes: as noted on
#635, we're stepping away for now so please don't wait on us for PR testing onAMD Radeon RX 6900 XT (1002:73bf)orAMD Raphael Radeon 610M iGPU (1002:164e).For reference, we posted the rest of our
c1139ab2findings and local patch notes here: https://github.com/brcly/TuxBox/issues/533#issuecomment-7358936475. Good luck with the fix!Imported from brcly/TuxBox. Originally posted by JeffreyBytes on 2026-12-02T21:25:18Z.
latest run on
be1f7246, this issue no longer persists.Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-12-02T21:28:45Z.
One data point on
7b308cd4from an RTX 5090 (NVIDIA 620.70.10, GE-Proton11-15, warm caches, default settings,TUXBOX_TRACE_GPU_FAULT=1), one headless run:PS 8fdb2b7d MS 4db9a403. That's the same draw family as the AMD faults on #603 and the faults we see at the cutscene-to-gameplay switch on theca7d1bc9line.So on this card
7b308cd4gets past this issue's refusal and stops at the next known fault, not a new one. It's a single run, so I can't say whether the refusal is gone or just didn't happen this time.