docs(dxil): reconcile architecture spec with current EXEC/ballot status and clarify SSA/CFG details #2165

Open
dowtvuwnt wants to merge 1 commit from upstream-pr/2175 into main
dowtvuwnt commented 2026-11-25 07:19:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by dowtvuwnt on 2026-11-25T07:19:43Z.


Refines the Direct DXIL design and roadmap document (docs/specs/2026-11-24-direct-dxil.md) to resolve minor architectural inconsistencies and improve technical precision.

What is in it

  • Execution Model & CFG: Clarified the distinction between the current predicated EXEC/ballot model over a reducible CFG (Phases 1–3) and future divergent per-lane branching, and explicitly noted block sealing for incomplete phi resolution in Braun SSA construction.
  • Wave64-on-Wave32 Handling: Clarified that wave64 reductions on wave32 hosts require multi-wave combining alongside native DXIL WaveActive* ops, and noted HLSL fallbacks for out-of-range lane shuffles.
  • Testing & Status Alignment: Synced XCL_DIRECT_DXIL=1 and XCL_DIRECT_DXIL=all routing details between the Testing Strategy and Current Status sections, generalized the DXC validator oracle version reference, and clarified extending runner::run for differential DXIL testing.
  • Terminology & Licensing: Standardized DXIL retail hash terminology, fixed Victory casing, and clarified clean-room boundaries for DXIL specifications and Mesa references.

(Happy to trim down any section if you prefer keeping the roadmap doc more concise.)

Tested

  • Verified Markdown formatting and rendering via GitHub preview.

Regression run

  • Not needed (docs-only change; no changes under crates/xcl/src).

Not tested

  • Code compilation and GPU test suite (no source code modified).

AI use

  • LLM assistance used for wording clarity, proofreading, and Markdown formatting review; all technical details were verified against the document's implementation status.
<!-- greyfinch-sync:ivall/xcl:issue:5486970052 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2175). Originally posted by [dowtvuwnt](https://github.com/dowtvuwnt) on 2026-11-25T07:19:43Z. --- Refines the Direct DXIL design and roadmap document (`docs/specs/2026-11-24-direct-dxil.md`) to resolve minor architectural inconsistencies and improve technical precision. **What is in it** - **Execution Model & CFG:** Clarified the distinction between the current predicated `EXEC`/ballot model over a reducible CFG (Phases 1–3) and future divergent per-lane branching, and explicitly noted block sealing for incomplete `phi` resolution in Braun SSA construction. - **Wave64-on-Wave32 Handling:** Clarified that `wave64` reductions on `wave32` hosts require multi-wave combining alongside native DXIL `WaveActive*` ops, and noted HLSL fallbacks for out-of-range lane shuffles. - **Testing & Status Alignment:** Synced `XCL_DIRECT_DXIL=1` and `XCL_DIRECT_DXIL=all` routing details between the Testing Strategy and Current Status sections, generalized the DXC validator oracle version reference, and clarified extending `runner::run` for differential DXIL testing. - **Terminology & Licensing:** Standardized `DXIL retail hash` terminology, fixed `Victory` casing, and clarified clean-room boundaries for DXIL specifications and Mesa references. *(Happy to trim down any section if you prefer keeping the roadmap doc more concise.)* **Tested** - Verified Markdown formatting and rendering via GitHub preview. **Regression run** - Not needed (docs-only change; no changes under `crates/xcl/src`). **Not tested** - Code compilation and GPU test suite (no source code modified). **AI use** - LLM assistance used for wording clarity, proofreading, and Markdown formatting review; all technical details were verified against the document's implementation status.
DavidM1911 commented 2026-11-25 08:08:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T07:31:06Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7155948038 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2175#issuecomment-7155948038). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T07:31:06Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
dowtvuwnt commented 2026-11-25 08:08:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by dowtvuwnt on 2026-11-25T07:42:28Z.


appreciate it @DavidM1911 thx

<!-- greyfinch-sync:ivall/xcl:comment:7156161695 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2175#issuecomment-7156161695). Originally posted by [dowtvuwnt](https://github.com/dowtvuwnt) on 2026-11-25T07:42:28Z. --- appreciate it @DavidM1911 thx
github-actions[bot] commented 2026-11-28 20:19:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:19:06Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7245197625 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2175#issuecomment-7245197625). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T20:19:06Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 07:31:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:31:28Z.


Triage (#1607) – head 3fccf9a

Most of the diff rewords and reformats docs/specs/2026-11-24-direct-dxil.md, which CONTRIBUTING.md reserves for the maintainer's design notes.
It keeps statements that were already stale in main's spec (the first two below), while saying it brings the spec up to date: The licence section says "XCL is licensed strictly under GPL-2.0-only", but Cargo.toml and LICENSE are GPL-3.0-or-later. "Live routing" says direct DXIL is enabled "behind environment flags" with =all for VS/PS, but since #3243 every stage uses direct DXIL by default and XCL_DIRECT_DXIL=1 keeps VS/PS on HLSL. The testing section turns runner::run taking DXIL into future work ("Extend runner::run ..."), but it already takes DXIL bytes.
Recommendation: close (bad: rewrites the maintainer's spec with wrong licence and routing statements).

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304158880 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2175#issuecomment-7304158880). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:31:28Z. --- **Triage (#1607)** – head 3fccf9a Most of the diff rewords and reformats `docs/specs/2026-11-24-direct-dxil.md`, which CONTRIBUTING.md reserves for the maintainer's design notes. It keeps statements that were already stale in main's spec (the first two below), while saying it brings the spec up to date: The licence section says "XCL is licensed strictly under GPL-2.0-only", but `Cargo.toml` and `LICENSE` are GPL-3.0-or-later. "Live routing" says direct DXIL is enabled "behind environment flags" with `=all` for VS/PS, but since #3243 every stage uses direct DXIL by default and `XCL_DIRECT_DXIL=1` keeps VS/PS on HLSL. The testing section turns `runner::run` taking DXIL into future work ("Extend runner::run ..."), but it already takes DXIL bytes. Recommendation: close (bad: rewrites the maintainer's spec with wrong licence and routing statements). AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2175:upstream-pr/2175'
git switch 'upstream-pr/2175'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2175'
git switch 'upstream-pr/2175'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2175'
git switch 'upstream-pr/2175'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2175'
git switch 'main'
git merge --squash 'upstream-pr/2175'
git switch 'main'
git merge --ff-only 'upstream-pr/2175'
git switch 'main'
git merge 'upstream-pr/2175'
git push origin 'main'
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
xcl-dev/xcl!2165
No description provided.