Tracking: end-to-end shader translation and D3D12 pipeline execution #3074

Open
opened 2026-11-27 14:14:01 +00:00 by sydney-0o · 0 comments
sydney-0o commented 2026-11-27 14:14:01 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by sydney-0o on 2026-11-27T14:14:01Z.


Goal

Track end-to-end progress for translating and executing supported Xbox Series X|S shader programs on Windows. Link focused issues and PRs for each stage, record their base and tested commit, and keep compile, PSO creation and GPU-output results distinct.

Xbox shader container or runtime request
  -> decode GFX10 instructions and stage metadata
  -> build control-flow graph and intermediate representation
  -> analyze EXEC and resource provenance
  -> emit desktop DXIL and binding metadata
  -> create a D3D12 pipeline and execute it
  -> verify output through GPU readback

Existing trackers

  • Runtime integration and startup evidence: #870.
  • Native C++ shader compiler coverage and migration: #2935. Its original body describes an earlier cpp-migration snapshot; see recent updates and #3039 for integration into main.
  • Pipeline-request batches and verification: #2618.
  • Earlier graphics translator refusal census: #1723.
  • Compute execution: #2274 and #2022.
  • Fixed mesh slot 57: #2413 and #1998.
  • Indirect command execution, including DispatchMesh: #1759.

Stages and existing work

1. Container / request intake and metadata

  • Offline native compiler reads runtime requests and publishes loadable cache entries: #2933, #2939, #2955; integrated into main by #3039.
  • Establish the slot 67 request wave-size interpretation and propagate it: #2999, #3006. The metadata interpretation in #2999 is inferred from a capture.
  • Native request cache rekeying: #3012, #3014.

2. GFX10 decoding and instruction semantics

  • Track supported operand forms, modifiers, scalar/vector operations and stage-specific inputs with source-built tests. Examples of direct DXIL work are #3060 and #3061 (merged into main) and #3062 / #3067 (open).
  • Track fixed-view explicit-LOD image gather in #3066 / #3068 and its reference fixture in #3065. General gather requirements remain in #1802.
  • Pixel-stage structured-to-raw descriptor refusal: #3064.

3. Control flow and IR

  • Develop the general control-flow and EXEC structurization described in #2923, including joins and loops. The design is merged; individual runtime paths require their own evidence.
  • Compute loop-exit semantics: #2645. #2900 is a merged Python-frontend slice; it does not establish general C++ loop coverage.

4. EXEC, wave semantics and resource provenance

  • Track per-lane resource-index waterfall semantics: #2644 and Python-frontend PR #2861.
  • Pass validated heap view information to in-process native compute: #3023. Compiler-side #3034 and #3042 were merged into cpp-migration; check their status on the intended base. #3063 covers a mixed raw/typed contract and is open against cpp-migration.
  • Verify wave32/wave64 and helper-lane behavior on the target stage, including unsupported cases and negative controls.

5. Desktop DXIL and binding contract

  • Extend native compute runtime bindings for table buffers and texture views: #2974, #2975, #2993, and combined PR #3049. See the PR for the outstanding controlled startup comparison.
  • Track general compute and graphics coverage through #2022, #2023 and #2935.
  • Address and independently rerun the original hardware reports in #3052. The SDWA comparator fix #3053 and packed-U8 fix #3058 are merged into main; the issue requests further adapter confirmation.

6. Pipeline creation, execution and readback

  • Native graphics compilation and draw: #2978, #2981. The PR has an open late-failure fallback finding and must be checked against current main.
  • Fixed slot 57 mesh pipeline translation and runtime integration: #2413, #1760, #1759 and design #2924. Limited source-built Python translations and GPU fixtures exist; runtime integration and broader coverage remain.
  • Persistent translated graphics PSO recipes: #2919. This is a state recipe cache and still calls D3D12 pipeline creation.
  • Run hardware fixtures with adapter, driver, Windows build and debug-layer status; report capability skips separately. Hardware coverage is tracked in #966.

Completion evidence

