Repository navigation
Backlog
Description
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: P0: main executable startup progress #870.
- Native C++ shader compiler coverage and migration: cpp-migration: remaining work before the runtime can use the native shader compiler (tracking) #2935. Its original body describes an earlier
cpp-migrationsnapshot; see recent updates and Integrate the native C++ shader translator and resource binding updates #3039 for integration intomain. - Pipeline-request batches and verification: Help wanted: claim a batch of 200 or 500 shader pipeline requests #2618.
- Earlier graphics translator refusal census: startup: gfx2hlsl refusals across an offline shader archive census (846 of 1,171 pairs are NGG vertex programs) #1723.
- Compute execution: tracking: console compute programs (device slot 67) translate and dispatch at run time, checklist of claimable items #2274 and help wanted: GPU translation, part 4 (compute shaders) #2022.
- Fixed mesh slot 57: tracking: fixed mesh pipelines (device slot 57) requested at run time, 0 of 298 translated; checklist of claimable items #2413 and help wanted: GPU translation, part 2 (mesh shaders) #1998.
- Indirect command execution, including DispatchMesh: startup-runtime: execute ExecuteIndirect, with GPU-written arguments and console command signatures #1759.
Stages and existing work
1. Container / request intake and metadata
- Offline native compiler reads runtime requests and publishes loadable cache entries: shader: make compile_dxil consume startup requests and publish runtime cache entries #2933, compile_dxil: read shader requests at revision 28 #2939, shader: consume startup requests and publish runtime cache entries in compile_dxil #2955; integrated into
mainby Integrate the native C++ shader translator and resource binding updates #3039. - Establish the slot 67 request wave-size interpretation and propagate it: shader: read the wave size of slot 67 compute requests (bit 20 of .sa dword 4) instead of assuming wave32 #2999, shader: read the wave size of slot 67 compute requests from .sa #3006. The metadata interpretation in shader: read the wave size of slot 67 compute requests (bit 20 of .sa dword 4) instead of assuming wave32 #2999 is inferred from a capture.
- Native request cache rekeying: cpp-migration: add --rekey mode to compile_dxil as native equivalent of shader_cache_rekey.py #3012, compile_dxil: add --rekey mode matching shader_cache_rekey.py #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 shader: lower packed byte dot products in direct compute #3060 and shader: lower packed halfword dot products in direct compute #3061 (merged into
main) and shader: lower s_lshl_b64, s_lshr_b64 and s_ashr_i64 in the direct compute path #3062 / shader: lower s_lshl_b64, s_lshr_b64 and s_ashr_i64 in the direct compute path #3067 (open). - Track fixed-view explicit-LOD image gather in shader: lower explicit-LOD 2D gather in the direct DXIL frontend #3066 / shader: lower explicit-LOD 2D gather in direct DXIL #3068 and its reference fixture in shader: verify derivative-selected gather across a mip view #3065. General gather requirements remain in startup: image_gather4 has no lowering and needs view/mip state the translator does not model #1802.
- Pixel-stage structured-to-raw descriptor refusal: startup: pixel-stage raw buffer loads through the structured-to-raw descriptor conversion are refused as "modified descriptor" since #2910 #3064.
3. Control flow and IR
- Develop the general control-flow and EXEC structurization described in docs: plan EXEC removal and structurization #2923, including joins and loops. The design is merged; individual runtime paths require their own evidence.
- Compute loop-exit semantics: compute: prove a loop break inside a block s_cbranch_execz skips (task list) #2645. fix(shader): prove scalar runs before compute EXEC restores #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: compute: lower the readfirstlane waterfall loop of a per-lane resource index (task list) #2644 and Python-frontend PR shader: lower bounded per-lane heap record indices in compute waterfalls (#2644 T3) #2861.
- Pass validated heap view information to in-process native compute: cpp-migration: pass captured heap view types into the in-runtime native compute route (#2958) #3023. Compiler-side native: read formatted loads through a byte-address rewritten descriptor #3034 and native: read one-channel typed loads through a GPU-selected heap descriptor #3042 were merged into
cpp-migration; check their status on the intended base. native: read GPU-selected heap slots raw and typed in one program #3063 covers a mixed raw/typed contract and is open againstcpp-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: cpp-migration: bind table buffers, 2D texture SRVs and 3D/1D texture UAVs for natively translated compute #2974, runtime: bind 3D and 1D texture UAVs and write them in the C++ compute manifest #2975, runtime: bind table buffers, 2D texture inputs and texture outputs on the in-process compute route #2993, and combined PR runtime: bind native compute table buffers and texture views #3049. See the PR for the outstanding controlled startup comparison.
- Track general compute and graphics coverage through help wanted: GPU translation, part 4 (compute shaders) #2022, help wanted: GPU translation, part 5 (vertex and pixel pipelines) #2023 and cpp-migration: remaining work before the runtime can use the native shader compiler (tracking) #2935.
- Address and independently rerun the original hardware reports in tests: native_sdwa_f16 checks and native_cvt_pk_u8_hardware fail on main #3052. The SDWA comparator fix tests: compare SDWA binary16 halves without the kept high half #3053 and packed-U8 fix shader: round packed U8 conversions with integer arithmetic #3058 are merged into
main; the issue requests further adapter confirmation.
6. Pipeline creation, execution and readback
- Native graphics compilation and draw: cpp-migration: compile a VS/PS pair on first draw through the ordinary graphics runtime #2978, runtime: compile a supported graphics pair on first use in the stand-in #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: tracking: fixed mesh pipelines (device slot 57) requested at run time, 0 of 298 translated; checklist of claimable items #2413, shader: translate gfx1013 mesh programs with run-time geometry for the startup runtime #1760, startup-runtime: execute ExecuteIndirect, with GPU-written arguments and console command signatures #1759 and design docs: plan slot 57 mesh DXIL translation #2924. Limited source-built Python translations and GPU fixtures exist; runtime integration and broader coverage remain.
- Persistent translated graphics PSO recipes: startup: persist and reuse translated 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 ci: a scheduled physical-GPU run of the _hardware tests on main (RTX 3070 + WARP) #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.
Metadata
Metadata
Assignees
Labels
No labels
Activity
runtime: route inline device descriptor creation through the shim (#3211
runtime: bind raw pixel buffer UAVs for native graphics draws
runtime: bind raw pixel buffer UAVs for native graphics draws (#3215)
shader: lower native pixel raw buffer atomic add
shader: lower native pixel raw buffer atomic add (#3217)
test: trace GPU-written indirect Dispatch to offscreen pixels (#3222)