Recompiler: structured code indents at most 8 levels #1574

Closed
Pipodi wants to merge 1 commit from upstream-pr/1584 into main
Pipodi commented 2026-11-24 17:57:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-24T17:57:25Z.


The structured form limits how deep code nests (MAX_NEST), but not how far it is indented: every nested if and loop adds four spaces. On big compute programs most of the HLSL is leading whitespace, which DXC reads and keeps although it means nothing to it. On #1345's form, @wondercrash measured 42.7 MB of whitespace in the 53.0 MB of ActivateRays (#1345 comment 7137676632, point 1). This PR stops indentation at 8 levels and changes nothing else. Part of #1269.

What is in it

  • crates/xcl/src/gpu/recomp/mod.rs: MAX_INDENT = 8, applied in emit_structured and emit_block. emit_range, the unstructured fallback, is not capped.
  • crates/xcl/src/gpu/recomp/tests.rs: structured_indentation_stops_at_the_cap (14 nested ifs; the widest line is 28 spaces). With the cap at 99 it fails (60 spaces).

Tested

  • RTX 4090 24 GB (driver 621.40), i9-13900K, 32 GB, Windows 11 Pro build 26300, rustc 1.100.0. Suite in debug, smoke runs in release.

  • Rebased onto main 623d02e4 (head 6316fa3f), RTX 4090 (driver 621.40), rustc 1.100.0, debug: cargo build --workspace && cargo test --workspace -- --test-threads=4 gave 1459 passed, 0 failed, 47 ignored.

  • SKIPPED (28): no wave64 (21), no xgameruntime.dll (2), no heap windows (1), per-lane f16/f32 cases refused by the per-lane form (3, as on main), pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache; the log shows a 'missing SDK component' error) (1).

  • Fails without the change: with MAX_INDENT at 99, structured_indentation_stops_at_the_cap fails (rerun on dee5ada).

  • The HLSL and DXC numbers below were measured before the rebase, at f578e66; the patch is the same.

  • Only whitespace changes. On the three programs below, the HLSL with the cap and with the cap lifted is byte-identical once leading spaces are stripped (sha1 compared).

  • HLSL size on main (without #1345), three retail compute programs:

    program instructions HLSL before after
    1 88,863 29,598,855 B 19,264,315 B
    2 88,445 29,524,131 B 19,189,591 B
    3 (ActivateRays) 76,699 151,193,185 B 117,650,689 B
  • DXC time (one debug run each): program 1 69.9 → 64.0 s, program 2 63.1 → 63.2 s. Program 3 timed out at 280 s both ways.

Regression run

The retail title, XCL_PRESS_AT=16:A, 60 s, XCL_PREPARE=0, fresh gamesave. Both runs on this machine (RTX 4090, driver 621.40), release builds of clean trees, one untimed warm-up each, then the measured run.

main (623d02e4):

xcl-smoke v1
commit: 623d02e465a17497a757a4ce867f482b0a6c8f3b
gpu: NVIDIA GeForce RTX 4090
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1634 (PresentX 1634)
presents per 2 s (last 3): 48 60 36
device removals: 0
crashes: 0
peak commit: 22541 MB

This PR's head (6316fa3f):

xcl-smoke v1
commit: 6316fa3f52fd1b907003a54f3dacbfcc5691a57a
gpu: NVIDIA GeForce RTX 4090
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1642 (PresentX 1642)
presents per 2 s (last 3): 60 42 54
device removals: 0
crashes: 0
peak commit: 23895 MB

The PR's run got 100.5 % of main's frames and 106 % of its peak commit.

Not tested

  • The optimisation level of DXC. dxc.rs:491-494 picks the level from the raw source length, whitespace included, so a program the cap brings under a line gets compiled at a higher level. About 1.0–1.5 MiB moves from -O1 to -O3, and about 8–11 MiB from -O0 to -O1. None of the three programs above crosses a line (all stay at -O0), and I have not measured a program that does. If #1526 merges, only the 1 MiB line remains.
  • DXIL size and driver time with and without the cap.
  • AMD and Intel.
  • Interaction with open PRs:
    • #1321 (now on main) falls back to the pc form above 128 * program.len() bytes, a limit set on uncapped sizes; with the cap, fewer programs reach it.
    • #1529's arguments(src.len(), ..) also keys on raw size.
    • #1345 edits the lines next to these (two unchanged lines between), so whichever lands second needs a rebase.
  • The A presses in both smoke runs were made by hand (they were made by hand on every run); XCL_PRESS_AT=16:A was set as usual.

AI use

  • Claude Code. A subagent on Claude Sonnet 5.5 wrote the change and the test and made the HLSL and DXC measurements. Claude Opus 5.5 (the main session) planned it, checked the numbers, wrote this description and reviewed the diff in a second agent of the same model. Subagents on Claude Sonnet 5.5 ran the earlier smoke pairs; the main session did the rebase, the suite and the smoke run on dee5ada.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5477536428 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1584). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-24T17:57:25Z. --- The structured form limits how deep code nests (`MAX_NEST`), but not how far it is indented: every nested `if` and loop adds four spaces. On big compute programs most of the HLSL is leading whitespace, which DXC reads and keeps although it means nothing to it. On #1345's form, @wondercrash measured 42.7 MB of whitespace in the 53.0 MB of `ActivateRays` (#1345 comment 7137676632, point 1). This PR stops indentation at 8 levels and changes nothing else. Part of #1269. **What is in it** - `crates/xcl/src/gpu/recomp/mod.rs`: `MAX_INDENT = 8`, applied in `emit_structured` and `emit_block`. `emit_range`, the unstructured fallback, is not capped. - `crates/xcl/src/gpu/recomp/tests.rs`: `structured_indentation_stops_at_the_cap` (14 nested ifs; the widest line is 28 spaces). With the cap at 99 it fails (60 spaces). **Tested** - RTX 4090 24 GB (driver 621.40), i9-13900K, 32 GB, Windows 11 Pro build 26300, rustc 1.100.0. Suite in debug, smoke runs in release. - Rebased onto `main` 623d02e4 (head `6316fa3f`), RTX 4090 (driver 621.40), rustc 1.100.0, debug: `cargo build --workspace && cargo test --workspace -- --test-threads=4` gave **1459 passed, 0 failed, 47 ignored**. - SKIPPED (28): no wave64 (21), no `xgameruntime.dll` (2), no heap windows (1), per-lane f16/f32 cases refused by the per-lane form (3, as on `main`), `pso_measurement_compiles_an_exact_synthetic_record` (cannot disable the driver cache; the log shows a 'missing SDK component' error) (1). - Fails without the change: with `MAX_INDENT` at 99, `structured_indentation_stops_at_the_cap` fails (rerun on `dee5ada`). - The HLSL and DXC numbers below were measured before the rebase, at `f578e66`; the patch is the same. - Only whitespace changes. On the three programs below, the HLSL with the cap and with the cap lifted is byte-identical once leading spaces are stripped (sha1 compared). - HLSL size on `main` (without #1345), three retail compute programs: | program | instructions | HLSL before | after | |---|---|---|---| | 1 | 88,863 | 29,598,855 B | 19,264,315 B | | 2 | 88,445 | 29,524,131 B | 19,189,591 B | | 3 (`ActivateRays`) | 76,699 | 151,193,185 B | 117,650,689 B | - DXC time (one debug run each): program 1 69.9 → 64.0 s, program 2 63.1 → 63.2 s. Program 3 timed out at 280 s both ways. **Regression run** The retail title, `XCL_PRESS_AT=16:A`, 60 s, `XCL_PREPARE=0`, fresh gamesave. Both runs on this machine (RTX 4090, driver 621.40), release builds of clean trees, one untimed warm-up each, then the measured run. main (623d02e4): ``` xcl-smoke v1 commit: 623d02e465a17497a757a4ce867f482b0a6c8f3b gpu: NVIDIA GeForce RTX 4090 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1634 (PresentX 1634) presents per 2 s (last 3): 48 60 36 device removals: 0 crashes: 0 peak commit: 22541 MB ``` This PR's head (6316fa3f): ``` xcl-smoke v1 commit: 6316fa3f52fd1b907003a54f3dacbfcc5691a57a gpu: NVIDIA GeForce RTX 4090 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1642 (PresentX 1642) presents per 2 s (last 3): 60 42 54 device removals: 0 crashes: 0 peak commit: 23895 MB ``` The PR's run got 100.5 % of `main`'s frames and 106 % of its peak commit. **Not tested** - **The optimisation level of DXC.** `dxc.rs:491-494` picks the level from the raw source length, whitespace included, so a program the cap brings under a line gets compiled at a higher level. About 1.0–1.5 MiB moves from `-O1` to `-O3`, and about 8–11 MiB from `-O0` to `-O1`. None of the three programs above crosses a line (all stay at `-O0`), and I have not measured a program that does. If #1526 merges, only the 1 MiB line remains. - DXIL size and driver time with and without the cap. - AMD and Intel. - Interaction with open PRs: - #1321 (now on `main`) falls back to the pc form above `128 * program.len()` bytes, a limit set on uncapped sizes; with the cap, fewer programs reach it. - #1529's `arguments(src.len(), ..)` also keys on raw size. - #1345 edits the lines next to these (two unchanged lines between), so whichever lands second needs a rebase. - The A presses in both smoke runs were made by hand (they were made by hand on every run); `XCL_PRESS_AT=16:A` was set as usual. **AI use** - Claude Code. A subagent on Claude Sonnet 5.5 wrote the change and the test and made the HLSL and DXC measurements. Claude Opus 5.5 (the main session) planned it, checked the numbers, wrote this description and reviewed the diff in a second agent of the same model. Subagents on Claude Sonnet 5.5 ran the earlier smoke pairs; the main session did the rebase, the suite and the smoke run on `dee5ada`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