For a claimed behavior, record the exact base/head and command, source-built or licensed input, translation result, binding contract, pipeline creation, and fenced GPU output against an independent expected result. Include a negative control and any capability skip. A translated module or a passing isolated fixture establishes only the behavior exercised by that check. Track broader runtime observations in #870.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6648149173 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3074). Originally posted by [sydney-0o](https://github.com/sydney-0o) on 2026-11-27T14:14:01Z. --- ## Goal Track end-to-end progress for translating and executing supported Xbox Series X|S shader programs on Windows. Link focused issues and PRs for each stage, record their base and tested commit, and keep compile, PSO creation and GPU-output results distinct. ```text Xbox shader container or runtime request -> decode GFX10 instructions and stage metadata -> build control-flow graph and intermediate representation -> analyze EXEC and resource provenance -> emit desktop DXIL and binding metadata -> create a D3D12 pipeline and execute it -> verify output through GPU readback ``` ## Existing trackers - Runtime integration and startup evidence: #870. - Native C++ shader compiler coverage and migration: #2935. Its original body describes an earlier `cpp-migration` snapshot; see recent updates and #3039 for integration into `main`. - Pipeline-request batches and verification: #2618. - Earlier graphics translator refusal census: #1723. - Compute execution: #2274 and #2022. - Fixed mesh slot 57: #2413 and #1998. - Indirect command execution, including DispatchMesh: #1759. ## Stages and existing work ### 1. Container / request intake and metadata - [x] Offline native compiler reads runtime requests and publishes loadable cache entries: #2933, #2939, #2955; integrated into `main` by #3039. - [ ] Establish the slot 67 request wave-size interpretation and propagate it: #2999, #3006. The metadata interpretation in #2999 is inferred from a capture. - [ ] Native request cache rekeying: #3012, #3014. ### 2. GFX10 decoding and instruction semantics - [ ] Track supported operand forms, modifiers, scalar/vector operations and stage-specific inputs with source-built tests. Examples of direct DXIL work are #3060 and #3061 (merged into `main`) and #3062 / #3067 (open). - [ ] Track fixed-view explicit-LOD image gather in #3066 / #3068 and its reference fixture in #3065. General gather requirements remain in #1802. - [ ] Pixel-stage structured-to-raw descriptor refusal: #3064. ### 3. Control flow and IR - [ ] Develop the general control-flow and EXEC structurization described in #2923, including joins and loops. The design is merged; individual runtime paths require their own evidence. - [ ] Compute loop-exit semantics: #2645. #2900 is a merged Python-frontend slice; it does not establish general C++ loop coverage. ### 4. EXEC, wave semantics and resource provenance - [ ] Track per-lane resource-index waterfall semantics: #2644 and Python-frontend PR #2861. - [ ] Pass validated heap view information to in-process native compute: #3023. Compiler-side #3034 and #3042 were merged into `cpp-migration`; check their status on the intended base. #3063 covers a mixed raw/typed contract and is open against `cpp-migration`. - [ ] Verify wave32/wave64 and helper-lane behavior on the target stage, including unsupported cases and negative controls. ### 5. Desktop DXIL and binding contract - [ ] Extend native compute runtime bindings for table buffers and texture views: #2974, #2975, #2993, and combined PR #3049. See the PR for the outstanding controlled startup comparison. - [ ] Track general compute and graphics coverage through #2022, #2023 and #2935. - [ ] Address and independently rerun the original hardware reports in #3052. The SDWA comparator fix #3053 and packed-U8 fix #3058 are merged into `main`; the issue requests further adapter confirmation. ### 6. Pipeline creation, execution and readback - [ ] Native graphics compilation and draw: #2978, #2981. The PR has an open late-failure fallback finding and must be checked against current `main`. - [ ] Fixed slot 57 mesh pipeline translation and runtime integration: #2413, #1760, #1759 and design #2924. Limited source-built Python translations and GPU fixtures exist; runtime integration and broader coverage remain. - [ ] Persistent translated graphics PSO recipes: #2919. This is a state recipe cache and still calls D3D12 pipeline creation. - [ ] Run hardware fixtures with adapter, driver, Windows build and debug-layer status; report capability skips separately. Hardware coverage is tracked in #966. ## Completion evidence For a claimed behavior, record the exact base/head and command, source-built or licensed input, translation result, binding contract, pipeline creation, and fenced GPU output against an independent expected result. Include a negative control and any capability skip. A translated module or a passing isolated fixture establishes only the behavior exercised by that check. Track broader runtime observations in #870. AI-assisted.
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#3074
No description provided.