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

Closed
opened 2026-11-24 01:45:30 +00:00 by denn0x · 4 comments
denn0x commented 2026-11-24 01:45:30 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T01:45:30Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6572713236 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1142). Originally posted by [denn0x](https://github.com/denn0x) on 2026-11-24T01:45:30Z. --- ## 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).
rasptum commented 2026-11-24 06:50:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T02:04:54Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119735340 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1142#issuecomment-7119735340). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-24T02:04:54Z. --- 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 commented 2026-11-24 06:50:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T02:34:44Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120282336 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1142#issuecomment-7120282336). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-24T02:34:44Z. --- 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 commented 2026-11-24 06:50:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T06:16:52Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7123770991 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1142#issuecomment-7123770991). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-24T06:16:52Z. --- 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).
SimSalabimse commented 2026-11-24 14:03:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-24T13:41:48Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7133202615 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1142#issuecomment-7133202615). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-24T13:41:48Z. --- 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).
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#1135
No description provided.