nnonno91 commented 2026-11-24 19:07:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-24T18:09:41Z.


Independent AMD test of the 1 MiB DXC cutoff on f578e661b340463e47e675082619989e669c8713 against 9e3831e1f570d3646e53ab753b19ec07eb8f1485.

Tested

  • Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62), Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug. cargo build --workspace --locked passed. cargo test --locked -p xcl --lib structured_indentation_stops_at_the_cap -- --test-threads=1 passed.
  • cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output reported 777 passed, 0 failed, and 41 ignored. One reported GPU skip (heap_window_out_of_memory_falls_back_to_the_switch_form, no heap windows). The bundled title passed.
  • cargo test --locked -p xcl --test indent_threshold_probe -- --exact emit_indentation_samples --nocapture --test-threads=1 generated eight synthetic kernels on each revision with 14 nested branches and 1,024–8,192 repeated adds in the body. All HLSL pairs matched after removing leading spaces. Maximum indentation was 60 spaces on base and 28 on the PR. Two fixtures crossed below 1 MiB.
  • cargo test --locked -p xcl --test indent_gpu_probe -- --exact compile_and_run_across_indent_cutoff --nocapture --test-threads=1 compiled the 5,120-add fixture through XCL’s normal DXC path and explicit -O1/-O3 controls.
