Tests: reproduce legacy DXIL structurizer memory growth #759

Open
Abuudiii wants to merge 1 commit from upstream-pr/764 into main
Abuudiii commented 2026-11-24 04:51:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Abuudiii on 2026-11-24T04:51:33Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5466297762 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/764). Originally posted by [Abuudiii](https://github.com/Abuudiii) on 2026-11-24T04:51:33Z. --- 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 commented 2026-11-24 07:06:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Abuudiii on 2026-11-24T05:20:40Z.


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).

<!-- greyfinch-sync:ivall/xcl:comment:7122858897 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/764#issuecomment-7122858897). Originally posted by [Abuudiii](https://github.com/Abuudiii) on 2026-11-24T05:20:40Z. --- 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).
xpatfussy69x commented 2026-11-25 09:08:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-25T08:47:40Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7157478348 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/764#issuecomment-7157478348). Originally posted by [xpatfussy69x](https://github.com/xpatfussy69x) on 2026-11-25T08:47:40Z. --- 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.
DavidM1911 commented 2026-11-25 12:06:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T11:16:11Z.


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:7160821666 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/764#issuecomment-7160821666). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T11:16:11Z. --- 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!
github-actions[bot] commented 2026-11-29 07:41:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:41:31Z.


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:7252630388 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/764#issuecomment-7252630388). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:41:31Z. --- 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 04:05:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:05:14Z.


Triage (#1607) – head bc18204

No open or merged PR adds the same thing. #775 (same issue #611) builds a patched vkd3d-proton/dxil-spirv for Linux; this PR only adds a synthetic HLSL case and a bounded Linux runner (scripts/repro_dxil_structurizer.py), so the two do not overlap.
No problems found in the diff. Note that the script is not wired into any test target and needs Linux tools (prlimit, GNU timeout, spirv-val), and the legacy-structurizer option is passed by its raw enum value (57), which breaks silently if dxil-spirv renumbers it.
Recommendation: keep open.

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:7300364904 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/764#issuecomment-7300364904). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:05:14Z. --- **Triage (#1607)** – head bc18204 No open or merged PR adds the same thing. #775 (same issue #611) builds a patched vkd3d-proton/dxil-spirv for Linux; this PR only adds a synthetic HLSL case and a bounded Linux runner (`scripts/repro_dxil_structurizer.py`), so the two do not overlap. No problems found in the diff. Note that the script is not wired into any test target and needs Linux tools (prlimit, GNU timeout, spirv-val), and the legacy-structurizer option is passed by its raw enum value (57), which breaks silently if dxil-spirv renumbers it. Recommendation: keep open. 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/764:upstream-pr/764'
git switch 'upstream-pr/764'

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/764'
git switch 'upstream-pr/764'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/764'
git switch 'upstream-pr/764'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/764'
git switch 'main'
git merge --squash 'upstream-pr/764'
git switch 'main'
git merge --ff-only 'upstream-pr/764'
git switch 'main'
git merge 'upstream-pr/764'
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!759
No description provided.