startup: native final pass presents unwritten data (two flat colours); untranslated compute passes suspected #3902

Open
opened 2026-12-02 23:23:45 +00:00 by github-bot · 1 comment
Owner

@⁠SimSalabimse on GitHub · 2026-12-02 23:22 UTC · original

Summary

In the native path the final full-surface pass presents data nobody wrote. The presented surface is two flat colours, one per pixel, in a fixed split, with one channel exactly zero. Investigation is ongoing; this issue records what is measured so far.

What was measured

Two native-path runs of about 410 s each on the Windows test PC (Simsalabim), from the surface statistics at present:

  • From the first coloured frame to the end of the run the mean colour of the presented surface is the same in both runs: two pure colours at a fixed 55% / 45% split, one channel exactly zero, alpha 255.
  • A previous run showed the same split with the second colour black instead of the other pure colour.
  • The set of drawn pipelines, the clear shapes and the refusals of the pipelines that draw did not change between these runs, so no newly drawn pipeline explains the picture.
  • Compute work that feeds the passes is mostly not running: in the later run about 7.7k compute dispatches were translated, about 89k were refused and about 2.3M had no native translation (in the earlier run: about 8.6k, 68k and 1.9M).
  • Several scene passes are refused, including a three-target pass at a lower resolution than the present surface and a group of indirect draws writing a float and a uint target with depth.

What is inferred, not proved

A final pass samples an input (a render target or compute-written buffer from a refused pass or an untranslated dispatch) that holds unwritten data, and its output saturates to 0 or 1 per channel. This fits the split but has not been shown by a producer probe or a pixel dump.

Next step

Run the existing producer diagnostic (X2W_RED_PRODUCER_AUTO) or the draw-dump pixel probe (X2W_DRAW_DUMP_FRAME plus X2W_DRAW_DUMP_PIXEL) around the first steady coloured frames to name the pass that writes the surface and the input it reads.

  • #870 (startup progress)
  • #3479 (diagnostics)
  • No draft PR for this yet.

AI-Assisted

**@⁠SimSalabimse** on GitHub · 2026-12-02 23:22 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3900) ## Summary In the native path the final full-surface pass presents data nobody wrote. The presented surface is two flat colours, one per pixel, in a fixed split, with one channel exactly zero. Investigation is ongoing; this issue records what is measured so far. ## What was measured Two native-path runs of about 410 s each on the Windows test PC (Simsalabim), from the surface statistics at present: - From the first coloured frame to the end of the run the mean colour of the presented surface is the same in both runs: two pure colours at a fixed 55% / 45% split, one channel exactly zero, alpha 255. - A previous run showed the same split with the second colour black instead of the other pure colour. - The set of drawn pipelines, the clear shapes and the refusals of the pipelines that draw did not change between these runs, so no newly drawn pipeline explains the picture. - Compute work that feeds the passes is mostly not running: in the later run about 7.7k compute dispatches were translated, about 89k were refused and about 2.3M had no native translation (in the earlier run: about 8.6k, 68k and 1.9M). - Several scene passes are refused, including a three-target pass at a lower resolution than the present surface and a group of indirect draws writing a float and a uint target with depth. ## What is inferred, not proved A final pass samples an input (a render target or compute-written buffer from a refused pass or an untranslated dispatch) that holds unwritten data, and its output saturates to 0 or 1 per channel. This fits the split but has not been shown by a producer probe or a pixel dump. ## Next step Run the existing producer diagnostic (`X2W_RED_PRODUCER_AUTO`) or the draw-dump pixel probe (`X2W_DRAW_DUMP_FRAME` plus `X2W_DRAW_DUMP_PIXEL`) around the first steady coloured frames to name the pass that writes the surface and the input it reads. ## Related - #870 (startup progress) - #3479 (diagnostics) - No draft PR for this yet. AI-Assisted
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 23:23:45 +00:00
Author
Owner

@⁠Leyukaka on GitHub · 2026-12-02 23:39 UTC · original

We looked at what seems to be the same stage on our side. Our input reads back as zero rather than two colours, so treat this as a neighbouring data point, not a confirmation.

Measured

  • The final full-surface pass samples a scene colour texture that no translated pass wrote: it reads back as all zero before each composite.
  • The passes that do draw into that chain before it are post-process (bloom/upsample). They run with correct state, but their own inputs are black, so their targets come out unchanged.
  • In a recent run (with the #3778 refresh disabled locally to avoid the stall below), the native Mesh86 pipelines are created, but every dispatch is refused before execution: "material buffer is smaller than the shader's minimum read" and "an input buffer descriptor has zero records".

Inferred, not proved

  • The scene geometry comes from the mesh-shader pipelines (slot 57 / native Mesh86), so nothing upstream fills the chain. That points at mesh rather than compute as our first blocker.

Method

#3822 (open) adds an opt-in resource write trace and a targeted dump that name the writers of a given resource. Happy to share the exact steps.

If your runs stop around the 3D scene entry, see #3892.

**@⁠Leyukaka** on GitHub · 2026-12-02 23:39 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3900#issuecomment-7362270254) We looked at what seems to be the same stage on our side. Our input reads back as zero rather than two colours, so treat this as a neighbouring data point, not a confirmation. **Measured** - The final full-surface pass samples a scene colour texture that no translated pass wrote: it reads back as all zero before each composite. - The passes that do draw into that chain before it are post-process (bloom/upsample). They run with correct state, but their own inputs are black, so their targets come out unchanged. - In a recent run (with the #3778 refresh disabled locally to avoid the stall below), the native Mesh86 pipelines are created, but every dispatch is refused before execution: "material buffer is smaller than the shader's minimum read" and "an input buffer descriptor has zero records". **Inferred, not proved** - The scene geometry comes from the mesh-shader pipelines (slot 57 / native Mesh86), so nothing upstream fills the chain. That points at mesh rather than compute as our first blocker. **Method** #3822 (open) adds an opt-in resource write trace and a targeted dump that name the writers of a given resource. Happy to share the exact steps. If your runs stop around the 3D scene entry, see #3892.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3902
No description provided.