Emitted HLSL Source bytes Automatic output matched DXIL bytes
Base 1,120,938 -O1 23,600
PR 792,410 -O3 3,812

Forcing the same optimization level on both sources produced byte-identical DXIL at each of -O1 and -O3. Both automatic outputs matched the expected register result across 64 lanes on AMD, with the body both executed and bypassed.

Not tested

Retail shaders, retail title runs, DXC or driver timings, and a crossing of the 8 MiB cutoff. The two integration tests were temporary probes.

AI use

OpenAI Codex (GPT-6 family, exact variant unavailable) wrote the probes, ran the checks, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7140245767 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1584#issuecomment-7140245767). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-24T18:09:41Z. --- Independent AMD test of the 1 MiB DXC cutoff on `f578e661b340463e47e675082619989e669c8713` against `9e3831e1f570d3646e53ab753b19ec07eb8f1485`. **Tested** - Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62), Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug. `cargo build --workspace --locked` passed. `cargo test --locked -p xcl --lib structured_indentation_stops_at_the_cap -- --test-threads=1` passed. - `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output` reported 777 passed, 0 failed, and 41 ignored. One reported GPU skip (`heap_window_out_of_memory_falls_back_to_the_switch_form`, no heap windows). The bundled title passed. - `cargo test --locked -p xcl --test indent_threshold_probe -- --exact emit_indentation_samples --nocapture --test-threads=1` generated eight synthetic kernels on each revision with 14 nested branches and 1,024–8,192 repeated adds in the body. All HLSL pairs matched after removing leading spaces. Maximum indentation was 60 spaces on base and 28 on the PR. Two fixtures crossed below 1 MiB. - `cargo test --locked -p xcl --test indent_gpu_probe -- --exact compile_and_run_across_indent_cutoff --nocapture --test-threads=1` compiled the 5,120-add fixture through XCL’s normal DXC path and explicit `-O1`/`-O3` controls. | Emitted HLSL | Source bytes | Automatic output matched | DXIL bytes | | --- | ---: | --- | ---: | | Base | 1,120,938 | `-O1` | 23,600 | | PR | 792,410 | `-O3` | 3,812 | Forcing the same optimization level on both sources produced byte-identical DXIL at each of `-O1` and `-O3`. Both automatic outputs matched the expected register result across 64 lanes on AMD, with the body both executed and bypassed. **Not tested** Retail shaders, retail title runs, DXC or driver timings, and a crossing of the 8 MiB cutoff. The two integration tests were temporary probes. **AI use** OpenAI Codex (GPT-6 family, exact variant unavailable) wrote the probes, ran the checks, and drafted this report.
Pipodi commented 2026-11-24 19:07:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-24T18:11:19Z.


