Integrate Xbox2Windows shader translation and D3D12 rendering #2898
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2898
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2898/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@denn0x on GitHub · 2026-11-26 17:11 UTC · original
denn0x:xbox2windows-renderer-integration→main· +138920 −3501 · 540 files · 1 commits · closed without mergingRendering changes
Verification
The renderer DLL and shader lowering test built on Windows. Shader lowering, heap layout, and texture placement checks passed, including texture placement on WARP and hardware. Full-suite and end-to-end validation of this snapshot are pending. This draft needs reconciliation with current main before merge.
@denn0x on GitHub · 2026-11-26 17:43 UTC · original
How the rendering path works in this draft
src/x2w_shader/andsrc/shader_db/.Verification at commit
87a6003fcThe Windows renderer DLL built successfully. All 11 focused native tests passed, covering shader lowering, sampler decoding, descriptor layout, view bounds, and small-texture placement. The placement and view-bound checks ran on both WARP and Radeon hardware. The placement test writes different values to the allocated textures and reads them back to catch overlapping heap ranges.
Full-suite testing and end-to-end visual validation of this commit are still pending. The draft also needs its conflicts with current
mainresolved before merge.@MasterDomino on GitHub · 2026-11-26 17:50 UTC · original
Test results for this draft at
87a6003fon an RX 9070 XT, to help with the split. No review of the code itself.Environment: Windows 11 build 26300.9974, AMD Radeon RX 9070 XT, driver 32.0.32029.2010, MSVC 19.44.35221,
releasepreset, D3D12 debug layer not enabled.Build: two problems on a clean configure.
tests/gpu_bind.cmakeis included atCMakeLists.txt:633, butfind_program(DXC_EXECUTABLE dxc REQUIRED)comes at line 1759.startup_gpu_bind_{bind,bounds}_main.hare therefore generated with an empty command, and the build fails withCreateProcess failed. I worked around it with-DDXC_EXECUTABLE=<path>at configure.cpu_placed_dxr_provider.dllfails to link:d3d12_xs_device.cpp.obj : error LNK2019: unresolved external symbol DCompositionCreateDevicefromTitleComposition::show. The target needsdcomp. All eight startup stand-in DLLs build.New tests: the 512 tests this PR registers that
maindoes not have (--tests-from-file,-j 8). 484 passed, 19 were capability skips (77), mostly WARP mesh dispatch andstartup_cx_async_*, andx2w_vs_lower_size_testis disabled. 8 failed:startup_scalar_pack_hhAssertionError: s_pack_hh_b32_b16 on a lane maskstartup_image_sample_bUnsupported('image_sample_b form v5, [v1, v2], s0 dim:SQ_RSRC_IMG_2D dmask:0x1')startup_mesh_barrier_rangesnegative control: X2W_MESH_BARRIER_RANGES=0 refuses again: MISMATCHstartup_mesh_exec_lineageassert 'lane-dependent vcc' in got→('parent', 'ok')startup_mesh_lane_scc1 check(s) failed(all three negative controls report ok)startup_mesh_vcc_datavccspill: the vcc pair is spilled and reloaded through s[1000:1001] as two words: MISMATCHstartup_draw_state_{warp,hardware}off: slot 51 forwarded: ['x2w-render ClearDepthStencilView ...']Startup run: compared with
mainat6ee878d8(after #2849), run back to back for 300 s each with-Render -Translate -FakeUser -GpuMirror -StartupBelow40 -ContinueAsserts 100000, the same input script andX2W_D3D12_BUDGET=1. This PR also needed-SlabBudgetMiB 8192, because without it the new launcher check refuses to start. Each arm's shader cache was re-keyed with its ownshader_cache_rekey.pyand translated withgfx2hlsl.py --pending. Here that neededX2W_UPSTREAM_SHADER_CACHE_REKEY=1;--pendingproduced 217 translations on this PR and 297 onmain. Final counters:main6ee878d887a6003fBoth runs reached the timeout with no second-chance exception. In the same 300 s this snapshot got less far than current
main: fewer storage requests and textures, and far fewer pipelines requested. The PR base is 259 commits behindmain, so part of the gap is likely what landed there since.Happy to rerun any slice you split out of this against the same baseline.
AI-assisted; the commands above were run locally.
Pull request closed