Linux/Proton: translate --cache --pipelines aborts (std::terminate in dxil-spirv, HansKristian-Work/dxil-spirv#383) #3101
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#3101
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?
@arogan178 on GitHub · 2026-11-26 08:02 UTC · original
What
Under Proton,
victory translate --cache --pipelinesdies partway through withterminate called without an active exception(exit 3). The cause is a converter bug in vkd3d-proton, tracked upstream as HansKristian-Work/dxil-spirv#383. One title shader makes dxil-spirv callstd::terminate(), and under Wine that ends the whole process instead of refusing one pipeline.How it shows
71cae0), cross-built releasevictory.exe.title pipelines to start earlyor a progress line.WINEDEBUG=+sehshowsraise (22)(SIGABRT) on a worker thread. Of the PE modules loaded, onlyd3d12core.dllcontains the terminate message.VKD3D_SHADER_DUMP_PATH, exactly one of 1,357 DXIL modules has no.spv. Converting it with dxil-spirv masterb540c8a2reproduces the abort offline:Invalid type ID in cast<T>infixup_load_type_typed, on atextureLoad.f32whose resource has been given component typeU64(64-bit atomics).Impact
Workaround
Skip
--pipelines(translate --cachealone works) and let the run make the pipelines it needs.Fix
It needs a fix in dxil-spirv, then in the vkd3d-proton that a Proton build ships. The local change described in dxil-spirv#383 converts this shader, and the other 1,356 still convert. Until a fixed vkd3d-proton ships, Linux docs (#2082) could mention it.
@BastienRodz on GitHub · 2026-11-26 08:16 UTC · original
This one looks like our emitter, and open PR #2723 already removes it.
On
main63bcca4, the three heap-handle caches inemit/lower.rs(handles,entry_handles,join_handles) key a handle on the first property word only. An f32image_loadon a UAV (kind|0x1000, 0x409) and an image atomic (kind|0x1000, 0x105) through the same descriptor therefore share one handle, annotated{4098, 1033}(RWTexture2D<4xF32>). dxil-spirv then marks the handle anatomicBinOp.i64uses as 64-bit (emit_global_heapsforcesComponentType::U64), and thetextureLoad.f32on that same handle aborts infixup_load_type_typed. The{ i32 4098, i32 1033 }on the atomic's UAV that dxil-spirv#383 shows is that output; without the shared handle, the atomic would be annotated{4098, 261}.Synthetic repro: a compute program with an R32G32 UAV texture read by
image_load(dmask 0xF) and by a 64-bitimage_atomic_umax. It was tested at a fixed address, load first and atomic first, at an address offset by a root constant, and with the descriptor chosen by an if/else and used after the join:mainmain+ #2723dxc -dumpbin)RWTexture2D<4xF32>{4098,1033}, atomic{4098,261}dxil.dllvalidatorb540c8a2 --bindlessInvalid type ID in cast<T>,terminate called, exit 134--validateSo #2723 should stop the prebuild abort with no dxil-spirv change. dxil-spirv#383's guard is still worth having, so a bad module fails one pipeline instead of the process. #2723's own test covers a 32-bit atomic in one block; the cases above add the 64-bit atomic, a dynamic address and a join. Not checked against the title's module itself.
@ClosetPie107 on GitHub · 2026-11-26 09:04 UTC · original
Confirmed on the retail title: #2723 fixes this. RX 9070 (RDNA4), CachyOS, Mesa 26.3.1, Proton Experimental 11.0-20261112, vkd3d-proton master
ec207194with dxil-spirvb540c8a2. With #2723 merged on63bcca4:translate --cache --pipelinesmakes all 27,135 pipelines with no abort.main, the twoCS_VisHairvariants do.Details: #2723
AI-assisted (Claude Code).