@nnonno91 thank you. This covers the first point under Not tested: a program that the cap brings under the 1 MiB line.

  • Your 5,120-add fixture drops from 1,120,938 B to 792,410 B, so DXC compiles it at -O3 instead of -O1.
  • At the same level, the base and the PR give byte-identical DXIL. So the only change in the output comes from the level: 23,600 B → 3,812 B of DXIL.
  • Both forms give the right result on 64 lanes on AMD, with the body both run and skipped.

So the gain for programs near the line is the higher level, and the cap changes nothing else in the DXIL. The 8 MiB line and timings on retail programs are still open; I'll post them here if I get them.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7140285021 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1584#issuecomment-7140285021). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-24T18:11:19Z. --- @nnonno91 thank you. This covers the first point under **Not tested**: a program that the cap brings under the 1 MiB line. - Your 5,120-add fixture drops from 1,120,938 B to 792,410 B, so DXC compiles it at `-O3` instead of `-O1`. - At the same level, the base and the PR give byte-identical DXIL. So the only change in the output comes from the level: 23,600 B → 3,812 B of DXIL. - Both forms give the right result on 64 lanes on AMD, with the body both run and skipped. So the gain for programs near the line is the higher level, and the cap changes nothing else in the DXIL. The 8 MiB line and timings on retail programs are still open; I'll post them here if I get them. **AI use:** Claude Code (Claude Opus 5.5) wrote this reply.
kleborgn commented 2026-11-24 21:09:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by kleborgn on 2026-11-24T19:48:39Z.


Hardware: AMD Radeon RX 7900 XTX (driver 32.0.32029.2010), Ryzen 9 7950X3D, 32 GB, Windows 11 Pro 10.0.26300, rustc 1.100.0; tests in debug, timings in release. DXC 1.8.2505.32 (Windows SDK 10.0.28000.0).

