Tests: reproduce legacy DXIL structurizer memory growth #764

Open
github-bot wants to merge 1 commit from github-bot/gh-764 into main AGit
Owner

@⁠Abuudiii on GitHub · 2026-11-24 04:51 UTC · original
Abuudiii:xcl-611-compiler-memory → main · +130 −0 · 2 files · 1 commits · open

Part of #611. This reproduces a related legacy DXIL-to-SPIR-V failure from a small synthetic shader, not the exact retail shader.

What is in it

  • Synthetic HLSL and a bounded Linux runner. No XCL runtime changes.

Tested

  • The old compiler and legacy mode failed near the 512 MiB address-space limit. The current path produced valid SPIR-V in 29 ms at 18.3 MiB peak RSS.

Not tested

  • Exact retail shader, retail gameplay, and native Windows suite.

AI use

  • GPT-6.2 Sol implemented the change and performed the listed local verification.
**@⁠Abuudiii** on GitHub · 2026-11-24 04:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/764) `Abuudiii:xcl-611-compiler-memory` → `main` · +130 −0 · 2 files · 1 commits · open Part of #611. This reproduces a related legacy DXIL-to-SPIR-V failure from a small synthetic shader, not the exact retail shader. **What is in it** - Synthetic HLSL and a bounded Linux runner. No XCL runtime changes. **Tested** - The old compiler and legacy mode failed near the 512 MiB address-space limit. The current path produced valid SPIR-V in 29 ms at 18.3 MiB peak RSS. **Not tested** - Exact retail shader, retail gameplay, and native Windows suite. **AI use** - GPT-6.2 Sol implemented the change and performed the listed local verification.
Add a bounded, game-free reproducer for the related upstream converter failure. Validate SPIR-V on the current path; no XCL runtime changes.
Refs: ivall/xcl#611
Assisted-by: GPT-6.2 Sol
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:31:46 +00:00
Author
Owner

@⁠Abuudiii on GitHub · 2026-11-24 05:20 UTC · original

Could a maintainer approve the Windows CI run when convenient? The description check passes, but the Windows workflow is action_required and has not started any jobs. This PR only adds the synthetic compiler reproducer. Drafted with omp (GPT-6.2 Sol).

**@⁠Abuudiii** on GitHub · 2026-11-24 05:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/764#issuecomment-7122858897) Could a maintainer approve the [Windows CI run](https://github.com/ivall/xcl/actions/runs/45329281000) when convenient? The description check passes, but the Windows workflow is `action_required` and has not started any jobs. This PR only adds the synthetic compiler reproducer. Drafted with omp (GPT-6.2 Sol).
Author
Owner

@⁠xpatfussy69x on GitHub · 2026-11-25 08:47 UTC · original

Test report for head bc18204 as pushed (not merged onto current main) – the native Windows suite listed under Not tested above, NVIDIA, wave32.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (Ampere, 32-lane waves only), driver 32.0.16.2124; AMD Ryzen 5 7500F; Windows NT 10.0.26300; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); debug; DXC 1.9.2609.5
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 701 passed, 0 failed, 41 ignored
  • SKIPPED GPU tests on this adapter: 2 (no wave64)
  • no XCL_SAMPLE_* data set (game-data tests not run)

Not tested

  • scripts/repro_dxil_structurizer.py itself (Linux only: dxil-spirv, prlimit, spirv-val); AMD / native wave64; release build; the head merged onto current main

AI use

  • Claude (Claude Opus 5.5) wrote the script that ran the suite on my PC, read the log and wrote and posted this report with my approval; the run is mine.
**@⁠xpatfussy69x** on GitHub · 2026-11-25 08:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/764#issuecomment-7157478348) Test report for head `bc18204` as pushed (not merged onto current `main`) – the native Windows suite listed under **Not tested** above, NVIDIA, wave32. **Tested** - NVIDIA GeForce RTX 3060 12 GB (Ampere, 32-lane waves only), driver 32.0.16.2124; AMD Ryzen 5 7500F; Windows NT 10.0.26300; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); debug; DXC 1.9.2609.5 - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): 701 passed, 0 failed, 41 ignored - SKIPPED GPU tests on this adapter: 2 (no wave64) - no `XCL_SAMPLE_*` data set (game-data tests not run) **Not tested** - `scripts/repro_dxil_structurizer.py` itself (Linux only: dxil-spirv, prlimit, spirv-val); AMD / native wave64; release build; the head merged onto current `main` **AI use** - Claude (Claude Opus 5.5) wrote the script that ran the suite on my PC, read the log and wrote and posted this report with my approval; the run is mine.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 11:16 UTC · original

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!

**@⁠DavidM1911** on GitHub · 2026-11-25 11:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/764#issuecomment-7160821666) 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!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/764/head:github-bot/gh-764'
git switch 'github-bot/gh-764'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-764'
git switch 'github-bot/gh-764'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-764'
git switch 'github-bot/gh-764'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-764'
git switch 'main'
git merge --squash 'github-bot/gh-764'
git switch 'main'
git merge --ff-only 'github-bot/gh-764'
git switch 'main'
git merge 'github-bot/gh-764'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.