dxil-spirv Failed to remap in ProjectScarlett: which bindings cause them (RX 9060 XT) #233

Open
opened 2026-11-26 14:48:40 +00:00 by github-bot · 0 comments
Owner

@⁠gtb-sbe on GitHub · 2026-11-26 14:39 UTC · original

This is the Failed to remap item from docs/FOCUS.md, measured on an RX 9060 XT (1002:7590, Mesa 26.2.6 RADV, GE-Proton11-14), main at 9b31fd8, ProjectScarlett 1.0.2.1 offline. It also answers my question on #216.

Summary: All 108 vkd3d result -3 in a run up to the player selection are dxil-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:

  • When no translation for the pipeline's own root signature is available, create_pipeline_x_inner uses the program's root-less translation.
  • The root-less translation guesses its registers from the ISA, and the root may not declare them, so vkd3d can't remap them.

Compute, root by root. From the pipeline failure record, the runtime cache and roots captured with TUXBOX_CAPTURE_RASTER_ROOTS/TUXBOX_CAPTURE_SHADER_INPUTS:

Compute pipelines What the provider did Translation for the pipeline's root
24 looked up the root-keyed translation, found it missing, used the root-less one refused by the translator: 15× mimg … not a sampler descriptor (InlineWord(N)), 9× unmapped descriptor at s6 + …
32 used the root-less translation first (last arm, after sampler_root); never asked for a root-keyed one translated offline against the captured root: 15× unmapped descriptor at s6 + …, 10× mubuf … atomic on a non-UAV buffer, 7 translate
  • So missing meant refused, not "not ready yet". That was my question on #216.
  • All 32 in the second row share one root layout: three tables, a root SRV at t1, space3, three root constants at b502, flags 0xc00 or 0x400.
  • For the 7 that translate, the root-less translations declare t126, t63, space1, b503 and similar. These are exactly the most frequent remap failures (SRV 0:126 17×, SRV 1:63 9×). 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_root before prepared. Of the 7, only 1 is then fully covered by its root:

  • 3 still lack a literal sampler in the root (s21, space1; s66): the #227 case.
  • 2 declare t5, space3 while the root's SRV is at t1, 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:

  • Covered by #227 (NickStallman's literal-sampler branch, JeffreyBytes' mesh part): the InlineWord refusals 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.
  • Provider, small: (a) ask for the root-keyed translation before the root-less one for a root-less program, as compute_for_original_root already 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.
  • Translator, unclaimed: unmapped descriptor at s6 + … (24 compute programs), mubuf … atomic on a non-UAV buffer (10), and the t5, space3 root-SRV mismatch (2).
  • Raster (~52 -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.

**@⁠gtb-sbe** on GitHub · 2026-11-26 14:39 UTC · [original](https://github.com/brcly/TuxBox/issues/233) This is the `Failed to remap` item from `docs/FOCUS.md`, measured on an RX 9060 XT (`1002:7590`, Mesa 26.2.6 RADV, GE-Proton11-14), `main` at `9b31fd8`, ProjectScarlett 1.0.2.1 offline. It also answers my question on #216. **Summary:** All 108 `vkd3d result -3` in a run up to the player selection are `dxil-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: - When no translation for the pipeline's own root signature is available, `create_pipeline_x_inner` uses the program's root-less translation. - The root-less translation guesses its registers from the ISA, and the root may not declare them, so vkd3d can't remap them. **Compute, root by root.** From the pipeline failure record, the runtime cache and roots captured with `TUXBOX_CAPTURE_RASTER_ROOTS`/`TUXBOX_CAPTURE_SHADER_INPUTS`: | Compute pipelines | What the provider did | Translation for the pipeline's root | | --- | --- | --- | | 24 | looked up the root-keyed translation, found it `missing`, used the root-less one | refused by the translator: 15× `mimg … not a sampler descriptor (InlineWord(N))`, 9× `unmapped descriptor at s6 + …` | | 32 | used the root-less translation first (last arm, after `sampler_root`); never asked for a root-keyed one | translated offline against the captured root: 15× `unmapped descriptor at s6 + …`, 10× `mubuf … atomic on a non-UAV buffer`, 7 translate | - So `missing` meant refused, not "not ready yet". That was my question on #216. - All 32 in the second row share one root layout: three tables, a root SRV at `t1, space3`, three root constants at `b502`, flags `0xc00` or `0x400`. - For the 7 that translate, the root-less translations declare `t126`, `t63, space1`, `b503` and similar. These are exactly the most frequent remap failures (SRV `0:126` 17×, SRV `1:63` 9×). 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_root` before `prepared`. Of the 7, only 1 is then fully covered by its root: - 3 still lack a literal sampler in the root (`s21, space1`; `s66`): the #227 case. - 2 declare `t5, space3` while the root's SRV is at `t1, 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:** - Covered by #227 (NickStallman's literal-sampler branch, JeffreyBytes' mesh part): the `InlineWord` refusals 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. - Provider, small: (a) ask for the root-keyed translation before the root-less one for a root-less program, as `compute_for_original_root` already 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. - Translator, unclaimed: `unmapped descriptor at s6 + …` (24 compute programs), `mubuf … atomic on a non-UAV buffer` (10), and the `t5, space3` root-SRV mismatch (2). - Raster (~52 `-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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:48:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.