Tested (AMD), commit f578e66

  • On its own base: cargo test --workspace -- --test-threads=4: 777 passed, 0 failed, 41 ignored. SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).

  • The same diff applied to main e9e94ce (applies cleanly): 893 passed, 0 failed, 42 ignored in two full runs (main alone: 892 / 0 / 42). Earlier, on main c160d86: 859 / 0 / 42 (main alone 858).

  • HLSL size, xcl shaders <retail shaders.rpf> --export-hlsl DIR --count 40 --min-kb 400 with a release build of main e9e94ce and one with this PR (same 40 compute programs, 4 windows, native wave64): 50.2 MB -> 47.8 MB (-4.7 %); per program -9.5 % at most, 2 of 40 unchanged, 410 KB to 4.3 MB before. On the 3 files I compared, the HLSL is identical once leading spaces are stripped.

  • DXC time, xcl shaders ... --measure-pso <record hash> --repeat 1, 3 rounds with main and this PR interleaved (medians; the -O level is the same before and after, none of the 40 crossed 1 MB or 8 MB):

    program HLSL DXC main -> PR DXIL main / PR
    a2e35984348fb34e 2.2 -> 2.0 MB 16.5 -> 16.1 s 530,684 / 530,684 B
    b3618a0fd76af79c 4.1 -> 3.7 MB 10.6 -> 10.7 s 981,464 / 981,464 B
    6e3fd903765f4376 4.3 -> 3.9 MB 12.2 -> 12.6 s 1,075,400 / 1,075,400 B

    The DXC differences are within the run-to-run spread (about 3 %); the DXIL has the same size.

Not tested

  • Programs of tens of MB of HLSL, where the PR measured -22 % to -35 %; none of mine is above 4.3 MB. Driver time (the DXIL has the same size, but I did not compare it byte for byte), smoke run, Intel, Nvidia.

AI use

  • Claude Code, Claude Sonnet 5.5: ran the tests and measurements and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7142621260 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1584#issuecomment-7142621260). Originally posted by [kleborgn](https://github.com/kleborgn) on 2026-11-24T19:48:39Z. --- Hardware: AMD Radeon RX 7900 XTX (driver 32.0.32029.2010), Ryzen 9 7950X3D, 32 GB, Windows 11 Pro 10.0.26300, rustc 1.100.0; tests in debug, timings in release. DXC 1.8.2505.32 (Windows SDK 10.0.28000.0). **Tested (AMD), commit `f578e66`** - On its own base: `cargo test --workspace -- --test-threads=4`: 777 passed, 0 failed, 41 ignored. SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - The same diff applied to `main` `e9e94ce` (applies cleanly): 893 passed, 0 failed, 42 ignored in two full runs (main alone: 892 / 0 / 42). Earlier, on `main` `c160d86`: 859 / 0 / 42 (main alone 858). - HLSL size, `xcl shaders <retail shaders.rpf> --export-hlsl DIR --count 40 --min-kb 400` with a release build of `main` `e9e94ce` and one with this PR (same 40 compute programs, 4 windows, native wave64): 50.2 MB -> 47.8 MB (-4.7 %); per program -9.5 % at most, 2 of 40 unchanged, 410 KB to 4.3 MB before. On the 3 files I compared, the HLSL is identical once leading spaces are stripped. - DXC time, `xcl shaders ... --measure-pso <record hash> --repeat 1`, 3 rounds with `main` and this PR interleaved (medians; the `-O` level is the same before and after, none of the 40 crossed 1 MB or 8 MB): | program | HLSL | DXC main -> PR | DXIL main / PR | |---|---|---|---| | `a2e35984348fb34e` | 2.2 -> 2.0 MB | 16.5 -> 16.1 s | 530,684 / 530,684 B | | `b3618a0fd76af79c` | 4.1 -> 3.7 MB | 10.6 -> 10.7 s | 981,464 / 981,464 B | | `6e3fd903765f4376` | 4.3 -> 3.9 MB | 12.2 -> 12.6 s | 1,075,400 / 1,075,400 B | The DXC differences are within the run-to-run spread (about 3 %); the DXIL has the same size. **Not tested** - Programs of tens of MB of HLSL, where the PR measured -22 % to -35 %; none of mine is above 4.3 MB. Driver time (the DXIL has the same size, but I did not compare it byte for byte), smoke run, Intel, Nvidia. **AI use** - Claude Code, Claude Sonnet 5.5: ran the tests and measurements and drafted this report.
