dxil-spirv Failed to remap in ProjectScarlett: which bindings cause them (RX 9060 XT) #233
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brcly--TuxBox#233
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?
@gtb-sbe on GitHub · 2026-11-26 14:39 UTC · original
This is the
Failed to remapitem fromdocs/FOCUS.md, measured on an RX 9060 XT (1002:7590, Mesa 26.2.6 RADV, GE-Proton11-14),mainat9b31fd8, ProjectScarlett 1.0.2.1 offline. It also answers my question on #216.Summary: All 108
vkd3d result -3in a run up to the player selection aredxil-spirv: Failed to remap ...: about 56 compute pipelines and about 52 raster pipelines. On the compute side, the cause is mostly in the provider's choice of translation, not in dxil-spirv:create_pipeline_x_inneruses the program's root-less translation.Compute, root by root. From the pipeline failure record, the runtime cache and roots captured with
TUXBOX_CAPTURE_RASTER_ROOTS/TUXBOX_CAPTURE_SHADER_INPUTS:missing, used the root-less onemimg … not a sampler descriptor (InlineWord(N)), 9×unmapped descriptor at s6 + …sampler_root); never asked for a root-keyed oneunmapped descriptor at s6 + …, 10×mubuf … atomic on a non-UAV buffer, 7 translatemissingmeant refused, not "not ready yet". That was my question on #216.t1, space3, three root constants atb502, flags0xc00or0x400.t126,t63, space1,b503and similar. These are exactly the most frequent remap failures (SRV0:12617×, SRV1:639×). The root-keyed translations use the root's own registers.Trying the root-keyed translation first. I ran a local change: in the last arm,
compute_with_rootbeforeprepared. Of the 7, only 1 is then fully covered by its root:s21, space1;s66): the #227 case.t5, space3while the root's SRV is att1, space3. That looks like a separate translator issue.So the order change only pays off together with #227's literal samplers.
What's left, as far as I can tell:
InlineWordrefusals and the missing literal samplers. This likely accounts for part of the compute drop JeffreyBytes measured there (127 to 112); not checked against his counts.compute_for_original_rootalready does; (b) when the root-keyed translation is refused, record that refusal instead of falling back to the root-less one. (b) doesn't deliver more pipelines, but the failure record would then name the real cause instead of "driver compile failed". I can make this change with a Lanes scenario once #227 is in, unless someone prefers to fold it in there.unmapped descriptor at s6 + …(24 compute programs),mubuf … atomic on a non-UAV buffer(10), and thet5, space3root-SRV mismatch (2).-3): not analysed yet. The raster roots are captured, so I can do the same breakdown if it helps.I'm happy to run the #227 PR on this card once it's open.