docs: plan slot 57 mesh DXIL translation #2924

Merged
lambirou merged 1 commit from upstream-pr/2924 into main 2026-11-27 05:41:01 +00:00
lambirou commented 2026-11-26 20:34:15 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-26T20:34:15Z.


What changed

This adds docs/experiments/mesh57-dxil-plan.md, a plan for the first complete slot 57 fixed-mesh DXIL translation.

The note separates:

  • the dependency chain from a slot 57 request through inspect_mesh57_request, translate_mesh57, the desktop mesh PSO and DispatchMesh;
  • the measured refusal shapes (407 pre-exchange requests, 91 that stop at the group-index v_readfirstlane, 316 branch/src_scc shapes, 97 pixel-stage mixed-export, 15 exchange, 11 loops, 39 v_fma_mix / v_interp_p2_f16, 47 resource-heap loads);
  • the smallest source-built mesh program to prove the chain before taking a real request;
  • the mesh skeleton rules (user SGPRs from s16, group-index/count exchange, group memory, SetMeshOutputCounts, exports, pixel-stage linkage, container fields);
  • phases A-F with observable acceptance for each;
  • risks: wave64 on wave32, workgroup/LDS, output limits, slot 57 vs slot 86, helper lanes.

The plan is title-neutral and uses counts only. It does not claim a complete translation; the current tracking issue still records 0 of 298 complete.

Checks

python -B tests/docs_links_check.py

Passed: 546 links across the checked Markdown set. No runtime or translator code is changed.

Refs #2413, #1998, #1759.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5516793214 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2924). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-26T20:34:15Z. --- ## What changed This adds `docs/experiments/mesh57-dxil-plan.md`, a plan for the first complete slot 57 fixed-mesh DXIL translation. The note separates: - the dependency chain from a slot 57 request through `inspect_mesh57_request`, `translate_mesh57`, the desktop mesh PSO and `DispatchMesh`; - the measured refusal shapes (407 pre-exchange requests, 91 that stop at the group-index `v_readfirstlane`, 316 branch/`src_scc` shapes, 97 pixel-stage mixed-export, 15 exchange, 11 loops, 39 `v_fma_mix` / `v_interp_p2_f16`, 47 resource-heap loads); - the smallest source-built mesh program to prove the chain before taking a real request; - the mesh skeleton rules (user SGPRs from s16, group-index/count exchange, group memory, `SetMeshOutputCounts`, exports, pixel-stage linkage, container fields); - phases A-F with observable acceptance for each; - risks: wave64 on wave32, workgroup/LDS, output limits, slot 57 vs slot 86, helper lanes. The plan is title-neutral and uses counts only. It does not claim a complete translation; the current tracking issue still records 0 of 298 complete. ## Checks ```powershell python -B tests/docs_links_check.py ``` Passed: 546 links across the checked Markdown set. No runtime or translator code is changed. Refs #2413, #1998, #1759. AI-assisted.
KelboLive commented 2026-11-27 05:28:30 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-27T05:28:30Z.

Review: COMMENTED


PR #2924 by @lambirou -- docs: plan slot 57 mesh DXIL translation

What works

  • Solid foundational work establishing the 0x100 linear layout in gfx10_layout.h with careful derivation from AMD addrlib
  • The linear_mode = 0 constant elegantly extends block_log2() to accept mode 0 without changing the tiled modes switch logic
  • supports() check is correct: mode == linear_mode bypasses the block_log2 >= 12 requirement since linear has no tail
  • Test infrastructure is excellent -- linear_order_control (expected failure with largest mip first), linear_addrlib (338K element addresses), and the unpadded negative control all add strong coverage
  • Documentation accurately restates addrlib's linear mode algorithm in clear, testable terms

Issues

  • supports() currently allows block-compressed formats (BC1-BC7) in linear mode via the fallthrough -- BC formats are block-based and don't have linear row semantics; consider gating them out explicitly like 1D does in #2929
  • The check script in startup_address_console_check.py builds linear backing bytes from addrlib equations. This is correct but the linear path could break if the hardcoded equations drift from addrlib; a comment linking to the Mesa commit that derives these equations would help

Recommendations

  • Good discipline in including the negative control (unpadded rows test) to verify the 256-byte pitch requirement
  • Consider adding a TODO or assert in supports() that blocks linear mode for BC formats until explicitly validated against addrlib

Overall

A well-researched, well-tested implementation. The linear layout extension is cleanly separated from tiled modes. Minor concern about BC format handling in linear mode, but the existing refusal behavior is safe. Ready for merge.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6083866955 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2924#pullrequestreview-6083866955). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-27T05:28:30Z. **Review:** COMMENTED --- PR #2924 by @lambirou -- docs: plan slot 57 mesh DXIL translation ## What works - Solid foundational work establishing the 0x100 linear layout in gfx10_layout.h with careful derivation from AMD addrlib - The linear_mode = 0 constant elegantly extends block_log2() to accept mode 0 without changing the tiled modes switch logic - supports() check is correct: mode == linear_mode bypasses the block_log2 >= 12 requirement since linear has no tail - Test infrastructure is excellent -- linear_order_control (expected failure with largest mip first), linear_addrlib (338K element addresses), and the unpadded negative control all add strong coverage - Documentation accurately restates addrlib's linear mode algorithm in clear, testable terms ## Issues - supports() currently allows block-compressed formats (BC1-BC7) in linear mode via the fallthrough -- BC formats are block-based and don't have linear row semantics; consider gating them out explicitly like 1D does in #2929 - The check script in startup_address_console_check.py builds linear backing bytes from addrlib equations. This is correct but the linear path could break if the hardcoded equations drift from addrlib; a comment linking to the Mesa commit that derives these equations would help ## Recommendations - Good discipline in including the negative control (unpadded rows test) to verify the 256-byte pitch requirement - Consider adding a TODO or assert in supports() that blocks linear mode for BC formats until explicitly validated against addrlib ## Overall A well-researched, well-tested implementation. The linear layout extension is cleanly separated from tiled modes. Minor concern about BC format handling in linear mode, but the existing refusal behavior is safe. Ready for merge.
R0Y00 commented 2026-11-27 05:40:10 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T05:40:10Z.

Review: APPROVED


Reviewed f13783431381d0bc528c3b1396a4d169763e4e11. The note distinguishes slot-57 translation, desktop PSO creation and dispatch, and gives source-built acceptance criteria for each. The reported refusal counts remain a dated census. The integrated documentation check passed (37 Markdown files and 552 links).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6083940532 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2924#pullrequestreview-6083940532). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-27T05:40:10Z. **Review:** APPROVED --- Reviewed `f13783431381d0bc528c3b1396a4d169763e4e11`. The note distinguishes slot-57 translation, desktop PSO creation and dispatch, and gives source-built acceptance criteria for each. The reported refusal counts remain a dated census. The integrated documentation check passed (37 Markdown files and 552 links).
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!2924
No description provided.