Pipodi commented 2026-11-24 21:09:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-24T19:49:40Z.


@kleborgn thanks for the AMD run. f578e66 passes on its own base, and the same diff on main c160d86 adds exactly one passing test (858 → 859). That covers the suite on AMD, which the PR's Not tested left open. The cap's effect on HLSL size and DXC time was measured only on NVIDIA here. On AMD it is still open.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7142645095 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1584#issuecomment-7142645095). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-24T19:49:40Z. --- @kleborgn thanks for the AMD run. `f578e66` passes on its own base, and the same diff on `main` `c160d86` adds exactly one passing test (858 → 859). That covers the suite on AMD, which the PR's **Not tested** left open. The cap's effect on HLSL size and DXC time was measured only on NVIDIA here. On AMD it is still open. **AI use:** Claude Code (Claude Opus 5.5) wrote this reply.
DavidM1911 commented 2026-11-24 21:09:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T20:02:54Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7142966931 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1584#issuecomment-7142966931). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T20:02:54Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
LocranKing commented 2026-11-24 21:09:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-24T20:03:32Z.


Independent Windows release verification on NVIDIA RTX 3060 Ti (f578e661b340463e47e675082619989e669c8713 vs base main 9e3831e1f570d3646e53ab753b19ec07eb8f1485).

Setup

  • GPU: NVIDIA GeForce RTX 3060 Ti (8024 MiB VRAM, wave32), driver 32.0.16.2101
  • CPU / RAM: AMD Ryzen 5 5500 (6C/12T), 31.8 GB RAM
  • OS: Windows 11 Home Single Language, build 26200
  • Toolchain: rustc 1.100.0, DXC 1.9.2602.17, --release

Workspace tests (cargo test --workspace --release --no-fail-fast -- --test-threads=4)

  • Exit 0: 777 passed, 0 failed, 41 ignored across 20 result blocks (SKIPPED: 2 no wave64, 2 no D3D12 debug layer, heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows).

Regression run (scripts/smoke.ps1, 60 s, XCL_NETWORK=0, title folder name redacted)

  • PR head vs base main: 1566 / 1566 frames (100.0%), 15676 / 14715 MB peak commit (106.5%), 0 device removals, 0 crashes.

Base (main 9e3831e):

xcl-smoke v1
commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485
gpu: NVIDIA GeForce RTX 3060 Ti
title: retail-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1566 (PresentX 1566)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14715 MB

PR head (f578e66):

xcl-smoke v1
commit: f578e661b340463e47e675082619989e669c8713
gpu: NVIDIA GeForce RTX 3060 Ti
title: retail-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1566 (PresentX 1566)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15676 MB

Not tested: cold-cache HLSL size/compile-time measurement on the full retail shader pack, AMD / wave64 hardware.

AI use: Antigravity (Gemini 4 Neon) built and ran the test suite and smoke pair on this hardware and drafted this report from the captured outputs; reviewed before posting. No game files attached.

