Recompile single-texture gfx1013 pixel shaders for desktop D3D12 #11

Manually merged
github merged 2 commits from gh-pr/11/head into gh-pr/11/base 2026-11-26 21:22:05 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-21 07:36 UTC · original
R0Y00:codex/pixel-aot → main · +609 −3 · 11 files · 2 commits · merged 2026-11-21 07:41 UTC

Adds an offline translator for a narrow gfx1013 pixel program and a Windows D3D12 readback test. The translator decodes native instructions with LLVM, tracks scalar and vector register values and emits HLSL for DXC. The caller supplies the texture and interpolation entry registers and the sampler descriptor words.

The two original assembly fixtures draw an RGBA copy and a red/blue swap. The draw test compares all 16,384 output components with a CPU reference and requires an intentional channel mismatch to fail. The Linux job assembles each fixture and checks machine-code extraction and lowering. Windows CI exercises DXC and WARP.

Verified locally with LLVM 15, RTX 4060 Laptop and WARP. Both pixel tests passed. Full CTest result was 46 passes and two wave64 capability skips. The public fixtures are generated from original test code. Full game startup and native pipeline bindings remain open.

**@⁠R0Y00** on GitHub · 2026-11-21 07:36 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/11) `R0Y00:codex/pixel-aot` → `main` · +609 −3 · 11 files · 2 commits · merged 2026-11-21 07:41 UTC Adds an offline translator for a narrow gfx1013 pixel program and a Windows D3D12 readback test. The translator decodes native instructions with LLVM, tracks scalar and vector register values and emits HLSL for DXC. The caller supplies the texture and interpolation entry registers and the sampler descriptor words. The two original assembly fixtures draw an RGBA copy and a red/blue swap. The draw test compares all 16,384 output components with a CPU reference and requires an intentional channel mismatch to fail. The Linux job assembles each fixture and checks machine-code extraction and lowering. Windows CI exercises DXC and WARP. Verified locally with LLVM 15, RTX 4060 Laptop and WARP. Both pixel tests passed. Full CTest result was 46 passes and two wave64 capability skips. The public fixtures are generated from original test code. Full game startup and native pipeline bindings remain open.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:22:03 +00:00
github manually merged commit 07a835cc00 into gh-pr/11/base 2026-11-26 21:22:05 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.