startup-runtime: no shader translation for stream pipelines #1142

Closed
opened 2026-11-26 22:44:26 +00:00 by github-bot · 4 comments
Owner

@⁠denn0x on GitHub · 2026-11-24 01:45 UTC · original

Problem

Pipelines created from console subobject streams are wrapped but have no shader translation, so their draws are
skipped (no translation for stream shader).

Done when

The stream is parsed into its shader stages and root signature, req_* files are written for it like for normal
pipelines, and gfx2hlsl.py --pending translates at least one.

Context: docs/startup-runtime.md (#1135). Do not attach game files, dumps or logs that contain addresses or names from an executable; describe results in terms of the component tested.

AI-assisted (Claude Code).

**@⁠denn0x** on GitHub · 2026-11-24 01:45 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1142) ## Problem Pipelines created from console subobject streams are wrapped but have no shader translation, so their draws are skipped (`no translation for stream shader`). ## Done when The stream is parsed into its shader stages and root signature, `req_*` files are written for it like for normal pipelines, and `gfx2hlsl.py --pending` translates at least one. Context: `docs/startup-runtime.md` (#1135). Do not attach game files, dumps or logs that contain addresses or names from an executable; describe results in terms of the component tested. AI-assisted (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:44:27 +00:00
Author
Owner

@⁠rasptum on GitHub · 2026-11-24 02:04 UTC · original

Claiming this. Measured on an RTX 3060 run of #1135: 20 stream pipeline -> placeholder log lines in 75 s, all for one stream shader.

  • Scope: parse the subobject stream into its shader stages and root signature in the D3D12 stand-in, write req_* files for it like normal pipelines, and get gfx2hlsl.py --pending to translate at least one.
  • Evidence: a source-built stream fixture for the parser, and the request files from a run described by stage and size only.

AI-assisted (Claude Code).

**@⁠rasptum** on GitHub · 2026-11-24 02:04 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1142#issuecomment-7119735340) Claiming this. Measured on an RTX 3060 run of #1135: 20 `stream pipeline -> placeholder` log lines in 75 s, all for one stream shader. - **Scope:** parse the subobject stream into its shader stages and root signature in the D3D12 stand-in, write `req_*` files for it like normal pipelines, and get `gfx2hlsl.py --pending` to translate at least one. - **Evidence:** a source-built stream fixture for the parser, and the request files from a run described by stage and size only. AI-assisted (Claude Code).
Author
Owner

@⁠rasptum on GitHub · 2026-11-24 02:34 UTC · original

Narrowing my claim: the maintainer's candidate 72acbf0d already translates VS/PS stream requests through the startup cache, so I am not starting a parallel implementation. I will test that commit on the RTX 3060 / Windows 10 setup and report here, and only pick up what it leaves out (stages beyond VS/PS, the root-signature subobject) if that is still open afterwards. Anyone else is free to take those parts.

AI-assisted (Claude Code).

**@⁠rasptum** on GitHub · 2026-11-24 02:34 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1142#issuecomment-7120282336) Narrowing my claim: the maintainer's candidate 72acbf0d already translates VS/PS stream requests through the startup cache, so I am not starting a parallel implementation. I will test that commit on the RTX 3060 / Windows 10 setup and report here, and only pick up what it leaves out (stages beyond VS/PS, the root-signature subobject) if that is still open afterwards. Anyone else is free to take those parts. AI-assisted (Claude Code).
Author
Owner

@⁠rasptum on GitHub · 2026-11-24 06:16 UTC · original

Progress on my narrowed claim. I tested the maintainer's VS/PS stream translation (now on main as f38599ca) on an RTX 3060 / Windows 10 19045 build:

  • Stream pipelines no longer fall back to placeholders. Their VS/PS requests translate through the startup cache, and their draws run.
  • In a run through the first-run setup pages, 3 pipelines took their blend state from the stream and 13 from the console blend registers.
  • 13 pipelines translated; the one still missing is a 2D-array texture case, not a stream gap.

That covers the VS/PS part this issue asks for. I'm releasing the rest of my claim: stages beyond VS/PS and the root-signature subobject are free for anyone to take.

AI-assisted (Claude Code).

**@⁠rasptum** on GitHub · 2026-11-24 06:16 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1142#issuecomment-7123770991) Progress on my narrowed claim. I tested the maintainer's VS/PS stream translation (now on `main` as f38599ca) on an RTX 3060 / Windows 10 19045 build: - Stream pipelines no longer fall back to placeholders. Their VS/PS requests translate through the startup cache, and their draws run. - In a run through the first-run setup pages, 3 pipelines took their blend state from the stream and 13 from the console blend registers. - 13 pipelines translated; the one still missing is a 2D-array texture case, not a stream gap. That covers the VS/PS part this issue asks for. I'm releasing the rest of my claim: stages beyond VS/PS and the root-signature subobject are free for anyone to take. AI-assisted (Claude Code).
Author
Owner

@⁠SimSalabimse on GitHub · 2026-11-24 13:41 UTC · original

I'll take the remaining stream rasterizer slice of #1142. rasptum released stages beyond VS/PS and the root-signature subobject; VS/PS and stream depth-stencil are already on main. No other claim or open PR on the rasterizer part as of 13:38 UTC.

  • Scope: parse RASTERIZER / RASTERIZER1 from the slot-86 graphics stream and apply that state to the translated desktop PSO, instead of hardcoding solid / no cull / depth-clip on. Leave GS/HS/DS/CS streams for a follow-up.
  • Evidence: a source-built fixture in the style of startup_stream_depth, run on WARP and hardware. Back-face cull (or a fill-mode control) must change the 8×4 readback; a mutation that ignores the stream rasterizer must fail. No game files, no xgameruntime.dll.
  • Environment: Windows 11 26200, MSVC 19.42, RTX 4070 Ti.

AI-assisted (Grok Build).

**@⁠SimSalabimse** on GitHub · 2026-11-24 13:41 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1142#issuecomment-7133202615) I'll take the remaining stream rasterizer slice of #1142. rasptum released stages beyond VS/PS and the root-signature subobject; VS/PS and stream depth-stencil are already on main. No other claim or open PR on the rasterizer part as of 13:38 UTC. - Scope: parse `RASTERIZER` / `RASTERIZER1` from the slot-86 graphics stream and apply that state to the translated desktop PSO, instead of hardcoding solid / no cull / depth-clip on. Leave GS/HS/DS/CS streams for a follow-up. - Evidence: a source-built fixture in the style of `startup_stream_depth`, run on WARP and hardware. Back-face cull (or a fill-mode control) must change the 8×4 readback; a mutation that ignores the stream rasterizer must fail. No game files, no `xgameruntime.dll`. - Environment: Windows 11 26200, MSVC 19.42, RTX 4070 Ti. AI-assisted (Grok Build).
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#1142
No description provided.