<!-- greyfinch-sync:ivall/xcl:comment:7142982230 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1584#issuecomment-7142982230). Originally posted by [LocranKing](https://github.com/LocranKing) on 2026-11-24T20:03:32Z. --- Independent Windows release verification on NVIDIA RTX 3060 Ti (`f578e661b340463e47e675082619989e669c8713` vs base `main` `9e3831e1f570d3646e53ab753b19ec07eb8f1485`). **Setup** - GPU: NVIDIA GeForce RTX 3060 Ti (`8024 MiB VRAM`, wave32), driver `32.0.16.2101` - CPU / RAM: AMD Ryzen 5 5500 (6C/12T), `31.8 GB` RAM - OS: Windows 11 Home Single Language, build `26200` - Toolchain: `rustc 1.100.0`, DXC `1.9.2602.17`, `--release` **Workspace tests (`cargo test --workspace --release --no-fail-fast -- --test-threads=4`)** - Exit `0`: **777 passed, 0 failed, 41 ignored** across 20 result blocks (`SKIPPED`: 2 `no wave64`, 2 `no D3D12 debug layer`, `heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows`). **Regression run (`scripts/smoke.ps1`, 60 s, `XCL_NETWORK=0`, title folder name redacted)** - PR head vs base `main`: `1566 / 1566` frames (**100.0%**), `15676 / 14715 MB` peak commit (**106.5%**), `0` device removals, `0` crashes. Base (`main` `9e3831e`): ``` xcl-smoke v1 commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485 gpu: NVIDIA GeForce RTX 3060 Ti title: retail-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1566 (PresentX 1566) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14715 MB ``` PR head (`f578e66`): ``` xcl-smoke v1 commit: f578e661b340463e47e675082619989e669c8713 gpu: NVIDIA GeForce RTX 3060 Ti title: retail-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1566 (PresentX 1566) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15676 MB ``` **Not tested:** cold-cache HLSL size/compile-time measurement on the full retail shader pack, AMD / wave64 hardware. **AI use:** Antigravity (`Gemini 4 Neon`) built and ran the test suite and smoke pair on this hardware and drafted this report from the captured outputs; reviewed before posting. No game files attached.
DavidM1911 commented 2026-11-26 06:06:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:48:36Z.


Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current main on the new head — needs another rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7183824964 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1584#issuecomment-7183824964). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T05:48:36Z. --- Re-verification on RTX 3060 Ti (Windows 11): still a **merge conflict with current `main`** on the new head — needs another rebase before it can be tested.
Pipodi commented 2026-11-27 15:43:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-27T15:43:04Z.


Rebased onto current main (623d02e4); the suite rerun and the smoke pair on the new head are updated in the description.

<!-- greyfinch-sync:ivall/xcl:comment:7222396314 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1584#issuecomment-7222396314). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-27T15:43:04Z. --- Rebased onto current main (623d02e4); the suite rerun and the smoke pair on the new head are updated in the description.
Foniass commented 2026-12-01 06:11:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:11:26Z.


Triage (#1607) – head 6316fa3

No open or merged PR caps the structured emitter's indentation; main still writes " ".repeat(depth) in emit_structured and em.indent = depth in emit_block.
The cap only changes leading whitespace, not the emitted statements, and the test (14 nested ifs, widest line 7 levels) matches the code: if-blocks are emitted at d <= 7, only loop latches and the LOOP_GUARD line reach 8.
emit_range (the pc-dispatch path) is not capped; deep while nesting there still indents per level.
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:7302590324 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1584#issuecomment-7302590324). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:11:26Z. --- **Triage (#1607)** – head 6316fa3 No open or merged PR caps the structured emitter's indentation; main still writes `" ".repeat(depth)` in `emit_structured` and `em.indent = depth` in `emit_block`. The cap only changes leading whitespace, not the emitted statements, and the test (14 nested ifs, widest line 7 levels) matches the code: if-blocks are emitted at `d` <= 7, only loop latches and the `LOOP_GUARD` line reach 8. `emit_range` (the pc-dispatch path) is not capped; deep `while` nesting there still indents per level. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Pipodi commented 2026-12-02 15:59:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-12-02T15:59:29Z.


Closing: compute shaders now take the direct DXIL path by default, so the HLSL indent cap saves little on the default path, and the checks on the earlier head no longer count. Thanks to everyone who tested it.

Closed by the author (audit by Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7351267407 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1584#issuecomment-7351267407). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-12-02T15:59:29Z. --- Closing: compute shaders now take the direct DXIL path by default, so the HLSL indent cap saves little on the default path, and the checks on the earlier head no longer count. Thanks to everyone who tested it. Closed by the author (audit by Claude Code, Claude Opus 5.5).

Pull request closed

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!1574
No description provided.