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

Merged
R0Y00 merged 2 commits from upstream-pr/11 into main 2026-11-21 07:41:17 +00:00
R0Y00 commented 2026-11-21 07:36:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T07:36:58Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6526096261 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/11). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T07:36:58Z. --- 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.
upstream-sync closed this pull request 2026-11-24 06:40:59 +00:00
Sign in to join this conversation.
No reviewers
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!11
No description provided.