[OFFICIAL] Swarm: ports from other GPL-3.0 projects into XCL #3011

Open
opened 2026-11-27 12:11:15 +00:00 by throny · 106 comments
throny commented 2026-11-27 12:11:15 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T12:11:15Z.


Goal

Coordinate ports from the other project line into XCL, now that XCL is GPL-3.0-or-later (#3002), so that the things that already make the retail title playable there reach XCL quickly and nobody ports the same piece twice.

The public tracker (another project's repository) lists about 37 projects ahead of XCL on this title; nearly all descend from one Rust code line: another project, another project and, built on them, another project, which reports the world under player control at a median of about 21 frames a second on an RTX 4090. All three are GPL-3.0.

Do not post title binaries, packages, keys, dumps, proprietary names or DRM-related material. Hashes and aggregate measurements only.

Rules for a port (from the maintainer's answer on #3002)

  • A port is a normal PR: one logical change, under ~400 lines where it can be split, tests, the whole suite, smoke blocks, Tested / Not tested, AI use named.
  • Port the mechanism, not the tree: adapt to XCL's modules and switches (new behaviour behind a switch first when it changes what a title sees).

How to claim

Comment with claim: <piece>, the upstream files and commit you port from, the XCL files you expect to touch, and when you expect a draft PR. One claim per person at a time. A claim with no draft PR after 48 hours is free again. Link the PR here when it is up; testers post results on the PR.

What stops XCL today (measured, NVIDIA 16 GB; AMD owners please add yours)

  1. GPU-bound frames: about 2 presents per second in the world with the GPU at 100 %; a GPU profile by another tester puts nearly half of the title's GPU time into the pieces of split compute programs.
  2. Memory: 45-58 GB of process commit and video memory at the budget, because the title's GPU heaps and textures are backed 1:1.
  3. Pipelines: large compute pipelines take 10-30 s each to create on some drivers even from a stored blob; draws and dispatches are skipped or stall meanwhile.
  4. Two-pass geometry buffers hit their cap and drop draws.
  5. Stability: device removal at the driver's shader-heap limit (#2403), and a black world on Intel CPUs since #2892 (being looked at there).

Candidates

A first comparison of how the other project line solves these (which files, how large, how self-contained, in which order) is being written and will be posted here as the first comment within the next hours, so that claims can refer to named pieces. If you already know a piece well (texture streaming, heap placement, mesh shading, pipeline scheduling, frame pacing), say so: a claim by someone who has read that code is worth more than the list.

Not in scope here

  • The licence itself (#3002).
  • Work that is not a port: the existing official issues stay where they are (#2088 for cold pipeline compilation).

I will also coordinate with people on the XCL Discord; decisions and claims belong here so that everyone can see them. AI use: Claude Code (Claude Fable 5.2) drafted this at my request.

<!-- greyfinch-sync:ivall/xcl:issue:6646163924 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011). Originally posted by [throny](https://github.com/throny) on 2026-11-27T12:11:15Z. --- # Goal Coordinate **ports from the other project line into XCL**, now that XCL is GPL-3.0-or-later (#3002), so that the things that already make the retail title playable there reach XCL quickly and nobody ports the same piece twice. The public tracker (another project's repository) lists about 37 projects ahead of XCL on this title; nearly all descend from one Rust code line: another project, another project and, built on them, another project, which reports the world under player control at a median of about 21 frames a second on an RTX 4090. All three are GPL-3.0. Do not post title binaries, packages, keys, dumps, proprietary names or DRM-related material. Hashes and aggregate measurements only. # Rules for a port (from the maintainer's answer on #3002) - A port is a normal PR: one logical change, under ~400 lines where it can be split, tests, the whole suite, smoke blocks, **Tested / Not tested**, AI use named. - Port the mechanism, not the tree: adapt to XCL's modules and switches (new behaviour behind a switch first when it changes what a title sees). # How to claim Comment with **`claim: <piece>`**, the upstream files and commit you port from, the XCL files you expect to touch, and when you expect a draft PR. One claim per person at a time. A claim with no draft PR after 48 hours is free again. Link the PR here when it is up; testers post results on the PR. # What stops XCL today (measured, NVIDIA 16 GB; AMD owners please add yours) 1. **GPU-bound frames**: about 2 presents per second in the world with the GPU at 100 %; a GPU profile by another tester puts nearly half of the title's GPU time into the pieces of split compute programs. 2. **Memory**: 45-58 GB of process commit and video memory at the budget, because the title's GPU heaps and textures are backed 1:1. 3. **Pipelines**: large compute pipelines take 10-30 s each to create on some drivers even from a stored blob; draws and dispatches are skipped or stall meanwhile. 4. **Two-pass geometry buffers** hit their cap and drop draws. 5. **Stability**: device removal at the driver's shader-heap limit (#2403), and a black world on Intel CPUs since #2892 (being looked at there). # Candidates A first comparison of how the other project line solves these (which files, how large, how self-contained, in which order) is being written and will be posted here as the first comment within the next hours, so that claims can refer to named pieces. If you already know a piece well (texture streaming, heap placement, mesh shading, pipeline scheduling, frame pacing), say so: a claim by someone who has read that code is worth more than the list. # Not in scope here - The licence itself (#3002). - Work that is not a port: the existing official issues stay where they are (#2088 for cold pipeline compilation). I will also coordinate with people on the XCL Discord; decisions and claims belong here so that everyone can see them. AI use: Claude Code (Claude Fable 5.2) drafted this at my request.
throny commented 2026-11-27 12:18:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T12:18:32Z.


Candidates: what the other project line does differently, and what to port first. From a read-only comparison of another project 1f69d67 (with another project 63bcca4 and another project 9a9091d where it inherits) against nvidia-dev 3f39671d. Nothing was built or run for this list, so every "why it matters" is a reading of their code and docs, not a measurement on XCL. Corrections from people who know either tree are welcome.

Why they are at ~20 fps and XCL at ~2 (as read):

  • They never split compute programs: one DXIL program per console program. XCL splits programs over 12,500 instructions into chains of pieces, and a GPU profile here put ~46 % of GPU time into those pieces.
  • On 32-lane GPUs they run most wave64 programs without the exchange between the two halves (retry without early-outs first, then "each half is its own wave" where that is exact); the barrier-based exact form is kept for a handful of programs. XCL uses the exact exchange everywhere it applies.
  • Console mesh shading is one native mesh-shader pass. XCL uses two passes with capped record buffers.
  • About 1,000 ray-tracing resolve programs are left out when no acceleration structures are built.
  • Title heaps stay in system memory and textures get host copies only when used, with admission against the video-memory budget (their docs: 9-11 GB peak on 16 GB cards).
# Piece Upstream source Blocker it targets Size Notes
C1 Pipeline library (ID3D12PipelineLibrary1 in a mapped file) for XCL's own pipelines, first for the whole forms of split compute programs another project another project/src/pipeline/library.rs (~600 lines without tests) pipelines; unlocks running whole forms instead of chains S minimal, M full Their comment puts a library load at ~20 ms. Whether it beats CachedPSO on drivers where blob loads take 10-30 s is the first thing to measure. Leave out pipelines with static samplers at first (they note wrong results on NVIDIA); keep the file handle open.
C2 Cheaper wave64 on 32-lane hardware (retry order, exact "local waves" tier only) another project/src/emit/lower.rs, emit/mod.rs (~500 lines on their IR) GPU-bound frames, DXIL size M A re-implementation on XCL's IR, not a copy. Translator change: full shader recompile for testers.
C3 Leave out ray-tracing resolve / activation pipelines when no structures are built, behind a switch another project/src/pipeline/make.rs (~40 lines) pipelines, GPU time S Changes the picture; XCL emulates BVH intersection, so check first whether XCL's rays produce hits.
C4 One-pass native mesh shaders for console mesh shading emit/lower.rs, pipeline/host.rs, draw.rs GPU time, two-pass buffer cap L Depends on C2. High risk (driver hangs).
C5 Video-memory admission for title textures (budget, room for targets, back-off) another project/src/residency.rs + rules in texture.rs memory L (S for the back-off alone) Depends on per-texture host copies, which XCL does not have.
C6 CLZERO loops patched at the first fault, at that site only, atomically instead of scanning executable sections up front another project/src/console_insn.rs (~160 lines; the file's base was ported from XCL) black world on Intel since #2892 (hypothesis) S @Prime1997 this is next to your #2892; it would make sense for you to take it or say no.
C7 Output size / render scale another project/src/resolution.rs GPU time - Do not port as is: it patches title code at fixed offsets, which is game data under XCL's rules. Re-derive through the title's settings.

Not worth porting (XCL has it as well or better): async pipelines with stand-ins and wait budgets, the Series S profile, GPU access to title memory in place (they copy shader writes back and measured 32-50 ms a frame for it on one card), the console CPU-instruction decoder (theirs is XCL's), the direct-DXIL clean-up passes.

Provenance traps when porting: MIT notices that must travel with gfx10/opcodes.rs (generated from Mesa, Valve) and another project/src/texture.rs (AMD addrlib); a Wine patch under linux/ (do not port); credits to the other project and its author forks in ambient.rs and queue/behind.rs; and game data inside source files (title image offsets, program-name lists, shader-hash lists, run logs under diagnostics/), which must be stripped from any port.

claim: C1, minimal version (compute whole forms without static samplers, behind a switch), from another project 1f69d67 another project/src/pipeline/library.rs; XCL files: hle/d3d12x/real.rs beside the CachedPSO path, real/dispatch_chain.rs, a new pipeline_library.rs. This machine is the one where blob loads take 10-30 s, so it is the right place for the gate measurement: library load against CachedPSO for the same whole forms. If loads are not clearly under a second I will say so here and release the claim. Draft PR or that answer within 24 hours.

AI use: Claude Code (a Claude Opus 5.5 sub-agent read both trees; Claude Fable 5.2 wrote this). I have checked the structure of the comparison, not every file reference.

<!-- greyfinch-sync:ivall/xcl:comment:7218087843 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7218087843). Originally posted by [throny](https://github.com/throny) on 2026-11-27T12:18:32Z. --- **Candidates: what the other project line does differently, and what to port first.** From a read-only comparison of another project `1f69d67` (with another project `63bcca4` and another project `9a9091d` where it inherits) against `nvidia-dev` `3f39671d`. Nothing was built or run for this list, so every "why it matters" is a reading of their code and docs, not a measurement on XCL. Corrections from people who know either tree are welcome. **Why they are at ~20 fps and XCL at ~2 (as read):** - They never split compute programs: one DXIL program per console program. XCL splits programs over 12,500 instructions into chains of pieces, and a GPU profile here put ~46 % of GPU time into those pieces. - On 32-lane GPUs they run most wave64 programs without the exchange between the two halves (retry without early-outs first, then "each half is its own wave" where that is exact); the barrier-based exact form is kept for a handful of programs. XCL uses the exact exchange everywhere it applies. - Console mesh shading is one native mesh-shader pass. XCL uses two passes with capped record buffers. - About 1,000 ray-tracing resolve programs are left out when no acceleration structures are built. - Title heaps stay in system memory and textures get host copies only when used, with admission against the video-memory budget (their docs: 9-11 GB peak on 16 GB cards). | # | Piece | Upstream source | Blocker it targets | Size | Notes | |---|---|---|---|---|---| | C1 | **Pipeline library** (`ID3D12PipelineLibrary1` in a mapped file) for XCL's own pipelines, first for the whole forms of split compute programs | another project `another project/src/pipeline/library.rs` (~600 lines without tests) | pipelines; unlocks running whole forms instead of chains | S minimal, M full | Their comment puts a library load at ~20 ms. Whether it beats `CachedPSO` on drivers where blob loads take 10-30 s is the first thing to measure. Leave out pipelines with static samplers at first (they note wrong results on NVIDIA); keep the file handle open. | | C2 | **Cheaper wave64 on 32-lane hardware** (retry order, exact "local waves" tier only) | `another project/src/emit/lower.rs`, `emit/mod.rs` (~500 lines on their IR) | GPU-bound frames, DXIL size | M | A re-implementation on XCL's IR, not a copy. Translator change: full shader recompile for testers. | | C3 | **Leave out ray-tracing resolve / activation pipelines** when no structures are built, behind a switch | `another project/src/pipeline/make.rs` (~40 lines) | pipelines, GPU time | S | Changes the picture; XCL emulates BVH intersection, so check first whether XCL's rays produce hits. | | C4 | **One-pass native mesh shaders** for console mesh shading | `emit/lower.rs`, `pipeline/host.rs`, `draw.rs` | GPU time, two-pass buffer cap | L | Depends on C2. High risk (driver hangs). | | C5 | **Video-memory admission** for title textures (budget, room for targets, back-off) | `another project/src/residency.rs` + rules in `texture.rs` | memory | L (S for the back-off alone) | Depends on per-texture host copies, which XCL does not have. | | C6 | **CLZERO loops patched at the first fault, at that site only, atomically** instead of scanning executable sections up front | `another project/src/console_insn.rs` (~160 lines; the file's base was ported from XCL) | black world on Intel since #2892 (hypothesis) | S | @Prime1997 this is next to your #2892; it would make sense for you to take it or say no. | | C7 | Output size / render scale | `another project/src/resolution.rs` | GPU time | - | **Do not port as is**: it patches title code at fixed offsets, which is game data under XCL's rules. Re-derive through the title's settings. | **Not worth porting** (XCL has it as well or better): async pipelines with stand-ins and wait budgets, the Series S profile, GPU access to title memory in place (they copy shader writes back and measured 32-50 ms a frame for it on one card), the console CPU-instruction decoder (theirs is XCL's), the direct-DXIL clean-up passes. **Provenance traps when porting:** MIT notices that must travel with `gfx10/opcodes.rs` (generated from Mesa, Valve) and `another project/src/texture.rs` (AMD addrlib); a Wine patch under `linux/` (do not port); credits to the other project and its author forks in `ambient.rs` and `queue/behind.rs`; and game data inside source files (title image offsets, program-name lists, shader-hash lists, run logs under `diagnostics/`), which must be stripped from any port. **claim: C1, minimal version** (compute whole forms without static samplers, behind a switch), from another project `1f69d67` `another project/src/pipeline/library.rs`; XCL files: `hle/d3d12x/real.rs` beside the `CachedPSO` path, `real/dispatch_chain.rs`, a new `pipeline_library.rs`. This machine is the one where blob loads take 10-30 s, so it is the right place for the gate measurement: library load against `CachedPSO` for the same whole forms. If loads are not clearly under a second I will say so here and release the claim. Draft PR or that answer within 24 hours. AI use: Claude Code (a Claude Opus 5.5 sub-agent read both trees; Claude Fable 5.2 wrote this). I have checked the structure of the comparison, not every file reference.
VolenNakov commented 2026-11-27 12:21:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by VolenNakov on 2026-11-27T12:21:06Z.


claim: C3 (leave out ray-tracing resolve / activation pipelines while the title has built no acceleration structure, behind a switch, off by default).

  • Upstream: Vice-Tay 1f69d67, crates/victory-gpu/src/pipeline/make.rs (left_out, ~40 lines; VICTORY_RT_RESOLVE, VICTORY_ACTIVATE_RAYS, VICTORY_BVH_BUILDER).
  • XCL files I expect to touch: hle/d3d12x/real.rs (where compute pipelines are created and left out), the acceleration-structure build path that gpu/bvh.rs serves (to know whether any structure was built), plus a test.
  • Not ported as is: upstream picks the programs by a name inside the shader container; that is a program-name list, which #3011 says must stay out. I will select them by what the program does (and fall back to a user-supplied hash file, as the lab's XCL_PSO_SKIP_FILE does), so no title data goes into the source.
  • The gate first, as the candidate list asks: unlike VIctory, XCL builds console-format acceleration structures (gpu/bvh.rs) and emulates image_bvh_intersect_ray, so its rays may hit. Before writing the PR I will measure on this machine (RTX 4060 Ti 16 GB, i7-8700, no ReBAR, main-based tree) whether the title builds structures and whether those programs' output changes anything. If XCL's rays do produce hits, leaving them out would change the picture, and I will say so here and release the claim instead.
  • What it should win if the gate passes: fewer cold compiles (about 1,000 compute records in this title's pack; a local skip file of exactly these already removed a crash at +0x23cf683 for me on MacieGx's lab tree), and their GPU time per frame.

Draft PR or the gate answer within 48 hours.

AI use: Claude Code (Claude Opus 5.5) read both trees and wrote this; I run the tests on my machine.

<!-- greyfinch-sync:ivall/xcl:comment:7218139224 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7218139224). Originally posted by [VolenNakov](https://github.com/VolenNakov) on 2026-11-27T12:21:06Z. --- **claim: C3** (leave out ray-tracing resolve / activation pipelines while the title has built no acceleration structure, behind a switch, off by default). - **Upstream:** Vice-Tay `1f69d67`, `crates/victory-gpu/src/pipeline/make.rs` (`left_out`, ~40 lines; `VICTORY_RT_RESOLVE`, `VICTORY_ACTIVATE_RAYS`, `VICTORY_BVH_BUILDER`). - **XCL files I expect to touch:** `hle/d3d12x/real.rs` (where compute pipelines are created and left out), the acceleration-structure build path that `gpu/bvh.rs` serves (to know whether any structure was built), plus a test. - **Not ported as is:** upstream picks the programs by a name inside the shader container; that is a program-name list, which #3011 says must stay out. I will select them by what the program does (and fall back to a user-supplied hash file, as the lab's `XCL_PSO_SKIP_FILE` does), so no title data goes into the source. - **The gate first**, as the candidate list asks: unlike VIctory, XCL builds console-format acceleration structures (`gpu/bvh.rs`) and emulates `image_bvh_intersect_ray`, so its rays may hit. Before writing the PR I will measure on this machine (RTX 4060 Ti 16 GB, i7-8700, no ReBAR, main-based tree) whether the title builds structures and whether those programs' output changes anything. If XCL's rays do produce hits, leaving them out would change the picture, and I will say so here and release the claim instead. - **What it should win if the gate passes:** fewer cold compiles (about 1,000 compute records in this title's pack; a local skip file of exactly these already removed a crash at `+0x23cf683` for me on MacieGx's lab tree), and their GPU time per frame. Draft PR or the gate answer within 48 hours. AI use: Claude Code (Claude Opus 5.5) read both trees and wrote this; I run the tests on my machine.
throny commented 2026-11-27 12:49:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T12:49:44Z.


C1 (pipeline library): first result, and I am releasing the claim. The minimal port exists (480 lines from another project library.rs with its provenance header, behind XCL_PSO_LIBRARY=1, unit and GPU tests pass, an independent review found no blockers), but two runs on the title show it does not reach the pipelines that matter in XCL as it is:

  • Of 245 large compute pipelines created in a run, only 11 are eligible. The rest have a root signature with static samplers, which another project's own notes say come back wrong from a library on NVIDIA, so the port leaves them out.
  • The premise also got weaker on this machine: with the NVIDIA shader-heap profile at 2 GiB instead of 1 GiB, creating compute pipelines of 750 KB+ of DXIL from CachedPSO takes 0.8-4.6 s on average per run here (177-256 of them a run), not the 10-30 s I measured in the preparation workers yesterday. A library could still be faster, but not by the factor that would justify it.
  • The library was never saved in these runs (fewer than 16 stores, and both runs ended in a title crash), so I have no load times to show. I am not spending more GPU time on it.

If someone wants to continue, the branch is throny/xcl@pso-library (I will push it as it is, unreviewed fixes listed in the commit message); the open question is whether static-sampler pipelines can be made safe. Otherwise C1 is free.

claim: C6 (CLZERO loops patched at the first fault, at that site only, atomically; from another project 1f69d67 another project/src/console_insn.rs), unless @Prime1997 wants it: say so and it is yours. Reason: it is what blocks a usable picture on Intel CPUs right now. On this i9-12900K the last build with a visible world is 71b9f7b2; from #2892 on the world is black with the eager patch, and with XCL_CLZERO_PATCH=0 (or the commit removed) loading takes 7 minutes and the world then runs at 2 frames a minute. XCL files: eh.rs, loader.rs. Draft PR or a "does not help" within 24 hours.

AI use: Claude Code (Claude Fable 5.2); the port was written by a Claude Sonnet 5.5 sub-agent and reviewed by a Claude Opus 5.5 sub-agent.

<!-- greyfinch-sync:ivall/xcl:comment:7218722363 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7218722363). Originally posted by [throny](https://github.com/throny) on 2026-11-27T12:49:44Z. --- **C1 (pipeline library): first result, and I am releasing the claim.** The minimal port exists (480 lines from another project `library.rs` with its provenance header, behind `XCL_PSO_LIBRARY=1`, unit and GPU tests pass, an independent review found no blockers), but two runs on the title show it does not reach the pipelines that matter in XCL as it is: - Of 245 large compute pipelines created in a run, only **11** are eligible. The rest have a root signature with static samplers, which another project's own notes say come back wrong from a library on NVIDIA, so the port leaves them out. - The premise also got weaker on this machine: with the NVIDIA shader-heap profile at 2 GiB instead of 1 GiB, creating compute pipelines of 750 KB+ of DXIL from `CachedPSO` takes 0.8-4.6 s on average per run here (177-256 of them a run), not the 10-30 s I measured in the preparation workers yesterday. A library could still be faster, but not by the factor that would justify it. - The library was never saved in these runs (fewer than 16 stores, and both runs ended in a title crash), so I have no load times to show. I am not spending more GPU time on it. If someone wants to continue, the branch is `throny/xcl@pso-library` (I will push it as it is, unreviewed fixes listed in the commit message); the open question is whether static-sampler pipelines can be made safe. Otherwise C1 is free. **claim: C6** (CLZERO loops patched at the first fault, at that site only, atomically; from another project `1f69d67` `another project/src/console_insn.rs`), unless @Prime1997 wants it: say so and it is yours. Reason: it is what blocks a usable picture on Intel CPUs right now. On this i9-12900K the last build with a visible world is `71b9f7b2`; from #2892 on the world is black with the eager patch, and with `XCL_CLZERO_PATCH=0` (or the commit removed) loading takes 7 minutes and the world then runs at 2 frames a **minute**. XCL files: `eh.rs`, `loader.rs`. Draft PR or a "does not help" within 24 hours. AI use: Claude Code (Claude Fable 5.2); the port was written by a Claude Sonnet 5.5 sub-agent and reviewed by a Claude Opus 5.5 sub-agent.
throny commented 2026-11-27 13:00:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T13:00:49Z.


Correction on C6, and I release that claim too. The reason I gave for it (a black world on Intel since #2892) came from a bisect that turned out to be wrong: the "visible" builds before #2892 were still on the loading screens when I sampled them (correction on #2892). The eager patch of #2892 is what makes the world reachable in 3 minutes on Intel at all. The lazy, atomic variant from another project is written and passes its unit tests (branch throny/xcl@clzero-at-fault, pushed as it is), but it fixes no known problem now, so it is not worth a PR unless @Prime1997 or someone else wants it for robustness. C6 is free; C1 as well (see above). I will pick the next piece from the measurements, not from a guess. AI use: Claude Code (Claude Fable 5.2).

<!-- greyfinch-sync:ivall/xcl:comment:7218950158 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7218950158). Originally posted by [throny](https://github.com/throny) on 2026-11-27T13:00:49Z. --- **Correction on C6, and I release that claim too.** The reason I gave for it (a black world on Intel since #2892) came from a bisect that turned out to be wrong: the "visible" builds before #2892 were still on the loading screens when I sampled them (correction on #2892). The eager patch of #2892 is what makes the world reachable in 3 minutes on Intel at all. The lazy, atomic variant from another project is written and passes its unit tests (branch `throny/xcl@clzero-at-fault`, pushed as it is), but it fixes no known problem now, so it is not worth a PR unless @Prime1997 or someone else wants it for robustness. C6 is free; C1 as well (see above). I will pick the next piece from the measurements, not from a guess. AI use: Claude Code (Claude Fable 5.2).
ClosetPie107 commented 2026-11-27 13:13:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T13:13:46Z.


AMD numbers for "What stops XCL today" (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV, Ryzen 5 9600X, 32 GB; CachyOS, Proton Experimental experimental-11.0-20261112 with vkd3d-proton master ec207194, the lpVtbl checks for command allocators and lists dropped). main 83b00818, release, warm shader cache, XCL_DIRECT_DXIL=1 XCL_PREPARE=1 XCL_PSO_PRELOAD=1 XCL_PSO_WAIT_MS=50 XCL_TEXTURE_LEVEL_PAGES=1 XCL_COHERENT_MB=1024 VKD3D_CONFIG=ignore_shared_fence, 300 s, A pressed every 10 s, 4 runs today.

  1. No 3D picture in the intro. The audio plays and the 2D credit names appear over the intro, but the characters and the scene never show. The runtime is busy all the time: from ~100 s it mostly runs 650–4,200 draws and 3,000–17,000 dispatches per 2 s, at 1–6 presents per 2 s, and only 256 of 96,410 draws and 8 dispatches were skipped. So the title is rendering, but nothing of it reaches the screen. For comparison, VIctory (63bcca4 + its #2723) on this same machine yesterday played the intro cutscene lit, with characters and hair (~1 fps), then the prologue at 2.9–3.3 fps with ~12.7 GB of video memory (Marvisak/VIctory#2723, my comment there).
  2. Memory: ~10 GiB of video memory at 90 s, and the 16 GiB card full (16.2 GiB) later in every run.
  3. Pipelines: with a warm cache the first present comes at ~33 s. With an empty cache, the startup preparation does not finish within 2 × 20 minutes here, so on Linux a first run without a filled cache never reaches the title.
  4. Stability: 0 crashes in today's 4 main runs. Crashes seen on this machine in other runs: game_scarlett_master.exe+0x23cf683 (a write at address 0; 16 runs on 11-24 and 11-26, at ~110–130 s, and once today while the title was being stopped). @VolenNakov, that is the crash you say a skip file of the ray-tracing programs removed for you, so it may be a point for C3. Also a copy in ucrtbase.dll+0x171d9 writing into title memory right after the writing empty BVH descriptor warnings (3 runs).

I'll test C3 on this card once there is a draft PR, and can check here meanwhile whether the title builds acceleration structures on AMD, if that helps the gate.

AI use: Claude Code (Claude Opus 5.5) collected these from the run logs and wrote this; the observation in 1 about what is on screen is mine.

<!-- greyfinch-sync:ivall/xcl:comment:7219216881 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7219216881). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-27T13:13:46Z. --- **AMD numbers for "What stops XCL today"** (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV, Ryzen 5 9600X, 32 GB; CachyOS, Proton Experimental `experimental-11.0-20261112` with vkd3d-proton master `ec207194`, the `lpVtbl` checks for command allocators and lists dropped). `main` `83b00818`, release, warm shader cache, `XCL_DIRECT_DXIL=1 XCL_PREPARE=1 XCL_PSO_PRELOAD=1 XCL_PSO_WAIT_MS=50 XCL_TEXTURE_LEVEL_PAGES=1 XCL_COHERENT_MB=1024 VKD3D_CONFIG=ignore_shared_fence`, 300 s, `A` pressed every 10 s, 4 runs today. 1. **No 3D picture in the intro.** The audio plays and the 2D credit names appear over the intro, but the characters and the scene never show. The runtime is busy all the time: from ~100 s it mostly runs 650–4,200 draws and 3,000–17,000 dispatches per 2 s, at 1–6 presents per 2 s, and only 256 of 96,410 draws and 8 dispatches were skipped. So the title is rendering, but nothing of it reaches the screen. For comparison, VIctory (`63bcca4` + its #2723) on this same machine yesterday played the intro cutscene lit, with characters and hair (~1 fps), then the prologue at 2.9–3.3 fps with ~12.7 GB of video memory (Marvisak/VIctory#2723, my comment there). 2. **Memory:** ~10 GiB of video memory at 90 s, and the 16 GiB card full (16.2 GiB) later in every run. 3. **Pipelines:** with a warm cache the first present comes at ~33 s. With an empty cache, the startup preparation does not finish within 2 × 20 minutes here, so on Linux a first run without a filled cache never reaches the title. 4. **Stability:** 0 crashes in today's 4 `main` runs. Crashes seen on this machine in other runs: `game_scarlett_master.exe+0x23cf683` (a write at address 0; 16 runs on 11-24 and 11-26, at ~110–130 s, and once today while the title was being stopped). @VolenNakov, that is the crash you say a skip file of the ray-tracing programs removed for you, so it may be a point for C3. Also a copy in `ucrtbase.dll+0x171d9` writing into title memory right after the `writing empty BVH descriptor` warnings (3 runs). I'll test C3 on this card once there is a draft PR, and can check here meanwhile whether the title builds acceleration structures on AMD, if that helps the gate. AI use: Claude Code (Claude Opus 5.5) collected these from the run logs and wrote this; the observation in 1 about what is on screen is mine.
coolpersonnn commented 2026-11-27 13:47:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by coolpersonnn on 2026-11-27T13:47:27Z.


claim: C2 (cheaper wave64 on 32-lane hardware — exact tiers only: no-cross-half native wave32, exact wave_local allocation idiom, and early-out/skip removal retry order, behind XCL_WAVE_LOCAL=1, off by default).

  • Upstream: Vice-Tay 1f69d67 (inheriting from VIctory 63bcca4 and victory-fork 9a9091d, GPL-3.0-or-later): crates/victory-shader/src/emit/lower.rs (wave_local + no-cross-half/local-wave lowering), crates/victory-shader/src/emit/mod.rs (exact retry order), crates/victory-shader/src/ir.rs (without_early_outs, without_skips).
  • XCL files I expect to touch: new crates/xcl/src/gpu/recomp/wave_local.rs (+ THIRD_PARTY.md), crates/xcl/src/gpu/recomp/mod.rs, crates/xcl/src/gpu/recomp/pso.rs, crates/xcl/src/gpu/dxil/kernel.rs, crates/xcl/src/gpu/dxil/lanes.rs, crates/xcl/src/gpu/recomp/lower_dxil.rs, crates/xcl/src/gpu/recomp/lower.rs (split into stacked PRs under ~400 lines each: analysis + unit tests first, then opt-in lowering + GPU tests, then early-out/skip retry).
  • Gate first: Before opening the first draft PR I will measure on this RTX 5090 / Ryzen 9 9950X3D (Windows) how many compute programs in the corpus qualify for each exact tier and compare DXIL size, --measure-pso compile time, and GPU execution time against Partner::Spin. If the exact-tier hit rate or speedup is too small to justify the complexity, I will post the numbers here and release the claim.
  • ETA: Gate numbers and first draft PR within 24–48 hours.

AI use: T3 Code (Gemini Pro Orchestrator) compared both trees and drafted this claim; I will review the code and run all builds, tests, and measurements locally.

<!-- greyfinch-sync:ivall/xcl:comment:7219947677 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7219947677). Originally posted by [coolpersonnn](https://github.com/coolpersonnn) on 2026-11-27T13:47:27Z. --- **claim: C2** (cheaper wave64 on 32-lane hardware — exact tiers only: no-cross-half native wave32, exact `wave_local` allocation idiom, and early-out/skip removal retry order, behind `XCL_WAVE_LOCAL=1`, off by default). - **Upstream:** Vice-Tay `1f69d67` (inheriting from VIctory `63bcca4` and victory-fork `9a9091d`, GPL-3.0-or-later): `crates/victory-shader/src/emit/lower.rs` (`wave_local` + no-cross-half/local-wave lowering), `crates/victory-shader/src/emit/mod.rs` (exact retry order), `crates/victory-shader/src/ir.rs` (`without_early_outs`, `without_skips`). - **XCL files I expect to touch:** new `crates/xcl/src/gpu/recomp/wave_local.rs` (+ `THIRD_PARTY.md`), `crates/xcl/src/gpu/recomp/mod.rs`, `crates/xcl/src/gpu/recomp/pso.rs`, `crates/xcl/src/gpu/dxil/kernel.rs`, `crates/xcl/src/gpu/dxil/lanes.rs`, `crates/xcl/src/gpu/recomp/lower_dxil.rs`, `crates/xcl/src/gpu/recomp/lower.rs` (split into stacked PRs under ~400 lines each: analysis + unit tests first, then opt-in lowering + GPU tests, then early-out/skip retry). - **Gate first:** Before opening the first draft PR I will measure on this RTX 5090 / Ryzen 9 9950X3D (Windows) how many compute programs in the corpus qualify for each exact tier and compare DXIL size, `--measure-pso` compile time, and GPU execution time against `Partner::Spin`. If the exact-tier hit rate or speedup is too small to justify the complexity, I will post the numbers here and release the claim. - **ETA:** Gate numbers and first draft PR within 24–48 hours. AI use: T3 Code (Gemini Pro Orchestrator) compared both trees and drafted this claim; I will review the code and run all builds, tests, and measurements locally.
VolenNakov commented 2026-11-27 13:48:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by VolenNakov on 2026-11-27T13:48:42Z.


C3: the draft PR is up as #3026 (XCL_RT_LEAVE_OUT, off by default).

  • The gate passed on my machine. The title names 5 acceleration structures, and none got a root node in 900 s, so every ray misses. XCL now warns once in the log if one ever does. The hit-shading programs do not trace rays themselves.
  • A hands-off A/B on an RTX 4060 Ti 16 GB with an i7-8700, same build, the switch the only difference: world presents/s went from 3.98 to 5.25 (+32 %), and driver compiles started during the run from 957 to 418. No errors, removals or wait timeouts.
  • Selection: the programs are named by the user's fragments, so no title names are in the source.
  • Not tested: the picture (the world is grey on this tree), a cold-cache preparation, later scenes, AMD. Testers welcome, especially on a cold cache.

AI use: Claude Code (Claude Opus 5.5) wrote the port and ran the tests on my machine.

<!-- greyfinch-sync:ivall/xcl:comment:7219973154 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7219973154). Originally posted by [VolenNakov](https://github.com/VolenNakov) on 2026-11-27T13:48:42Z. --- **C3: the draft PR is up as #3026** (`XCL_RT_LEAVE_OUT`, off by default). - **The gate passed on my machine.** The title names 5 acceleration structures, and none got a root node in 900 s, so every ray misses. XCL now warns once in the log if one ever does. The hit-shading programs do not trace rays themselves. - **A hands-off A/B** on an RTX 4060 Ti 16 GB with an i7-8700, same build, the switch the only difference: world presents/s went from 3.98 to 5.25 (+32 %), and driver compiles started during the run from 957 to 418. No errors, removals or wait timeouts. - **Selection:** the programs are named by the user's fragments, so no title names are in the source. - **Not tested:** the picture (the world is grey on this tree), a cold-cache preparation, later scenes, AMD. Testers welcome, especially on a cold cache. AI use: Claude Code (Claude Opus 5.5) wrote the port and ran the tests on my machine.
vitor127wt commented 2026-11-27 14:01:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by vitor127wt on 2026-11-27T14:01:46Z.


Thats weird. The VItory repo seems stalled, not a single merge or commit in days.

<!-- greyfinch-sync:ivall/xcl:comment:7220242505 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7220242505). Originally posted by [vitor127wt](https://github.com/vitor127wt) on 2026-11-27T14:01:46Z. --- Thats weird. The VItory repo seems stalled, not a single merge or commit in days.
throny commented 2026-11-27 14:07:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T14:07:31Z.


New candidates C8-C11 from the upstream watch (another project, 20 commits since 1f69d67, now 57deba5). Read by subject, files and message only; none states a measurement, and I have not checked whether XCL has the same problem, so the first step of each claim is that check. Claim them like the others (claim: C8 …).

# Piece Upstream commit Size Targets
C8 The diffuse ambient resolve gets a depth view of the same texture when the bound view is the stencil plane another project 292adb5 (draw.rs, descriptor/host.rs) S (~90 lines) dark / unlit views (#505)
C9 Due texture slots and the per-frame counters gathered in one pass under one lock another project 369f940 (descriptor/host.rs) S (~75 lines) CPU cost of texture streaming per frame
C10 A submission's copy runs laid out in one pass instead of three another project bb529f1 (host/send.rs, shadow.rs) S (~170 lines) CPU cost per submit; only if XCL's equivalent is hot
C11 Every DXIL loop gets a single back edge (a latch block with phis) another project 8058344 (emit/bitcode.rs) S-M (~240 lines) translator; only the rule transfers: check first whether XCL's direct-DXIL path emits loops with several back edges

Further upstream changes will be added here as C12 and up when the projects move (a script checks every three hours). AI use: Claude Code (a Claude Haiku 5.5 sub-agent screened the commits; Claude Fable 5.2 wrote this).

<!-- greyfinch-sync:ivall/xcl:comment:7220372020 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7220372020). Originally posted by [throny](https://github.com/throny) on 2026-11-27T14:07:31Z. --- **New candidates C8-C11 from the upstream watch** (another project, 20 commits since `1f69d67`, now `57deba5`). Read by subject, files and message only; none states a measurement, and I have not checked whether XCL has the same problem, so the first step of each claim is that check. Claim them like the others (`claim: C8` …). | # | Piece | Upstream commit | Size | Targets | |---|---|---|---|---| | C8 | The diffuse ambient resolve gets a depth view of the same texture when the bound view is the stencil plane | another project `292adb5` (`draw.rs`, `descriptor/host.rs`) | S (~90 lines) | dark / unlit views (#505) | | C9 | Due texture slots and the per-frame counters gathered in one pass under one lock | another project `369f940` (`descriptor/host.rs`) | S (~75 lines) | CPU cost of texture streaming per frame | | C10 | A submission's copy runs laid out in one pass instead of three | another project `bb529f1` (`host/send.rs`, `shadow.rs`) | S (~170 lines) | CPU cost per submit; only if XCL's equivalent is hot | | C11 | Every DXIL loop gets a single back edge (a latch block with phis) | another project `8058344` (`emit/bitcode.rs`) | S-M (~240 lines) | translator; only the rule transfers: check first whether XCL's direct-DXIL path emits loops with several back edges | Further upstream changes will be added here as C12 and up when the projects move (a script checks every three hours). AI use: Claude Code (a Claude Haiku 5.5 sub-agent screened the commits; Claude Fable 5.2 wrote this).
tiagonleal commented 2026-11-27 14:20:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-27T14:20:35Z.


claim: a pipeline build that panics fails like a driver error instead of hanging its waiters (not on the candidate list; a small stability piece).

  • Upstream: victory-fork 46da5ee "GPU: finish a pipeline queue entry when its build panics", crates/victory-gpu/src/pipeline/make.rs, Pending::make_with (author Filip Michalski).
  • XCL files: crates/xcl/src/hle/d3d12x/pso_async.rs (build, the bind-side build in resolve_wait_for, build_pieces), crates/xcl/src/hle/d3d12x/real/dispatch_chain.rs (one lock made tolerant to poisoning), THIRD_PARTY.md.
  • What it fixes in XCL: a build that panics on a worker left its entry "building" forever, so waits without a budget never returned, the worker thread died, and in build_pieces the parent's recv blocked. The test fails without the change (10 s wait, worker xcl-pso-0 dies) and passes with it.
  • No new behaviour for a title: a panicking build now takes the path a failed driver build already takes (stand-in pipeline), so no switch.
  • Draft PR: within the hour, against main; I will link it here.

Also for the list: the Alt/F10 menu-mode freeze fixed in victory-fork ff8694a is already covered by open PR #1441, so nobody needs to port it.

AI use: Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing with the supervision of @tiagonleal.

<!-- greyfinch-sync:ivall/xcl:comment:7220661427 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7220661427). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-27T14:20:35Z. --- **claim: a pipeline build that panics fails like a driver error instead of hanging its waiters** (not on the candidate list; a small stability piece). - **Upstream:** victory-fork `46da5ee` "GPU: finish a pipeline queue entry when its build panics", `crates/victory-gpu/src/pipeline/make.rs`, `Pending::make_with` (author Filip Michalski). - **XCL files:** `crates/xcl/src/hle/d3d12x/pso_async.rs` (`build`, the bind-side build in `resolve_wait_for`, `build_pieces`), `crates/xcl/src/hle/d3d12x/real/dispatch_chain.rs` (one lock made tolerant to poisoning), `THIRD_PARTY.md`. - **What it fixes in XCL:** a build that panics on a worker left its entry "building" forever, so waits without a budget never returned, the worker thread died, and in `build_pieces` the parent's `recv` blocked. The test fails without the change (10 s wait, worker `xcl-pso-0` dies) and passes with it. - **No new behaviour for a title:** a panicking build now takes the path a failed driver build already takes (stand-in pipeline), so no switch. - **Draft PR:** within the hour, against `main`; I will link it here. Also for the list: the Alt/F10 menu-mode freeze fixed in victory-fork `ff8694a` is already covered by open PR #1441, so nobody needs to port it. AI use: Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing with the supervision of @tiagonleal.
tiagonleal commented 2026-11-27 14:20:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-27T14:20:58Z.


Draft PR for the claim above: https://github.com/xcl-dev/xcl/pull/3028

AI use: Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing with the supervision of @tiagonleal.

<!-- greyfinch-sync:ivall/xcl:comment:7220669591 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7220669591). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-27T14:20:58Z. --- Draft PR for the claim above: https://github.com/xcl-dev/xcl/pull/3028 AI use: Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing with the supervision of @tiagonleal.
Decodere commented 2026-11-27 14:22:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T14:22:27Z.


claim: C5 (back-off slice only — E_OUTOFMEMORY cooldown + OS commit-headroom upload admission, behind XCL_UPLOAD_BACKOFF=1, off by default)

Note on scope: full per-texture host-copy VRAM residency admission in C5 remains unclaimed and open for anyone working on that L slice. This claim covers only the standalone S back-off & OS commit-headroom guard (~140–180 non-test LOC), behind opt-in XCL_UPLOAD_BACKOFF=1 (off by default).

  • Upstream source: TaynanGT/Vice-Tay commit 57deba5c4c752b97a8286bdbd80b96517f0988fc, crates/victory-gpu/src/residency.rs (GPL-3.0, inheriting from VIctory / victory-fork).
  • Expected XCL files (nvidia-dev base): new crates/xcl/src/hle/d3d12x/residency.rs (with GPL-3.0 provenance header + matching THIRD_PARTY.md row), plus small wiring in crates/xcl/src/hle/d3d12x/texture_upload.rs, title_textures.rs, sparse.rs, vram.rs, and mod.rs.
  • What it changes (XCL_UPLOAD_BACKOFF=1 only):
    • Keep pooled FREE upload-buffer reuse open while gating fresh CreateCommittedResource upload-buffer growth under low GlobalMemoryStatusEx ullAvailPageFile commit headroom.
    • Preserve E_OUTOFMEMORY detection across texture_upload, sparse, and vram to trigger a shared 500 ms upload cooldown and trim idle FREE upload buffers in title_textures without dropping dirty/pending textures.
    • Track aggregate UPLOAD_DEFERRALS counts (no shader hashes or title names logged).
  • Verification gate (RTX 4060 8 GB, Windows 11, --release): deterministic unit + GPU tests covering default-OFF no-op, 500 ms OOM cooldown, commit-headroom admission, and zero lost dirty textures, plus paired quiet 60 s retail smoke (default vs XCL_UPLOAD_BACKOFF=1) and scripts/pr_check.py --local.
  • ETA: Draft/ready PR expected within a few hours (I will release this claim promptly on #3011 if verification hits a blocker).

AI disclosure: Google Antigravity (Gemini 4 Neon) assisted with the read-only source comparison and drafting of this claim, and will assist implementation and verification on local RTX 4060 8 GB hardware.

<!-- greyfinch-sync:ivall/xcl:comment:7220701508 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7220701508). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T14:22:27Z. --- **claim: C5 (back-off slice only — E_OUTOFMEMORY cooldown + OS commit-headroom upload admission, behind `XCL_UPLOAD_BACKOFF=1`, off by default)** > Note on scope: **full per-texture host-copy VRAM residency admission in C5 remains unclaimed and open** for anyone working on that `L` slice. This claim covers **only the standalone `S` back-off & OS commit-headroom guard** (~140–180 non-test LOC), behind opt-in `XCL_UPLOAD_BACKOFF=1` (off by default). - **Upstream source:** [`TaynanGT/Vice-Tay`](https://github.com/TaynanGT/Vice-Tay) commit `57deba5c4c752b97a8286bdbd80b96517f0988fc`, `crates/victory-gpu/src/residency.rs` (GPL-3.0, inheriting from `VIctory` / `victory-fork`). - **Expected XCL files (`nvidia-dev` base):** new `crates/xcl/src/hle/d3d12x/residency.rs` (with GPL-3.0 provenance header + matching `THIRD_PARTY.md` row), plus small wiring in `crates/xcl/src/hle/d3d12x/texture_upload.rs`, `title_textures.rs`, `sparse.rs`, `vram.rs`, and `mod.rs`. - **What it changes (`XCL_UPLOAD_BACKOFF=1` only):** - Keep pooled `FREE` upload-buffer reuse open while gating fresh `CreateCommittedResource` upload-buffer growth under low `GlobalMemoryStatusEx` `ullAvailPageFile` commit headroom. - Preserve `E_OUTOFMEMORY` detection across `texture_upload`, `sparse`, and `vram` to trigger a shared `500 ms` upload cooldown and trim idle `FREE` upload buffers in `title_textures` without dropping dirty/pending textures. - Track aggregate `UPLOAD_DEFERRALS` counts (no shader hashes or title names logged). - **Verification gate (RTX 4060 8 GB, Windows 11, `--release`):** deterministic unit + GPU tests covering default-OFF no-op, `500 ms` OOM cooldown, commit-headroom admission, and zero lost dirty textures, plus paired quiet 60 s retail smoke (`default` vs `XCL_UPLOAD_BACKOFF=1`) and `scripts/pr_check.py --local`. - **ETA:** Draft/ready PR expected within a few hours (I will release this claim promptly on #3011 if verification hits a blocker). *AI disclosure: Google Antigravity (Gemini 4 Neon) assisted with the read-only source comparison and drafting of this claim, and will assist implementation and verification on local RTX 4060 8 GB hardware.*
UncommonDLL commented 2026-11-27 14:55:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by UncommonDLL on 2026-11-27T14:55:24Z.


@throny We tested the static-sampler question on a desktop RTX 5070 Ti with driver 621.40. Two fresh processes opened the same 2,202-byte D3D12 pipeline library. One created the CLAMP and WRAP root signatures in the writer’s order. The other reversed them. Both readers loaded both named compute pipelines from disk and returned the expected, distinct texel values. Across the direct baseline, writer and two readers, all eight dispatches completed their fences. There were no load failures or fallbacks.

This was a standalone compute fixture on local commit 31e8fd133060612327f5c9763363e5ba577c1610, based on your 355919fb experiment. It tested root-signature creation order on this adapter and driver. XCL’s cache keys and the earlier graphics case with an extra sampler were outside its scope. We can share the fixture if useful.

OpenAI Codex implemented and ran the Windows test. The session identified the GPT-6 family. The exact variant and reasoning setting were unavailable. Claude Sonnet 5.5 with Extra reasoning independently reviewed the method.

<!-- greyfinch-sync:ivall/xcl:comment:7221400611 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7221400611). Originally posted by [UncommonDLL](https://github.com/UncommonDLL) on 2026-11-27T14:55:24Z. --- @throny We tested the static-sampler question on a desktop RTX 5070 Ti with driver 621.40. Two fresh processes opened the same 2,202-byte D3D12 pipeline library. One created the CLAMP and WRAP root signatures in the writer’s order. The other reversed them. Both readers loaded both named compute pipelines from disk and returned the expected, distinct texel values. Across the direct baseline, writer and two readers, all eight dispatches completed their fences. There were no load failures or fallbacks. This was a standalone compute fixture on local commit `31e8fd133060612327f5c9763363e5ba577c1610`, based on your `355919fb` experiment. It tested root-signature creation order on this adapter and driver. XCL’s cache keys and the earlier graphics case with an extra sampler were outside its scope. We can share the fixture if useful. OpenAI Codex implemented and ran the Windows test. The session identified the GPT-6 family. The exact variant and reasoning setting were unavailable. Claude Sonnet 5.5 with Extra reasoning independently reviewed the method.
throny commented 2026-11-27 14:58:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T14:58:29Z.


@UncommonDLL thank you, that is the question the experiment left open: static-sampler compute pipelines come back right from a library on 621.40 in your fixture, in both creation orders. So the exclusion in 355919fb is probably too cautious for XCL, and with it lifted the library would cover the ~230 large compute pipelines it skipped here. What I still cannot show is the gain: with the 2 GiB shader-heap profile CachedPSO loads of those programs take 0.8-4.6 s each on my machine, so a library has to beat that to be worth its complexity. If you (or anyone) want to take C1 on from that branch, lifting the exclusion and timing library loads against CachedPSO for the same programs is the whole gate; I will test whatever comes out of it on this card. AI use: Claude Code (Claude Fable 5.2).

<!-- greyfinch-sync:ivall/xcl:comment:7221465277 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7221465277). Originally posted by [throny](https://github.com/throny) on 2026-11-27T14:58:29Z. --- @UncommonDLL thank you, that is the question the experiment left open: static-sampler compute pipelines come back right from a library on 621.40 in your fixture, in both creation orders. So the exclusion in `355919fb` is probably too cautious for XCL, and with it lifted the library would cover the ~230 large compute pipelines it skipped here. What I still cannot show is the gain: with the 2 GiB shader-heap profile `CachedPSO` loads of those programs take 0.8-4.6 s each on my machine, so a library has to beat that to be worth its complexity. If you (or anyone) want to take C1 on from that branch, lifting the exclusion and timing library loads against `CachedPSO` for the same programs is the whole gate; I will test whatever comes out of it on this card. AI use: Claude Code (Claude Fable 5.2).
pvfreis commented 2026-11-27 14:59:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by pvfreis on 2026-11-27T14:59:26Z.


C11: XCL's direct-DXIL path already has this rule in open #1860 (@Royalflamejlh): gpu/dxil/cfg.rs single_latch gives every loop head and every block one back edge, and module/opt.rs no longer folds the new latch blocks away. Its description measures vkd3d-proton's dxil-spirv segfaulting on 77 of the retail title's 2,682 direct-DXIL compute programs (split wave64 form) without the change and on none with it. Differences from Vice-Tay 8058344: #1860 works on the console program's control flow before lowering rather than on the finished module, and the per-lane form (XCL_PER_LANE=1) is not covered. Both fixes are for Proton (dxil-spirv's structurizer), and #1860 notes that dxil-spirv's master handles these programs without it. So C11 is probably best served by testing or reviewing #1860 (its description lists pixel and vertex programs as not tested) rather than a separate port.

AI use: Claude Code (Claude Opus 5.5) compared the two diffs; Claude Fable 5.2 rechecked this.

<!-- greyfinch-sync:ivall/xcl:comment:7221484669 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7221484669). Originally posted by [pvfreis](https://github.com/pvfreis) on 2026-11-27T14:59:26Z. --- **C11:** XCL's direct-DXIL path already has this rule in open #1860 (@Royalflamejlh): `gpu/dxil/cfg.rs` `single_latch` gives every loop head and every block one back edge, and `module/opt.rs` no longer folds the new latch blocks away. Its description measures vkd3d-proton's dxil-spirv segfaulting on 77 of the retail title's 2,682 direct-DXIL compute programs (split wave64 form) without the change and on none with it. Differences from Vice-Tay `8058344`: #1860 works on the console program's control flow before lowering rather than on the finished module, and the per-lane form (`XCL_PER_LANE=1`) is not covered. Both fixes are for Proton (dxil-spirv's structurizer), and #1860 notes that dxil-spirv's master handles these programs without it. So C11 is probably best served by testing or reviewing #1860 (its description lists pixel and vertex programs as not tested) rather than a separate port. AI use: Claude Code (Claude Opus 5.5) compared the two diffs; Claude Fable 5.2 rechecked this.
UncommonDLL commented 2026-11-27 15:05:43 +00:00 (Migrated from github.com)
Author
Contributor

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


Thanks, that gives us a clear timing target. We also checked the extra-sampler case on the RTX 5070 Ti, driver 621.40. We created a third, distinct BORDER sampler first and kept it alive and unbound. Direct creation and loading the original library both returned the expected CLAMP and WRAP values. Each path ran once. This binary had no no-C comparison. OpenAI Codex ran the Windows test, and Claude Sonnet 5.5 Extra reviewed the method.

For the timing comparison, we’ll check what we can match under the 2 GiB shader-heap profile. If you already have a log identifying the large programs you timed, the program hashes and run settings would help us compare the same work.

<!-- greyfinch-sync:ivall/xcl:comment:7221616947 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7221616947). Originally posted by [UncommonDLL](https://github.com/UncommonDLL) on 2026-11-27T15:05:43Z. --- Thanks, that gives us a clear timing target. We also checked the extra-sampler case on the RTX 5070 Ti, driver 621.40. We created a third, distinct BORDER sampler first and kept it alive and unbound. Direct creation and loading the original library both returned the expected CLAMP and WRAP values. Each path ran once. This binary had no no-C comparison. OpenAI Codex ran the Windows test, and Claude Sonnet 5.5 Extra reviewed the method. For the timing comparison, we’ll check what we can match under the 2 GiB shader-heap profile. If you already have a log identifying the large programs you timed, the program hashes and run settings would help us compare the same work.
KOLESNiii commented 2026-11-27 15:11:27 +00:00 (Migrated from github.com)
Author
Contributor

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


@UncommonDLL on C1 timing (not a claim; it stays with your comparison): we can add a second NVIDIA data point on an older card, the same driver as your RTX 5070 Ti: RTX 2070 SUPER 8 GB, driver 621.40, Ryzen 5 3600XT, 32 GB, Windows 11 build 26300.

When you have a build to compare, post the commit (e.g. throny/xcl@pso-library at 355919fb with the static-sampler exclusion lifted, or your own), the switches and the shader-heap profile setting you use, and how you time it (log lines or --measure-pso). We will run it as you specify it: a library load against CachedPSO for the same programs, one run on each side, on our own retail game, warm and cold DXIL cache stated. We will post the per-program times and the hashes of the programs timed here, as you suggested. An 8 GB Turing card should also show whether a library pays off when the heap budget is tight.

AI use: Claude Code (Claude Opus 5.5) wrote this at the account owner's request.

<!-- greyfinch-sync:ivall/xcl:comment:7221743405 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7221743405). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-27T15:11:27Z. --- @UncommonDLL on C1 timing (not a claim; it stays with your comparison): we can add a second NVIDIA data point on an older card, the same driver as your RTX 5070 Ti: **RTX 2070 SUPER 8 GB, driver 621.40**, Ryzen 5 3600XT, 32 GB, Windows 11 build 26300. When you have a build to compare, post the commit (e.g. `throny/xcl@pso-library` at `355919fb` with the static-sampler exclusion lifted, or your own), the switches and the shader-heap profile setting you use, and how you time it (log lines or `--measure-pso`). We will run it as you specify it: a library load against `CachedPSO` for the same programs, one run on each side, on our own retail game, warm and cold DXIL cache stated. We will post the per-program times and the hashes of the programs timed here, as you suggested. An 8 GB Turing card should also show whether a library pays off when the heap budget is tight. AI use: Claude Code (Claude Opus 5.5) wrote this at the account owner's request.
UncommonDLL commented 2026-11-27 15:14:43 +00:00 (Migrated from github.com)
Author
Contributor

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


@KOLESNiii Thanks, we’ll take you up on that. The same driver on an 8 GB Turing card gives us a useful second data point. We’ll share the tested commit, switches, 2 GiB shader-heap setting and log fields once we’ve verified that each timing comes from the intended cache path. Please hold the runs until then. The per-program hashes and timings you offered are exactly what we need.

<!-- greyfinch-sync:ivall/xcl:comment:7221813052 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7221813052). Originally posted by [UncommonDLL](https://github.com/UncommonDLL) on 2026-11-27T15:14:43Z. --- @KOLESNiii Thanks, we’ll take you up on that. The same driver on an 8 GB Turing card gives us a useful second data point. We’ll share the tested commit, switches, 2 GiB shader-heap setting and log fields once we’ve verified that each timing comes from the intended cache path. Please hold the runs until then. The per-program hashes and timings you offered are exactly what we need.
Decodere commented 2026-11-27 15:19:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T15:19:44Z.


C5 back-off slice PR is up as #3037 (targeting nvidia-dev, behind XCL_UPLOAD_BACKOFF=1 off by default). Full per-texture host-copy VRAM residency in C5 remains unclaimed/open.

AI disclosure: Google Antigravity (Gemini 4 Neon) assisted with implementation, local RTX 4060 8 GB verification, and drafting.

<!-- greyfinch-sync:ivall/xcl:comment:7221920689 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7221920689). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T15:19:44Z. --- C5 back-off slice PR is up as #3037 (targeting `nvidia-dev`, behind `XCL_UPLOAD_BACKOFF=1` off by default). Full per-texture host-copy VRAM residency in C5 remains unclaimed/open. *AI disclosure: Google Antigravity (Gemini 4 Neon) assisted with implementation, local RTX 4060 8 GB verification, and drafting.*
KOLESNiii commented 2026-11-27 15:29:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T15:29:47Z.


A difference found by comparing the trees, not a claim: DirectStorage's automatic submit at half capacity. It is already in XCL as #549, so it is not a new piece.

  • Vice-Tay (64f2fcc, victory-hle/src/modules/dstorage.rs, half_submits()) turns off the PC-style automatic submit of a half-full queue by default (VICTORY_DSTORAGE_HALF=1 brings it back). The title writes a batch's page lists in its own submit, after it has enqueued up to 4,095 requests into a queue of 4,159. An early submit runs those requests on page 0 or on stale pages.
  • XCL main still submits at half capacity (dstorage.rs:1221). Draft #549 (papasmurph0) holds the queue while a page array has a 0 entry. Testers on Windows and Linux, NVIDIA and AMD, measured about 800-2,850 0x89240009 failures per world load without it and 0 with it. It has conflicted since 11-25. shelbykb2 also measured stale entries that were not 0 (6,173 of 33,050 requests rewritten before Submit), which #549 does not hold for and Vice-Tay's approach covers.
  • Details and a request to rebase: https://github.com/xcl-dev/xcl/pull/549#issuecomment-7222122563. If #549 stays dormant, this could be listed as C12: hold the automatic submit until the title's Submit, behind an XCL_* switch. We will test a rebased head with and without it on an RTX 2070 SUPER 8 GB.

AI use: Claude Code (Claude Opus 5.5) at the account owner's request.

<!-- greyfinch-sync:ivall/xcl:comment:7222127356 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7222127356). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-27T15:29:47Z. --- **A difference found by comparing the trees, not a claim: DirectStorage's automatic submit at half capacity.** It is already in XCL as #549, so it is not a new piece. - Vice-Tay (`64f2fcc`, `victory-hle/src/modules/dstorage.rs`, `half_submits()`) turns off the PC-style automatic submit of a half-full queue by default (`VICTORY_DSTORAGE_HALF=1` brings it back). The title writes a batch's page lists in its own submit, after it has enqueued up to 4,095 requests into a queue of 4,159. An early submit runs those requests on page 0 or on stale pages. - XCL `main` still submits at half capacity (`dstorage.rs:1221`). Draft **#549** (papasmurph0) holds the queue while a page array has a 0 entry. Testers on Windows and Linux, NVIDIA and AMD, measured about 800-2,850 `0x89240009` failures per world load without it and 0 with it. It has conflicted since 11-25. shelbykb2 also measured stale entries that were not 0 (6,173 of 33,050 requests rewritten before `Submit`), which #549 does not hold for and Vice-Tay's approach covers. - Details and a request to rebase: https://github.com/xcl-dev/xcl/pull/549#issuecomment-7222122563. If #549 stays dormant, this could be listed as C12: hold the automatic submit until the title's `Submit`, behind an `XCL_*` switch. We will test a rebased head with and without it on an RTX 2070 SUPER 8 GB. AI use: Claude Code (Claude Opus 5.5) at the account owner's request.
UncommonDLL commented 2026-11-27 15:31:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by UncommonDLL on 2026-11-27T15:31:07Z.


@KOLESNiii The timing tool is ready for your RTX 2070 SUPER comparison. Thanks again for offering to test.

Tested commit: 4c6099917a26509f836aaf7b8cf7b2690c3966f0, directly on 355919fb7e4aec8c476035a051e0530b8e9661f1. Pinned build and run instructions.

This is an isolated, primed-cache API-call comparison, not an XCL runtime performance result. The runtime static-sampler exclusion is unchanged. Please follow the README:

  • Build the locked release exporter with cargo +1.100.0-x86_64-pc-windows-msvc build --locked --release -p xcl --bin xcl and build the native comparator using Build.ps1 -OutDir.
  • Export each matching whole compute program with shaders $Package --export-pso "$Study\program-$Record" --record-hash $Record --windows $Windows --split $Split, using the same translation environment (including direct-DXIL and heap-window settings) and actual window count and split flag as the original run. Aim for the 750 KB+ programs throny timed; the harness's minimum is 256 KiB without -Smoke.
  • In the README's $Common arguments to Run.ps1, use the exact adapter name, ShaderHeapProfile = '2 GiB', the source DXIL cache state, and the original descriptor flags and node mask (both default to zero). For static-sampler programs explicitly set $Common.AllowStaticSamplers = $true; leave the runtime exclusion alone.
  • Configure the NVIDIA 2 GiB shader-heap profile externally, as applicable to the actual compare.exe process. Verify the effective setting using your driver/profile configuration readback before seeding and both readers, and keep it unchanged. The tool's profile field is only an operator attestation, not a driver setting or measurement. We have not verified a portable configuration procedure for this profile; please report the setting and how you verified it on your machine, including whether it applies globally or specifically to the comparator executable.

Use one -Mode seed run to seed both artifacts from the same PSO, followed by one fresh process with -Mode library and one with -Mode cached, using the same immutable seed and separate -Receipt paths. Keep them on the same adapter/driver and in the same boot. Please leave the debug layer and capture tools off.

A qualifying pair has identical DXIL SHA-256, serialized root-signature SHA-256, flags and node mask, matching descriptor key and unchanged identities; each reader exits 0 with timed_calls=1. The required outcomes are named_disk_load_ok and cached_blob_accepted_first_call. The second includes a byte-identical returned cached blob, which corroborates acceptance at the API boundary but cannot rule out internal driver compilation or implicit cache work.

Please report each program's record hash, DXIL size and hash, root hash, flags, node mask, both elapsed_ns values and outcomes, driver, effective shader-heap profile and verification method, source DXIL cache state (warm/cold/unknown), implicit driver-cache state if known, and reader order. Count misses, rejections, unverified rows, in-process hits and application fallbacks separately; exclude them from paired timings. You can keep your game files, exported shaders and cache artifacts entirely local.

File reads, device and root-signature creation, library opening, seeding and verification are outside the timer. Only the native LoadComputePipeline or CreateComputePipelineState call is timed, including any runtime or driver work before return. Fresh processes do not flush implicit driver caches.

Our RTX 5070 Ti / 621.40 synthetic smoke verified both outcome labels on a 3,508-byte input with static samplers enabled. It did not verify the 2 GiB profile, time eligible large programs, or dispatch the shader. Those smoke timings are not evidence of a speedup.

OpenAI Codex checked upstream, implemented, built, smoke-tested and interpreted the tool (exact variant and reasoning setting not exposed). Claude Sonnet 5.5 with Extra reasoning independently reviewed the method. ChatGPT prepared this handoff.

<!-- greyfinch-sync:ivall/xcl:comment:7222154154 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7222154154). Originally posted by [UncommonDLL](https://github.com/UncommonDLL) on 2026-11-27T15:31:07Z. --- @KOLESNiii The timing tool is ready for your RTX 2070 SUPER comparison. Thanks again for offering to test. Tested commit: [`4c6099917a26509f836aaf7b8cf7b2690c3966f0`](https://github.com/UncommonDLL/xcl/commit/4c6099917a26509f836aaf7b8cf7b2690c3966f0), directly on `355919fb7e4aec8c476035a051e0530b8e9661f1`. [Pinned build and run instructions](https://github.com/UncommonDLL/xcl/blob/4c6099917a26509f836aaf7b8cf7b2690c3966f0/tests/c1-cache-timing/README.md). This is an isolated, primed-cache API-call comparison, not an XCL runtime performance result. The runtime static-sampler exclusion is unchanged. Please follow the README: - Build the locked release exporter with `cargo +1.100.0-x86_64-pc-windows-msvc build --locked --release -p xcl --bin xcl` and build the native comparator using `Build.ps1 -OutDir`. - Export each matching whole compute program with `shaders $Package --export-pso "$Study\program-$Record" --record-hash $Record --windows $Windows --split $Split`, using the same translation environment (including direct-DXIL and heap-window settings) and actual window count and split flag as the original run. Aim for the 750 KB+ programs throny timed; the harness's minimum is 256 KiB without `-Smoke`. - In the README's `$Common` arguments to `Run.ps1`, use the exact adapter name, `ShaderHeapProfile = '2 GiB'`, the source DXIL cache state, and the original descriptor flags and node mask (both default to zero). For static-sampler programs explicitly set `$Common.AllowStaticSamplers = $true`; leave the runtime exclusion alone. - Configure the NVIDIA 2 GiB shader-heap profile externally, as applicable to the actual `compare.exe` process. Verify the effective setting using your driver/profile configuration readback before seeding and both readers, and keep it unchanged. The tool's profile field is only an operator attestation, not a driver setting or measurement. We have not verified a portable configuration procedure for this profile; please report the setting and how you verified it on your machine, including whether it applies globally or specifically to the comparator executable. Use one `-Mode seed` run to seed both artifacts from the same PSO, followed by one fresh process with `-Mode library` and one with `-Mode cached`, using the same immutable seed and separate `-Receipt` paths. Keep them on the same adapter/driver and in the same boot. Please leave the debug layer and capture tools off. A qualifying pair has identical DXIL SHA-256, serialized root-signature SHA-256, flags and node mask, matching descriptor key and unchanged identities; each reader exits 0 with `timed_calls=1`. The required outcomes are `named_disk_load_ok` and `cached_blob_accepted_first_call`. The second includes a byte-identical returned cached blob, which corroborates acceptance at the API boundary but cannot rule out internal driver compilation or implicit cache work. Please report each program's record hash, DXIL size and hash, root hash, flags, node mask, both `elapsed_ns` values and outcomes, driver, effective shader-heap profile and verification method, source DXIL cache state (warm/cold/unknown), implicit driver-cache state if known, and reader order. Count misses, rejections, unverified rows, in-process hits and application fallbacks separately; exclude them from paired timings. You can keep your game files, exported shaders and cache artifacts entirely local. File reads, device and root-signature creation, library opening, seeding and verification are outside the timer. Only the native `LoadComputePipeline` or `CreateComputePipelineState` call is timed, including any runtime or driver work before return. Fresh processes do not flush implicit driver caches. Our RTX 5070 Ti / 621.40 synthetic smoke verified both outcome labels on a 3,508-byte input with static samplers enabled. It did not verify the 2 GiB profile, time eligible large programs, or dispatch the shader. Those smoke timings are not evidence of a speedup. OpenAI Codex checked upstream, implemented, built, smoke-tested and interpreted the tool (exact variant and reasoning setting not exposed). Claude Sonnet 5.5 with Extra reasoning independently reviewed the method. ChatGPT prepared this handoff.
tiagonleal commented 2026-11-27 16:02:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-27T16:02:44Z.


claim: watertight ray/triangle test for the BVH triangle node (not on the candidate list). image_bvh_intersect_ray triangle nodes use Möller-Trumbore today, which can miss both triangles for a ray through their shared edge. Port of victory-fork 9a9091d crates/victory-shader/src/bvh.rs triangle (after Mesa RADV), in the CPU reference, the HLSL prelude and the direct DXIL lowering, behind XCL_BVH_WATERTIGHT=1, off by default. Draft PR: #3038.

AI use: Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing with the supervision of @tiagonleal.

<!-- greyfinch-sync:ivall/xcl:comment:7222789242 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7222789242). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-27T16:02:44Z. --- **claim: watertight ray/triangle test for the BVH triangle node** (not on the candidate list). `image_bvh_intersect_ray` triangle nodes use Möller-Trumbore today, which can miss both triangles for a ray through their shared edge. Port of victory-fork `9a9091d` `crates/victory-shader/src/bvh.rs` `triangle` (after Mesa RADV), in the CPU reference, the HLSL prelude and the direct DXIL lowering, behind `XCL_BVH_WATERTIGHT=1`, off by default. Draft PR: #3038. AI use: Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing with the supervision of @tiagonleal.
afpruivo commented 2026-11-27 16:10:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-27T16:10:24Z.


Same machine, XCL vs Vice-Tay (RTX 3090 24 GB): in the prologue's first rooms Vice-Tay ran 12–15 fps with ~62 ms of GPU work per frame, XCL 5–8 fps with ~117–183 ms. One run each, both GPU-bound, neither crashed. A baseline for the ports here, not a verdict: the two do different work (below).

Setup

  • RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, 32 GB RAM, Windows 11 26300. Retail 1.0.2.1 (smoke title: 3c290c16).
  • Vice-Tay c44e2ce, built from source (cargo build --locked --release -p victory), shaders with victory shaders (25,788 cached, 197 not translated), launched with its own scripts\play.ps1 -Machine 4090 -Windowed -NoPanel -Build release: Series X profile, no -Dlss/-Fsr, no output or frame-rate patches, otherwise its defaults. One warm-up run before.
  • XCL: #2938 0567c713 + #609, XCL_DIRECT_DXIL=1 XCL_UMA_DRIVER=mixed:1536:1792 XCL_WATCH_TRAP=1 XCL_DECLARED_LDS=1 XCL_BYTE_STORE_CS=e166372fa54a77c7 XCL_TEXTURE_LEVEL_PAGES=1, 2 GiB shader-heap profile (#2590), warm caches. Series X profile.
  • Both driven by hand through the menus and the credits into play; PresentMon on the process for 600 s from launch; the table reads 30 s windows once play has started (~150 s after launch in both).
Vice-Tay XCL
fps in play 12–15 (14.2–14.9 in its steadiest 3 minutes) 5–8 (3–4 in its heaviest windows)
GPU busy per frame (PresentMon median) 55–69 ms 117–183 ms
picture the scene in colour flat grey (the constants after the program, #2229, not in this tree)
draws per frame 3,600–6,200 (its window title) 640–1,400, plus 3,300–7,500 dispatches (XCL_ACTIVITY)
end 600 s, stopped by the script 600 s, 7 queue.Wait timeouts, no crash

Not like for like:

  • Vice-Tay's defaults: ray tracing off with its ambient estimate in its place (VICTORY_AMBIENT=0.8), its left-out passes, and the approximate wave64 tier on this 32-lane card. XCL runs the title's ray-tracing passes (every ray misses, no structures) and exact wave64. Part of the GPU gap is that work.
  • The path in play differs: in XCL's run the picture was grey, so the rooms were not walked the same way. Same opening section, not the same frames.
  • The draw counts are each layer's own count; I have not checked they count the same thing (indirect draws, for one), so I would not read "XCL draws less" from them.
  • Shader heap: XCL 2 GiB profile, Vice-Tay the driver's default 512 MB (no device removal there).

So on this card XCL spends about twice the GPU time per frame of the same section. That fits the split compute pieces in the analysis above (~46 % of XCL's GPU time in another tester's profile) and C3; a run of XCL with C3 (#3026) and with whole forms instead of chains would say how much of the gap they close. I can run those on this card.

AI use: Claude Code (Claude Opus 5.5) built Vice-Tay, ran the captures and drafted this; checked by me before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7222943369 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7222943369). Originally posted by [afpruivo](https://github.com/afpruivo) on 2026-11-27T16:10:24Z. --- **Same machine, XCL vs Vice-Tay (RTX 3090 24 GB): in the prologue's first rooms Vice-Tay ran 12–15 fps with ~62 ms of GPU work per frame, XCL 5–8 fps with ~117–183 ms.** One run each, both GPU-bound, neither crashed. A baseline for the ports here, not a verdict: the two do different work (below). **Setup** - RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, 32 GB RAM, Windows 11 26300. Retail 1.0.2.1 (smoke `title: 3c290c16`). - **Vice-Tay** `c44e2ce`, built from source (`cargo build --locked --release -p victory`), shaders with `victory shaders` (25,788 cached, 197 not translated), launched with its own `scripts\play.ps1 -Machine 4090 -Windowed -NoPanel -Build release`: Series X profile, no `-Dlss`/`-Fsr`, no output or frame-rate patches, otherwise its defaults. One warm-up run before. - **XCL**: #2938 `0567c713` + #609, `XCL_DIRECT_DXIL=1 XCL_UMA_DRIVER=mixed:1536:1792 XCL_WATCH_TRAP=1 XCL_DECLARED_LDS=1 XCL_BYTE_STORE_CS=e166372fa54a77c7 XCL_TEXTURE_LEVEL_PAGES=1`, 2 GiB shader-heap profile (#2590), warm caches. Series X profile. - Both driven by hand through the menus and the credits into play; PresentMon on the process for 600 s from launch; the table reads 30 s windows once play has started (~150 s after launch in both). | | Vice-Tay | XCL | |---|---|---| | fps in play | 12–15 (14.2–14.9 in its steadiest 3 minutes) | 5–8 (3–4 in its heaviest windows) | | GPU busy per frame (PresentMon median) | 55–69 ms | 117–183 ms | | picture | the scene in colour | flat grey (the constants after the program, #2229, not in this tree) | | draws per frame | 3,600–6,200 (its window title) | 640–1,400, plus 3,300–7,500 dispatches (`XCL_ACTIVITY`) | | end | 600 s, stopped by the script | 600 s, 7 `queue.Wait` timeouts, no crash | **Not like for like:** - Vice-Tay's defaults: ray tracing off with its ambient estimate in its place (`VICTORY_AMBIENT=0.8`), its left-out passes, and the approximate wave64 tier on this 32-lane card. XCL runs the title's ray-tracing passes (every ray misses, no structures) and exact wave64. Part of the GPU gap is that work. - The path in play differs: in XCL's run the picture was grey, so the rooms were not walked the same way. Same opening section, not the same frames. - The draw counts are each layer's own count; I have not checked they count the same thing (indirect draws, for one), so I would not read "XCL draws less" from them. - Shader heap: XCL 2 GiB profile, Vice-Tay the driver's default 512 MB (no device removal there). So on this card XCL spends about twice the GPU time per frame of the same section. That fits the split compute pieces in the analysis above (~46 % of XCL's GPU time in another tester's profile) and C3; a run of XCL with C3 (#3026) and with whole forms instead of chains would say how much of the gap they close. I can run those on this card. AI use: Claude Code (Claude Opus 5.5) built Vice-Tay, ran the captures and drafted this; checked by me before posting.
coolpersonnn commented 2026-11-27 16:48:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by coolpersonnn on 2026-11-27T16:48:25Z.


C2 (wave-local compute on 32-lane hardware): gate passed and stacked PRs are up as #3040 and #3042 (XCL_WAVE_LOCAL=1, off by default).

  • #3040 (recomp/wave-local-analysis, 353 non-test lines changed): exact static eligibility analysis (NoCrossHalf and SingleWave) adapted from TaynanGT/Vice-Tay (1f69d67, GPL-3.0-or-later, inheriting from Marvisak/VIctory 63bcca4 and fxceless/victory-fork 9a9091d, with scalar-mask select validation after Kemerd/VIctory-NVIDIA-RT 0fae809e360a), plus THIRD_PARTY.md, 18 unit tests, and XCL_SAMPLE_RPF / XCL_SAMPLE_HASHES retail census.
  • #3042 (recomp/wave-local-lowering, stacked on #3040, 65 non-test lines changed): opt-in XCL_WAVE_LOCAL=1 native wave32 lowering across HLSL, Direct DXIL (#1426), and per-lane DXIL, plus 3 GPU differential tests, retail_wave_local_bench, and README.md docs. Complementary to #2554 (which remaps split-wave64 programs onto one hardware group with barrier exchange; #3042 drops cross-half exchange entirely on programs proven wave-local).

Measured gate & verification (RTX 5090, driver 621.01, Ryzen 9 9950X3D, Windows 11 10.0.26300.0, rustc 1.100.0, DXC 1.8.2502.11):

  • Retail census (26,503 records, 2,689 CS, 1,535 wave32, 1,154 wave64): 358 / 1,154 (31.0%) wave64 compute shaders qualify (NoCrossHalf=339, SingleWave=19). Top rejections: 289 (25.0%) LDS in group > 32 threads, 201 (17.4%) cross-half wave op in group > 32 threads, 96 (8.3%) lane-mask branch with active lanes missing its bit, 92 (8.0%) cross-half v_readlane/v_writelane, 84 (7.3%) whole-wave section. All 4 eligible sampled hot hashes (0f7ab64371906bc1, 3cd7bbae40a84030, 6d685587d4f2f300, 9cd4e68206587565) classify as NoCrossHalf.
  • DXIL & isolated D3D12 CreateComputePipelineState (5 fresh root-signature prefixes 40..44, HLSL): 9cd4e68206587565 drops 17,848B -> 11,444B DXIL (dxc 70.252 -> 37.591 ms) and PSO first_ms 81.409–83.715 ms -> 30.969–37.108 ms; 0f7ab64371906bc1 19,576B -> 18,628B (79.252–87.267 ms -> 73.458–79.048 ms); 3cd7bbae40a84030 18,324B -> 17,296B (65.898–68.508 ms -> 60.067–81.761 ms); 6d685587d4f2f300 11,600B -> 10,964B (29.740–32.055 ms -> 26.821–28.747 ms). Direct DXIL (#1426) and per-lane DXIL DXIL sizes are also compared in #3042.
  • GPU dispatch timing ([128, 1, 1] x 2048 groups, 40 samples/form): HLSL 2.800 us -> 2.112 us, Direct DXIL 2.400 us -> 2.016 us, per-lane DXIL 2.384 us -> 2.064 us.
  • 60 s clean-commit scripts/smoke.ps1 (XCL_PREPARE=0, title: a93b40d7): main (f9a0cb80) 1684 frames / 15930 MB; #3040 (962cdca8) 1699 frames / 16720 MB; #3042 default (becdecfe) 1697 frames / 15937 MB; #3042 XCL_WAVE_LOCAL=1 (becdecfe) 1697 frames / 15660 MB with 68 unique [SHADER] wave-local HLSL compilations (NoCrossHalf=64, SingleWave=4), 0 crashes, 0 device removals.

Left for follow-up: the early-out / skip removal retry order (without_early_outs / without_skips) and flipping XCL_WAVE_LOCAL=1 on by default stay out of #3040/#3042 for now; sustained 3D world frame-time A/B testing with XCL_WAVE_LOCAL=1 is welcome once reviewed.

AI use: T3 Code with Antigravity (gemini-pro-orchestrator-neon) and Codex (gpt-6.2-sol) helped write the adaptation, tests, and this report; all builds, tests, benchmarks, and smoke runs ran locally on the hardware named.

<!-- greyfinch-sync:ivall/xcl:comment:7223691763 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7223691763). Originally posted by [coolpersonnn](https://github.com/coolpersonnn) on 2026-11-27T16:48:25Z. --- **C2 (wave-local compute on 32-lane hardware): gate passed and stacked PRs are up as #3040 and #3042** (`XCL_WAVE_LOCAL=1`, off by default). - **#3040** (`recomp/wave-local-analysis`, 353 non-test lines changed): exact static eligibility analysis (`NoCrossHalf` and `SingleWave`) adapted from `TaynanGT/Vice-Tay` (`1f69d67`, GPL-3.0-or-later, inheriting from `Marvisak/VIctory` `63bcca4` and `fxceless/victory-fork` `9a9091d`, with scalar-mask select validation after `Kemerd/VIctory-NVIDIA-RT` `0fae809e360a`), plus `THIRD_PARTY.md`, 18 unit tests, and `XCL_SAMPLE_RPF` / `XCL_SAMPLE_HASHES` retail census. - **#3042** (`recomp/wave-local-lowering`, stacked on #3040, 65 non-test lines changed): opt-in `XCL_WAVE_LOCAL=1` native wave32 lowering across HLSL, Direct DXIL (`#1426`), and per-lane DXIL, plus 3 GPU differential tests, `retail_wave_local_bench`, and `README.md` docs. Complementary to #2554 (which remaps split-wave64 programs onto one hardware group with barrier exchange; #3042 drops cross-half exchange entirely on programs proven wave-local). **Measured gate & verification (RTX 5090, driver `621.01`, Ryzen 9 9950X3D, Windows 11 `10.0.26300.0`, `rustc 1.100.0`, DXC `1.8.2502.11`):** - **Retail census (`26,503` records, `2,689` CS, `1,535` wave32, `1,154` wave64):** **`358 / 1,154` (`31.0%`)** wave64 compute shaders qualify (`NoCrossHalf=339`, `SingleWave=19`). Top rejections: `289` (`25.0%`) LDS in group > 32 threads, `201` (`17.4%`) cross-half wave op in group > 32 threads, `96` (`8.3%`) lane-mask branch with active lanes missing its bit, `92` (`8.0%`) cross-half `v_readlane`/`v_writelane`, `84` (`7.3%`) whole-wave section. All 4 eligible sampled hot hashes (`0f7ab64371906bc1`, `3cd7bbae40a84030`, `6d685587d4f2f300`, `9cd4e68206587565`) classify as `NoCrossHalf`. - **DXIL & isolated D3D12 `CreateComputePipelineState` (5 fresh root-signature prefixes `40..44`, HLSL):** `9cd4e68206587565` drops `17,848B` -> `11,444B` DXIL (`dxc 70.252 -> 37.591 ms`) and PSO `first_ms` `81.409–83.715 ms` -> `30.969–37.108 ms`; `0f7ab64371906bc1` `19,576B` -> `18,628B` (`79.252–87.267 ms` -> `73.458–79.048 ms`); `3cd7bbae40a84030` `18,324B` -> `17,296B` (`65.898–68.508 ms` -> `60.067–81.761 ms`); `6d685587d4f2f300` `11,600B` -> `10,964B` (`29.740–32.055 ms` -> `26.821–28.747 ms`). Direct DXIL (`#1426`) and per-lane DXIL DXIL sizes are also compared in `#3042`. - **GPU dispatch timing (`[128, 1, 1]` x `2048` groups, 40 samples/form):** HLSL `2.800 us -> 2.112 us`, Direct DXIL `2.400 us -> 2.016 us`, per-lane DXIL `2.384 us -> 2.064 us`. - **60 s clean-commit `scripts/smoke.ps1` (`XCL_PREPARE=0`, `title: a93b40d7`):** `main` (`f9a0cb80`) `1684` frames / `15930 MB`; `#3040` (`962cdca8`) `1699` frames / `16720 MB`; `#3042` default (`becdecfe`) `1697` frames / `15937 MB`; `#3042` `XCL_WAVE_LOCAL=1` (`becdecfe`) `1697` frames / `15660 MB` with `68` unique `[SHADER] wave-local` HLSL compilations (`NoCrossHalf=64`, `SingleWave=4`), `0` crashes, `0` device removals. **Left for follow-up:** the early-out / skip removal retry order (`without_early_outs` / `without_skips`) and flipping `XCL_WAVE_LOCAL=1` on by default stay out of `#3040`/`#3042` for now; sustained 3D world frame-time A/B testing with `XCL_WAVE_LOCAL=1` is welcome once reviewed. AI use: T3 Code with Antigravity (`gemini-pro-orchestrator-neon`) and Codex (`gpt-6.2-sol`) helped write the adaptation, tests, and this report; all builds, tests, benchmarks, and smoke runs ran locally on the hardware named.
KOLESNiii commented 2026-11-27 17:01:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T17:01:08Z.


@UncommonDLL thanks for the tool. Status on the RTX 2070 SUPER side: everything is built and exported, but the runs wait for one elevated step. The 2 GiB shader-heap profile can only be written from an elevated shell, and I can open one at about 21:30 UTC today (2026-11-27). The job starts then and the results follow when it ends.

Ready

  • Your commit 4c609991, clean checkout; exporter built with rustc 1.100.0 MSVC (--locked --release -p xcl --bin xcl); compare.exe built with your Build.ps1 (VS 2022 x64 tools, SHA-256 cb2c427a…57d2).
  • 8 whole compute programs exported from our retail game with --export-pso, --split 1 (this card runs 32-lane waves only) and the default 4 memory windows. Whole DXIL is 1.47–2.08 MB per program (1,472,972 to 2,078,856 bytes), with 5–8 static samplers each, so AllowStaticSamplers will be set. The source DXIL cache was cold (empty folder). The record hashes and DXIL SHA-256 values will be in the results.

How the profile will be set and verified

  • NVAPI DRS setting 0x001ABC0F = 2048 MB, in a profile of its own that holds only the comparator's exe name (c1compare.exe). It does not apply to all of the driver, and not to xcl.exe, so our other XCL runs keep the default heap. It is written with a local build of #2590's xcl nvprofile, retargeted to that exe name.
  • Verified by reading the profile back with the same tool (nvprofile status, which goes through NvAPI_DRS and needs no elevation) before the seed and after both readers. It is removed afterwards. Today it reads "the driver's default shader heap (512 MB on D3D12)".

Run plan, per program, through our exclusive queue so nothing else uses the GPU: one -Mode seed, then the two readers in fresh processes. Reader order alternates by program (library first on odd programs, cached first on even ones). Everything runs in the same boot on driver 621.40, with debug layer and capture tools off. I'll report each row in your template and count qualifying pairs separately from misses, rejections and unverified rows.

AI use: Claude Code (Claude Opus 5.5) prepared the builds and exports and wrote this at the account owner's request.

<!-- greyfinch-sync:ivall/xcl:comment:7223932636 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7223932636). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-27T17:01:08Z. --- @UncommonDLL thanks for the tool. Status on the RTX 2070 SUPER side: everything is built and exported, but the runs wait for one elevated step. The 2 GiB shader-heap profile can only be written from an elevated shell, and I can open one at about **21:30 UTC today (2026-11-27)**. The job starts then and the results follow when it ends. **Ready** - Your commit `4c609991`, clean checkout; exporter built with rustc 1.100.0 MSVC (`--locked --release -p xcl --bin xcl`); `compare.exe` built with your `Build.ps1` (VS 2022 x64 tools, SHA-256 `cb2c427a…57d2`). - 8 whole compute programs exported from our retail game with `--export-pso`, `--split 1` (this card runs 32-lane waves only) and the default 4 memory windows. Whole DXIL is 1.47–2.08 MB per program (1,472,972 to 2,078,856 bytes), with 5–8 static samplers each, so `AllowStaticSamplers` will be set. The source DXIL cache was cold (empty folder). The record hashes and DXIL SHA-256 values will be in the results. **How the profile will be set and verified** - NVAPI DRS setting `0x001ABC0F` = 2048 MB, in a profile of its own that holds only the comparator's exe name (`c1compare.exe`). It does not apply to all of the driver, and not to `xcl.exe`, so our other XCL runs keep the default heap. It is written with a local build of #2590's `xcl nvprofile`, retargeted to that exe name. - Verified by reading the profile back with the same tool (`nvprofile status`, which goes through `NvAPI_DRS` and needs no elevation) before the seed and after both readers. It is removed afterwards. Today it reads "the driver's default shader heap (512 MB on D3D12)". **Run plan**, per program, through our exclusive queue so nothing else uses the GPU: one `-Mode seed`, then the two readers in fresh processes. Reader order alternates by program (library first on odd programs, cached first on even ones). Everything runs in the same boot on driver 621.40, with debug layer and capture tools off. I'll report each row in your template and count qualifying pairs separately from misses, rejections and unverified rows. AI use: Claude Code (Claude Opus 5.5) prepared the builds and exports and wrote this at the account owner's request.
throny commented 2026-11-27 17:39:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T17:39:35Z.


New candidates from the upstream watch (commits of today in the GPL-3.0 projects; read from the diffs, nothing built or measured by us; the numbers are the ones their commit messages state):

  • C13 – another project 52dfd12 (the pipeline/make.rs part, ~90 lines): per-material ray-tracing resolve programs are dropped instead of waited for while they are being made, and queue on their own line with a quarter of the workers kept free. Stated: frames of 300 ms with the resolves waited for; wait 279 ms vs 54 ms. Addresses: draws lost as stand-ins while pipelines are built, and frame time. Related to C3 (#3026), not the same change.
  • C14 – another project 52dfd12 (the host.rs part, ~100 lines): a draw without a free descriptor slot waits for landings without holding the submission lock. Stated: frame 92.7 ms with a settle vs 68.1 ms without; card idle 25.7 ms vs 3.1 ms. Addresses: frame time.
  • C15 – another project 3e573d2 (470 lines in memory.rs, needs splitting): arena pages made from shader fault notes were capped for the whole run and then read zeros; now a held budget (512 MB) that gives back the oldest page. Addresses: parts of the world that stay black (zeros read past a cap). Close to C5 but a different mechanism.
  • C16 – another project b06fdd5 (~150 lines): a bounded wait on the mapping fence; a submission that timed out stays pending and is checked before the list is reused. No numbers stated, default unchanged. Addresses: hangs at a wait (partly).

Why these now: on our RTX 4080 the world is partly drawn since XCL_UMA_WINDOWS=16 (#505), with 30–40 % of a frame's draws as stand-ins, and the device hung at world entry in 2 of 4 runs.

Claim as before: a comment here with the number. Ports need the provenance header and the THIRD_PARTY.md row; no offsets, hashes or program names of the title.

AI use: Claude Code (a Claude Haiku 5.5 sub-agent read the commits, Claude Fable 5.2 wrote this).

<!-- greyfinch-sync:ivall/xcl:comment:7224647963 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7224647963). Originally posted by [throny](https://github.com/throny) on 2026-11-27T17:39:35Z. --- New candidates from the upstream watch (commits of today in the GPL-3.0 projects; read from the diffs, nothing built or measured by us; the numbers are the ones their commit messages state): - **C13** – another project `52dfd12` (the `pipeline/make.rs` part, ~90 lines): per-material ray-tracing resolve programs are dropped instead of waited for while they are being made, and queue on their own line with a quarter of the workers kept free. Stated: frames of 300 ms with the resolves waited for; wait 279 ms vs 54 ms. Addresses: draws lost as stand-ins while pipelines are built, and frame time. Related to C3 (#3026), not the same change. - **C14** – another project `52dfd12` (the `host.rs` part, ~100 lines): a draw without a free descriptor slot waits for landings without holding the submission lock. Stated: frame 92.7 ms with a settle vs 68.1 ms without; card idle 25.7 ms vs 3.1 ms. Addresses: frame time. - **C15** – another project `3e573d2` (470 lines in `memory.rs`, needs splitting): arena pages made from shader fault notes were capped for the whole run and then read zeros; now a held budget (512 MB) that gives back the oldest page. Addresses: parts of the world that stay black (zeros read past a cap). Close to C5 but a different mechanism. - **C16** – another project `b06fdd5` (~150 lines): a bounded wait on the mapping fence; a submission that timed out stays pending and is checked before the list is reused. No numbers stated, default unchanged. Addresses: hangs at a wait (partly). Why these now: on our RTX 4080 the world is partly drawn since `XCL_UMA_WINDOWS=16` (#505), with 30–40 % of a frame's draws as stand-ins, and the device hung at world entry in 2 of 4 runs. Claim as before: a comment here with the number. Ports need the provenance header and the THIRD_PARTY.md row; no offsets, hashes or program names of the title. AI use: Claude Code (a Claude Haiku 5.5 sub-agent read the commits, Claude Fable 5.2 wrote this).
KOLESNiii commented 2026-11-27 17:45:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T17:45:53Z.


Draft PRs are up: #3062 (lists still in flight are held, not reset) and #3063, stacked on it (a readback its wait gave up on is not copied into title memory, found while reviewing #3062). Suite and both smoke blocks are in each.

claim: C16 – a timed-out wait for the sparse queue no longer reuses a command allocator the GPU may still be executing.

  • Upstream: Vice-Tay b06fdd5 ("Allow a bounded wait for the GPU mapping fence", #307; crates/victory-gpu/src/host/mapping_fence.rs and its tests), GPL-3.0-or-later. Mechanism only: a submission whose wait timed out stays pending, and its fence is checked before its list is reused.
  • What XCL has today (main 6089122a): hle/d3d12x/sparse.rs waits for the sparse queue at most 5 s (wait_for, :833-842), but then goes on regardless. begin_slot (:862-873) then Resets that upload slot's allocator and list, and the readback list does the same after wait_for(rb_last_fence) (:1085-1086). If the queue has not got there, that resets an allocator the GPU may still be executing, which D3D12 does not allow.
  • That the timeout happens: retail logs on other machines show sparse: the queue has not reached fence value … after 5 s, five or more times a run, in #675 (from 111 s), #505 (from 185 s, until the abort), #846 (5 and 11 times) and #646. #1385 moves these waits out of the sparse lock but keeps the reset after the timeout.
  • XCL files: crates/xcl/src/hle/d3d12x/sparse.rs (upload slots and the readback list) and its tests; THIRD_PARTY.md. A slot whose submission is still pending after the wait gets a fresh allocator and list. The old pair is kept until its fence passes, so nothing the GPU may still read is reset. The title sees no change.
  • Gate first: a GPU test that holds the sparse queue on an unsignalled fence. It shows the reset of an in-flight allocator on main (debug layer) and none with the change. I'll also run the suite and both smoke blocks. A world run that hits the timeout is out of reach here: this RTX 2070 SUPER does not reach the world on main yet. So I'll ask the reporters of #675 / #505 for one run each way.
  • Draft PR: within 48 h (by 2026-11-29 18:00 UTC), coordinated with #1385, which touches the same functions.

C13–C15, checked against the same main so nobody spends time on them (code only, not measured):

  • C13: already in XCL as XCL_PSO_IMAGE_SKIP=1 (pso_async.rs:1141-1185, off by default). A bind does not wait for a big compute program that writes only images, and its build is not wanted, so it goes behind the pipelines binds wait for. Programs are selected by what they do (gpu::effects::big_and_image_only), not by name, and the doc comment names exactly these per-material ray-tracing resolves. What is left is the question of its default, and 52dfd12's 50 ms wait log line.
  • C14: no counterpart. XCL has no ring of dynamic descriptor slots that a draw can find full: console heaps map onto one shared shader-visible heap.
  • C15: no counterpart. XCL makes no pages from shader fault notes. Title memory reaches the GPU through the UMA windows, whose cap is the window count (#505, XCL_UMA_WINDOWS).

AI use: Claude Code (Claude Opus 5.5) read both trees and wrote this at the account owner's request.

<!-- greyfinch-sync:ivall/xcl:comment:7224761424 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7224761424). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-27T17:45:53Z. --- **Draft PRs are up:** #3062 (lists still in flight are held, not reset) and #3063, stacked on it (a readback its wait gave up on is not copied into title memory, found while reviewing #3062). Suite and both smoke blocks are in each. **claim: C16** – a timed-out wait for the sparse queue no longer reuses a command allocator the GPU may still be executing. - **Upstream:** Vice-Tay `b06fdd5` ("Allow a bounded wait for the GPU mapping fence", #307; `crates/victory-gpu/src/host/mapping_fence.rs` and its tests), GPL-3.0-or-later. Mechanism only: a submission whose wait timed out stays pending, and its fence is checked before its list is reused. - **What XCL has today** (`main` `6089122a`): `hle/d3d12x/sparse.rs` waits for the sparse queue at most 5 s (`wait_for`, :833-842), but then goes on regardless. `begin_slot` (:862-873) then `Reset`s that upload slot's allocator and list, and the readback list does the same after `wait_for(rb_last_fence)` (:1085-1086). If the queue has not got there, that resets an allocator the GPU may still be executing, which D3D12 does not allow. - **That the timeout happens:** retail logs on other machines show `sparse: the queue has not reached fence value … after 5 s`, five or more times a run, in #675 (from 111 s), #505 (from 185 s, until the abort), #846 (5 and 11 times) and #646. #1385 moves these waits out of the sparse lock but keeps the reset after the timeout. - **XCL files:** `crates/xcl/src/hle/d3d12x/sparse.rs` (upload slots and the readback list) and its tests; `THIRD_PARTY.md`. A slot whose submission is still pending after the wait gets a fresh allocator and list. The old pair is kept until its fence passes, so nothing the GPU may still read is reset. The title sees no change. - **Gate first:** a GPU test that holds the sparse queue on an unsignalled fence. It shows the reset of an in-flight allocator on `main` (debug layer) and none with the change. I'll also run the suite and both smoke blocks. A world run that hits the timeout is out of reach here: this RTX 2070 SUPER does not reach the world on `main` yet. So I'll ask the reporters of #675 / #505 for one run each way. - **Draft PR:** within 48 h (by 2026-11-29 18:00 UTC), coordinated with #1385, which touches the same functions. **C13–C15, checked against the same `main` so nobody spends time on them (code only, not measured):** - **C13:** already in XCL as `XCL_PSO_IMAGE_SKIP=1` (`pso_async.rs:1141-1185`, off by default). A bind does not wait for a big compute program that writes only images, and its build is not `wanted`, so it goes behind the pipelines binds wait for. Programs are selected by what they do (`gpu::effects::big_and_image_only`), not by name, and the doc comment names exactly these per-material ray-tracing resolves. What is left is the question of its default, and `52dfd12`'s 50 ms wait log line. - **C14:** no counterpart. XCL has no ring of dynamic descriptor slots that a draw can find full: console heaps map onto one shared shader-visible heap. - **C15:** no counterpart. XCL makes no pages from shader fault notes. Title memory reaches the GPU through the UMA windows, whose cap is the window count (#505, `XCL_UMA_WINDOWS`). AI use: Claude Code (Claude Opus 5.5) read both trees and wrote this at the account owner's request.
UncommonDLL commented 2026-11-27 18:01:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by UncommonDLL on 2026-11-27T18:01:11Z.


@KOLESNiii Thanks for building the tool and getting the eight programs ready. One detail before the run: Build.ps1 produces compare.exe, and your 2 GiB profile names c1compare.exe. If you’re renaming the binary, point Run.ps1 -Exe at c1compare.exe for the seed and both readers. Each receipt records the launched path in command[0]. Could you include just the executable name alongside the profile readback so we can match the two? ChatGPT helped check the scripts and draft this note.

<!-- greyfinch-sync:ivall/xcl:comment:7225031307 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7225031307). Originally posted by [UncommonDLL](https://github.com/UncommonDLL) on 2026-11-27T18:01:11Z. --- @KOLESNiii Thanks for building the tool and getting the eight programs ready. One detail before the run: `Build.ps1` produces `compare.exe`, and your 2 GiB profile names `c1compare.exe`. If you’re renaming the binary, point `Run.ps1 -Exe` at `c1compare.exe` for the seed and both readers. Each receipt records the launched path in `command[0]`. Could you include just the executable name alongside the profile readback so we can match the two? ChatGPT helped check the scripts and draft this note.
kleborgn commented 2026-11-27 19:54:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by kleborgn on 2026-11-27T19:54:26Z.


AMD, RX 7900 XTX 24 GB (RDNA3), amd-dev 7c795f5 + #3024 + #3025, Windows 11 26300 (details in my #2996 comment https://github.com/xcl-dev/xcl/issues/2996#issuecomment-7226984968):

  1. GPU-bound frames: in gameplay about 4-7 presents per second (miss run 8-10 per 2 s, auto run 12-14 per 2 s).
  2. Memory: the process committed 34-38 GB; video memory 15-17.5 GB of a 23.7 GB budget; system commit 47 GB. With the default
    63 GB commit limit it stalled at the limit (free commit 1.1 GB); with a 79 GB limit it did not.
  3. Pipelines: graphics builds 4-17 s each in play, cold, even after a preparation that made 639 graphics pipelines (driver blobs: 0 kept).
  4. Stability: one device removal in eight runs of 6-25 minutes (at 623 s, DRED VA 0, an XCL helper in flight); one
    lock-order deadlock (https://github.com/xcl-dev/xcl/issues/3069); one title-side crash at 1,532 s.
  5. Picture: the world is reached (sound, prompts) but the lit scene is missing, as in #505.

AI use: Claude Code, Claude Sonnet 5.5.

<!-- greyfinch-sync:ivall/xcl:comment:7226985779 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7226985779). Originally posted by [kleborgn](https://github.com/kleborgn) on 2026-11-27T19:54:26Z. --- AMD, RX 7900 XTX 24 GB (RDNA3), `amd-dev` `7c795f5` + #3024 + #3025, Windows 11 26300 (details in my #2996 comment https://github.com/xcl-dev/xcl/issues/2996#issuecomment-7226984968): 1. **GPU-bound frames:** in gameplay about 4-7 presents per second (`miss` run 8-10 per 2 s, `auto` run 12-14 per 2 s). 2. **Memory:** the process committed 34-38 GB; video memory 15-17.5 GB of a 23.7 GB budget; system commit 47 GB. With the default 63 GB commit limit it stalled at the limit (free commit 1.1 GB); with a 79 GB limit it did not. 3. **Pipelines:** graphics builds 4-17 s each in play, cold, even after a preparation that made 639 graphics pipelines (`driver blobs: 0 kept`). 4. **Stability:** one device removal in eight runs of 6-25 minutes (at 623 s, DRED VA 0, an XCL helper in flight); one lock-order deadlock (https://github.com/xcl-dev/xcl/issues/3069); one title-side crash at 1,532 s. 5. **Picture:** the world is reached (sound, prompts) but the lit scene is missing, as in #505. AI use: Claude Code, Claude Sonnet 5.5.
throny commented 2026-11-27 20:39:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T20:39:06Z.


New port candidates from the watch (commits of the last hours; words only, read from the public GPL-3.0 repositories, nothing built or run):

  • C17 another project bc78af6: each pipeline-stream subobject is checked against the stream length before it is read, bytecode is read unaligned; comes with a truncated-stream test. About 54 lines. For XCL: a bad read or crash in pipeline creation.
  • C18 another project 511a950: concurrent cache misses for one key share a single conversion, and the file is re-checked after a failed publish; 8-thread test. About 66 lines. For XCL: duplicate shader / pipeline conversion and rename races in the cache.
  • C19 another project 1d83085: a zero-length range no longer drops mapped views; regression test. About 14 lines. For XCL: worth checking whether our view bookkeeping has the same edge.
  • C20 another project 7fb66ce: batch size and normal-versus-idle priority for the pipeline warm-up workers, with tests. About 56 lines; its message states no numbers.
  • C21 another project 312f5a8: opt-in write-watched allocation for large title memory, with the matching release. About 103 lines; experimental, no numbers stated.

Not a candidate as it stands: another project cd93552 (dark water patches on 32-lane GPUs) keys on one program's digest. The idea, a tile slot per lane on 32-lane hosts, would have to be re-derived generically.

As before: comment with the number before you start one, and a port needs the provenance note and a THIRD_PARTY.md entry.

AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this list was written by Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7227709884 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7227709884). Originally posted by [throny](https://github.com/throny) on 2026-11-27T20:39:06Z. --- New port candidates from the watch (commits of the last hours; words only, read from the public GPL-3.0 repositories, nothing built or run): - **C17** another project `bc78af6`: each pipeline-stream subobject is checked against the stream length before it is read, bytecode is read unaligned; comes with a truncated-stream test. About 54 lines. For XCL: a bad read or crash in pipeline creation. - **C18** another project `511a950`: concurrent cache misses for one key share a single conversion, and the file is re-checked after a failed publish; 8-thread test. About 66 lines. For XCL: duplicate shader / pipeline conversion and rename races in the cache. - **C19** another project `1d83085`: a zero-length range no longer drops mapped views; regression test. About 14 lines. For XCL: worth checking whether our view bookkeeping has the same edge. - **C20** another project `7fb66ce`: batch size and normal-versus-idle priority for the pipeline warm-up workers, with tests. About 56 lines; its message states no numbers. - **C21** another project `312f5a8`: opt-in write-watched allocation for large title memory, with the matching release. About 103 lines; experimental, no numbers stated. Not a candidate as it stands: another project `cd93552` (dark water patches on 32-lane GPUs) keys on one program's digest. The idea, a tile slot per lane on 32-lane hosts, would have to be re-derived generically. As before: comment with the number before you start one, and a port needs the provenance note and a `THIRD_PARTY.md` entry. AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this list was written by Claude Fable 5.2.
DzXAnt22 commented 2026-11-27 20:57:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by DzXAnt22 on 2026-11-27T20:57:24Z.


C17-C21, checked against main 6089122a so nobody spends time on them (code only, nothing built or measured for this):

  • C17 (pipeline-stream subobjects checked against the stream length, unaligned bytecode read): already in XCL. hle/d3d12x/real.rs own_stream stops when a subobject's end passes SizeInBytes (checked adds), stream_subobjects / known_subobjects take payloads with buf.get(..), and the null device's capture_stream_desc (null.rs) breaks when the payload passes the size (test a_stream_ending_inside_a_shader_payload_is_not_read_past_its_end). The bytecode words are read with from_le_bytes from byte slices, so alignment does not matter.
  • C18 (concurrent cache misses for one key share one conversion; re-check after a failed publish): already in XCL's DXIL cache. gpu/recomp/dxc.rs compile_cached_in_observed takes a per-key in-process flight (cache_flight, the same Weak<Mutex<()>> map) and a per-file cross-process mutex (process_cache_lock), then checks the cache again before compiling (coalesced_hits). Publishing writes a temporary file and renames it. Not checked: the driver-blob store for pipelines.
  • C19 (a zero-length range no longer drops mapped views): XCL's counterpart is hle/d3d12x/sparse.rs decommitted(a, n), which the kernelx free paths call; it returns at once when n == 0. I did not find another view table keyed by title ranges with the same edge.
  • C20 (batch size and idle/normal priority for warm-up worker processes): no direct counterpart. Upstream's knobs belong to its separate warm worker processes; XCL's preparation compiles in-process threads, and pso_async.rs already moves its pipeline workers between normal and lowest thread priority. The upstream commit states no measurement.
  • C21 (opt-in write-watched allocation for large title memory): XCL's title memory already lives in write-watched regions (gpu/uma.rs, MEM_WRITE_WATCH on the UMA windows and their coherent parts), which the GPU reads in place, so the upstream piece (which feeds its copy-back tracking) has no counterpart.

AI use: Claude Code (Claude Opus 5.5) read the upstream commits and the XCL code and wrote this at the account owner's request.

<!-- greyfinch-sync:ivall/xcl:comment:7227996657 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7227996657). Originally posted by [DzXAnt22](https://github.com/DzXAnt22) on 2026-11-27T20:57:24Z. --- **C17-C21, checked against `main` `6089122a` so nobody spends time on them** (code only, nothing built or measured for this): - **C17** (pipeline-stream subobjects checked against the stream length, unaligned bytecode read): already in XCL. `hle/d3d12x/real.rs` `own_stream` stops when a subobject's end passes `SizeInBytes` (checked adds), `stream_subobjects` / `known_subobjects` take payloads with `buf.get(..)`, and the null device's `capture_stream_desc` (`null.rs`) breaks when the payload passes the size (test `a_stream_ending_inside_a_shader_payload_is_not_read_past_its_end`). The bytecode words are read with `from_le_bytes` from byte slices, so alignment does not matter. - **C18** (concurrent cache misses for one key share one conversion; re-check after a failed publish): already in XCL's DXIL cache. `gpu/recomp/dxc.rs` `compile_cached_in_observed` takes a per-key in-process flight (`cache_flight`, the same `Weak<Mutex<()>>` map) and a per-file cross-process mutex (`process_cache_lock`), then checks the cache again before compiling (`coalesced_hits`). Publishing writes a temporary file and renames it. Not checked: the driver-blob store for pipelines. - **C19** (a zero-length range no longer drops mapped views): XCL's counterpart is `hle/d3d12x/sparse.rs` `decommitted(a, n)`, which the kernelx free paths call; it returns at once when `n == 0`. I did not find another view table keyed by title ranges with the same edge. - **C20** (batch size and idle/normal priority for warm-up worker processes): no direct counterpart. Upstream's knobs belong to its separate `warm` worker processes; XCL's preparation compiles in-process threads, and `pso_async.rs` already moves its pipeline workers between normal and lowest thread priority. The upstream commit states no measurement. - **C21** (opt-in write-watched allocation for large title memory): XCL's title memory already lives in write-watched regions (`gpu/uma.rs`, `MEM_WRITE_WATCH` on the UMA windows and their coherent parts), which the GPU reads in place, so the upstream piece (which feeds its copy-back tracking) has no counterpart. AI use: Claude Code (Claude Opus 5.5) read the upstream commits and the XCL code and wrote this at the account owner's request.
treybertram06 commented 2026-11-27 21:02:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by treybertram06 on 2026-11-27T21:02:35Z.


Measurement for item 2 (memory) on a 10 GB card: most of the slow GPU time there is video memory Windows moved to system RAM. No claim.

RTX 3080 10 GB (budget Windows gives the process: 8.6-9.3 GB), Windows 11 26300, release build of nvidia-dev d1be8103 + #2987 + #3039 (+ local profiling hooks), same retail title, 480 s each, world from about 90 s, XCL_COHERENT_HEAPS=sparse.

What it was: with the default sparse setup the process reached 18.7 GB of video memory. Windows' GPU counters for the game process show dedicated usage pinned at ~8.75 GB and shared (system RAM the GPU maps) at 12.2 GB, with the system copy engine paging in bursts. A screen-space pass (8797f3d417593aa7, 160x180 groups of 8x8) took ~145 ms per call. An Nsight Perf SDK report of it: warps on long scoreboard, ~10 µs per memory access, SMs issuing ~4 % of L2 sectors. The same pass took 0.6-1.4 ms when the heaps were in the coherent window instead. A plain group barrier in place of the safe barrier changed nothing (ruled out).

480 s each video memory console GPU ops in ~280 s of GPU time b78fa10b425b8e54 per call fps (last 300 frames)
sparse 18.7 GB 1.26M ~145 ms 1.1
+ XCL_SPARSE_LAZY=1 14.2 GB 2.09M ~155 ms 1.4
+ XCL_TEXTURE_SYSMEM=1 (#3039) 10.2 GB 2.67M 3-5 ms 1.5
+ #2357, XCL_TARGET_PAGES_MB=1536 8.4 GB (under budget all run) 3.59M ~2.8 ms 1.9
  • XCL_SPARSE_LAZY=1 (already on nvidia-dev, off by default) alone took the sparse pools from 7.5 GB to 2.6 GB on this title: tiles the title commits but never writes.
  • The #2357 row is an approximation: I merged its diff (af3ebe93) by hand onto this tree. main reworked the upload path since its base, and 3 of its title_textures tests fail on my merge. It shows the effect of the pool cap, not that #2357 is ready on this base.
  • One device removal (0x887a0006) at 50 s in the menus with lazy + texture sysmem. The two 150 s repeats and the 480 s run of that setup had none.

Not tested: AMD; cards with more VRAM; how the capped textures look (no screenshots compared); anything past 480 s.

Edit, on XCL_SPARSE_LAZY: I first wrote that I would open a PR turning it on by default. I won't: as its own doc comment says, a console shader that stores through a window into a committed tile nobody has touched yet writes to a NULL-mapped tile, and the write is lost. Some of the "never got a byte from the CPU" tiles may be GPU-written, so the rows with XCL_SPARSE_LAZY=1 may include dropped GPU writes (the title also stopped dispatching 8797f3d417593aa7 in those runs). Turning it on by default would first need the tiles a dispatch can write (its writable buffer descriptors) to get video memory before the dispatch runs.

Measured and written with Claude Code (Claude Opus 5.5): the runs, the profiling and this report.

<!-- greyfinch-sync:ivall/xcl:comment:7228078640 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7228078640). Originally posted by [treybertram06](https://github.com/treybertram06) on 2026-11-27T21:02:35Z. --- **Measurement for item 2 (memory) on a 10 GB card: most of the slow GPU time there is video memory Windows moved to system RAM.** No claim. RTX 3080 10 GB (budget Windows gives the process: 8.6-9.3 GB), Windows 11 26300, release build of `nvidia-dev` `d1be8103` + #2987 + #3039 (+ local profiling hooks), same retail title, 480 s each, world from about 90 s, `XCL_COHERENT_HEAPS=sparse`. **What it was:** with the default sparse setup the process reached 18.7 GB of video memory. Windows' GPU counters for the game process show dedicated usage pinned at ~8.75 GB and shared (system RAM the GPU maps) at 12.2 GB, with the system copy engine paging in bursts. A screen-space pass (`8797f3d417593aa7`, 160x180 groups of 8x8) took ~145 ms per call. An Nsight Perf SDK report of it: warps on long scoreboard, ~10 µs per memory access, SMs issuing ~4 % of L2 sectors. The same pass took 0.6-1.4 ms when the heaps were in the coherent window instead. A plain group barrier in place of the safe barrier changed nothing (ruled out). | 480 s each | video memory | console GPU ops in ~280 s of GPU time | `b78fa10b425b8e54` per call | fps (last 300 frames) | |---|---|---|---|---| | sparse | 18.7 GB | 1.26M | ~145 ms | 1.1 | | + `XCL_SPARSE_LAZY=1` | 14.2 GB | 2.09M | ~155 ms | 1.4 | | + `XCL_TEXTURE_SYSMEM=1` (#3039) | 10.2 GB | 2.67M | 3-5 ms | 1.5 | | + #2357, `XCL_TARGET_PAGES_MB=1536` | **8.4 GB** (under budget all run) | **3.59M** | ~2.8 ms | **1.9** | - `XCL_SPARSE_LAZY=1` (already on `nvidia-dev`, off by default) alone took the sparse pools from 7.5 GB to 2.6 GB on this title: tiles the title commits but never writes. - The #2357 row is an approximation: I merged its diff (`af3ebe93`) by hand onto this tree. `main` reworked the upload path since its base, and 3 of its `title_textures` tests fail on my merge. It shows the effect of the pool cap, not that #2357 is ready on this base. - One device removal (0x887a0006) at 50 s in the menus with lazy + texture sysmem. The two 150 s repeats and the 480 s run of that setup had none. **Not tested:** AMD; cards with more VRAM; how the capped textures look (no screenshots compared); anything past 480 s. **Edit, on `XCL_SPARSE_LAZY`:** I first wrote that I would open a PR turning it on by default. I won't: as its own doc comment says, a console shader that stores through a window into a committed tile nobody has touched yet writes to a NULL-mapped tile, and the write is lost. Some of the "never got a byte from the CPU" tiles may be GPU-written, so the rows with `XCL_SPARSE_LAZY=1` may include dropped GPU writes (the title also stopped dispatching `8797f3d417593aa7` in those runs). Turning it on by default would first need the tiles a dispatch can write (its writable buffer descriptors) to get video memory before the dispatch runs. Measured and written with Claude Code (Claude Opus 5.5): the runs, the profiling and this report.
afpruivo commented 2026-11-27 22:05:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-27T22:05:47Z.


Where the GPU time goes in the world, per program, on an RTX 3090: about 170 ms a frame, and about two thirds of the top 60 programs' time is character work (skinning, hair strands, character draws). One skinning program alone takes 19-26 ms a frame. This follows my same-machine comparison above (7222943369: XCL 117-183 ms of GPU time per frame against about 62 ms for Vice-Tay c44e2ce). That comparison said how much slower we are; this says where the time goes.

Setup: RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, release. Tree nvidia-dev d1be8103 + #3003 #3004 #3005 #3006 + #609 + #2551. XCL_DIRECT_DXIL=1 XCL_UMA_DRIVER=mixed:1536:1792 XCL_TEXTURE_LEVEL_PAGES=1, XCL_PRESS_HOLD=3.5, A every 4 s, compute pipelines precompiled with --used-only. Measured with nvidia-dev's XCL_GPU_TIMES=16,420: 16 frames, from 420 s after the first present. From about 200 s the title draws a steady world workload: about 1,900 draws and 4,600 dispatches a frame, at 6 fps. The picture is black on this tree (no #2229), so this is the world's GPU work, but I can't show that the player had control.

By kind of work (ms per frame, sum of the top 60 of about 1,330 programs; the direct and compute queues overlap, so sums can be more than the frame):

run 1 run 2 run 3 run 4
frame (wall) 166 199 169 172
character skinning (compute) 54 65 52 56
hair strands (compute, 13 programs) 32 36 32 30
volumetric light and scattering (compute) 23 27 26 24
character draws (mesh two-pass) 15 19 10 15
the rest of the top 60 42 52 44 41

Runs 3 and 4 used a local change that takes a fresh timestamp right before every call, so work XCL records between two calls is not counted in the second. Run 4 also had XCL_BVH_WALK=0. The order stays the same, so the attribution holds. Compute is about 80 % of the time. Programs split into two 32-lane halves take only about 26 ms, so the split is not the main cost. Ordinary graphics draws take about 4 ms.

Top programs (dump hashes, ms per frame in runs 1-4):

dump hash kind runs 1-4
5a29b696095f77ac character skinning, CS wave32, 5 calls a frame 19.3, 25.4, 26.4, 21.9
44ca55bfefe67bd5 character skinning, CS wave32, about 231 calls a frame 9.8, 11.7, 8.5, 11.0
95bc3980ec624295 volumetric scattering, CS, 1 call (ExecuteIndirect) 7.0, 9.3, 7.9, 7.9
b78fa10b425b8e54 depth processing, CS wave64 split, 1 call 7.6, 8.3, 7.7, 7.9
2504944a10775aeb volumetric scattering, CS, 1 call (ExecuteIndirect) 7.5, 8.2, 7.8, 7.8
7b0c2ac0ea62b4d4 hair strands, CS wave32, 28 calls a frame 7.4, 8.4, 7.4, 7.4
ms bf5a7665d0c6631a + ps af68da74e05dbb3c character draw, mesh two-pass, about 154 a frame 7.0, 8.3, 4.2, 7.3

The clearest lead: 5a29b696095f77ac. One dispatch of 664 groups of 32 lanes takes 13-20 ms. The console fits its whole frame in at most 33 ms on a GPU about a third as fast as this one, so this is almost certainly how we translate the program, not work the title needs. What its translation shows (direct DXIL, 4 memory windows):

  • 57 KB of console code (about 10,300 instructions, about 80 VGPRs, 646 buffer loads, 20 stores) becomes 723 KB of DXIL with 6,040 rawBufferLoad.
  • Every access goes through a 4-way switch on the memory window (713 of them). The window comes from an address built from a buffer descriptor that is itself loaded from title memory through another window switch. So each access is a chain of dependent loads where the console keeps the descriptor in SGPRs (95 s_load in the program).
  • The 13 typed (format_xyzw) stores become atomic read-modify-writes (209 atomics). With only 20 stores, I doubt they are the cost.

That is a reading of the code, not a measured cause. I couldn't replay the call alone. #2434's capture conflicts with nvidia-dev, and on a main-based tree with #2434 + #2938 + #609 the title never called this program in 420 s (its scene was lighter there). If someone has a single-call replay on an nvidia-dev tree, timing this one program with 1 window against 4, and HLSL against direct DXIL, would show which part costs the time. I can send the per-run tables.

Not checked: other GPUs and AMD; a frame with the player in control; whether the same programs lead in other parts of the world; anything about frames with the picture right (#2229).

AI use: Claude Code (Claude Opus 5.5) ran the four runs and the analysis on my PC and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7229023662 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7229023662). Originally posted by [afpruivo](https://github.com/afpruivo) on 2026-11-27T22:05:47Z. --- **Where the GPU time goes in the world, per program, on an RTX 3090: about 170 ms a frame, and about two thirds of the top 60 programs' time is character work (skinning, hair strands, character draws). One skinning program alone takes 19-26 ms a frame.** This follows my same-machine comparison above (7222943369: XCL 117-183 ms of GPU time per frame against about 62 ms for Vice-Tay `c44e2ce`). That comparison said how much slower we are; this says where the time goes. **Setup:** RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, release. Tree `nvidia-dev` `d1be8103` + #3003 #3004 #3005 #3006 + #609 + #2551. `XCL_DIRECT_DXIL=1 XCL_UMA_DRIVER=mixed:1536:1792 XCL_TEXTURE_LEVEL_PAGES=1`, `XCL_PRESS_HOLD=3.5`, A every 4 s, compute pipelines precompiled with `--used-only`. Measured with `nvidia-dev`'s `XCL_GPU_TIMES=16,420`: 16 frames, from 420 s after the first present. From about 200 s the title draws a steady world workload: about 1,900 draws and 4,600 dispatches a frame, at 6 fps. The picture is black on this tree (no #2229), so this is the world's GPU work, but I can't show that the player had control. **By kind of work** (ms per frame, sum of the top 60 of about 1,330 programs; the direct and compute queues overlap, so sums can be more than the frame): | | run 1 | run 2 | run 3 | run 4 | |---|---|---|---|---| | frame (wall) | 166 | 199 | 169 | 172 | | character skinning (compute) | 54 | 65 | 52 | 56 | | hair strands (compute, 13 programs) | 32 | 36 | 32 | 30 | | volumetric light and scattering (compute) | 23 | 27 | 26 | 24 | | character draws (mesh two-pass) | 15 | 19 | 10 | 15 | | the rest of the top 60 | 42 | 52 | 44 | 41 | Runs 3 and 4 used a local change that takes a fresh timestamp right before every call, so work XCL records between two calls is not counted in the second. Run 4 also had `XCL_BVH_WALK=0`. The order stays the same, so the attribution holds. Compute is about 80 % of the time. Programs split into two 32-lane halves take only about 26 ms, so the split is not the main cost. Ordinary graphics draws take about 4 ms. **Top programs** (dump hashes, ms per frame in runs 1-4): | dump hash | kind | runs 1-4 | |---|---|---| | `5a29b696095f77ac` | character skinning, CS wave32, 5 calls a frame | 19.3, 25.4, 26.4, 21.9 | | `44ca55bfefe67bd5` | character skinning, CS wave32, about 231 calls a frame | 9.8, 11.7, 8.5, 11.0 | | `95bc3980ec624295` | volumetric scattering, CS, 1 call (ExecuteIndirect) | 7.0, 9.3, 7.9, 7.9 | | `b78fa10b425b8e54` | depth processing, CS wave64 split, 1 call | 7.6, 8.3, 7.7, 7.9 | | `2504944a10775aeb` | volumetric scattering, CS, 1 call (ExecuteIndirect) | 7.5, 8.2, 7.8, 7.8 | | `7b0c2ac0ea62b4d4` | hair strands, CS wave32, 28 calls a frame | 7.4, 8.4, 7.4, 7.4 | | ms `bf5a7665d0c6631a` + ps `af68da74e05dbb3c` | character draw, mesh two-pass, about 154 a frame | 7.0, 8.3, 4.2, 7.3 | **The clearest lead: `5a29b696095f77ac`.** One dispatch of 664 groups of 32 lanes takes 13-20 ms. The console fits its whole frame in at most 33 ms on a GPU about a third as fast as this one, so this is almost certainly how we translate the program, not work the title needs. What its translation shows (direct DXIL, 4 memory windows): - 57 KB of console code (about 10,300 instructions, about 80 VGPRs, 646 buffer loads, 20 stores) becomes 723 KB of DXIL with 6,040 `rawBufferLoad`. - Every access goes through a 4-way `switch` on the memory window (713 of them). The window comes from an address built from a buffer descriptor that is itself loaded from title memory through another window switch. So each access is a chain of dependent loads where the console keeps the descriptor in SGPRs (95 `s_load` in the program). - The 13 typed (`format_xyzw`) stores become atomic read-modify-writes (209 atomics). With only 20 stores, I doubt they are the cost. That is a reading of the code, not a measured cause. I couldn't replay the call alone. #2434's capture conflicts with `nvidia-dev`, and on a `main`-based tree with #2434 + #2938 + #609 the title never called this program in 420 s (its scene was lighter there). If someone has a single-call replay on an `nvidia-dev` tree, timing this one program with 1 window against 4, and HLSL against direct DXIL, would show which part costs the time. I can send the per-run tables. **Not checked:** other GPUs and AMD; a frame with the player in control; whether the same programs lead in other parts of the world; anything about frames with the picture right (#2229). **AI use:** Claude Code (Claude Opus 5.5) ran the four runs and the analysis on my PC and wrote this comment.
mokkamokacaffe commented 2026-11-27 23:10:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-27T23:10:16Z.


claim: BC7 channel rotation only in modes 4 and 5

Upstream

  • ScarlettPort #108, engine/crates/scarlett-formats/src/bcpack.rs, GPL-3.0-or-later.
  • ScarlettPort credits fxceless/victory-fork commit 06702fe, via VIscosity commit b8e7001d.

XCL files

  • crates/xcl/src/hle/bcpack/victory.rs
  • THIRD_PARTY.md

BC7 control bits 3–4 encode channel rotation only in modes 4 and 5. XCL previously read them as rotation for every mode, which could swap alpha with a colour channel when those bits had another meaning.

Draft PR opened: #3081 — DirectStorage: gate BC7 rotation by mode

Tested head: 197d9872eb27da31ba7ede7185131624170d2696. The focused regression, full workspace suite, Python tests, release builds, and paired 60-second NVIDIA retail smokes passed.

AI use: OpenAI Codex with GPT-6.2 Astra identified the upstream divergence, ported the mode gate and regression/provenance, ran the local validation, and drafted this claim under my supervision.

<!-- greyfinch-sync:ivall/xcl:comment:7229927991 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7229927991). Originally posted by [mokkamokacaffe](https://github.com/mokkamokacaffe) on 2026-11-27T23:10:16Z. --- claim: BC7 channel rotation only in modes 4 and 5 **Upstream** - [ScarlettPort #108](https://github.com/ZigZagBoi1/ScarlettPort/pull/108), `engine/crates/scarlett-formats/src/bcpack.rs`, GPL-3.0-or-later. - ScarlettPort credits fxceless/victory-fork commit `06702fe`, via VIscosity commit `b8e7001d`. **XCL files** - `crates/xcl/src/hle/bcpack/victory.rs` - `THIRD_PARTY.md` BC7 control bits 3–4 encode channel rotation only in modes **4 and 5. XCL previously read them as rotation for every mode, which could swap alpha with a colour channel when those bits had another meaning.** Draft PR opened: [#3081 — DirectStorage: gate BC7 rotation by mode](https://github.com/xcl-dev/xcl/pull/3081) Tested head: `197d9872eb27da31ba7ede7185131624170d2696`. The focused regression, full workspace suite, Python tests, release builds, and paired 60-second NVIDIA retail smokes passed. AI use: OpenAI Codex with GPT-6.2 Astra identified the upstream divergence, ported the mode gate and regression/provenance, ran the local validation, and drafted this claim under my supervision.
throny commented 2026-11-27 23:39:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T23:39:13Z.


One new candidate from the watch, and it is a large one (words only, read from the public GPL-3.0 repository by its commit message and file list; the diff was not read because of its size):

  • C22 another project 1fa0ed1: a console wave of 64 lanes run in one host wave of 32, two console lanes per host lane (their switch is another project). About 1,150 changed lines. For XCL this is the wave64-on-32-lane problem on NVIDIA and Intel, where we split a wave into two halves and pay for the exchanges between them. Too big for one port: it would need a plan and a split first (the pairing of lanes, then the instructions that read across lanes, then turning it on per program).
  • Not candidates: the three commits after it only select programs by their hash; the rest of the 18 new commits are documentation and a lighting stand-in.

As before: comment with the number before you start, and a port needs the provenance note and a THIRD_PARTY.md entry.

AI use: Claude Code; the commit list was read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7230305338 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7230305338). Originally posted by [throny](https://github.com/throny) on 2026-11-27T23:39:13Z. --- One new candidate from the watch, and it is a large one (words only, read from the public GPL-3.0 repository by its commit message and file list; the diff was not read because of its size): - **C22** another project `1fa0ed1`: a console wave of 64 lanes run in **one** host wave of 32, two console lanes per host lane (their switch is `another project`). About 1,150 changed lines. For XCL this is the wave64-on-32-lane problem on NVIDIA and Intel, where we split a wave into two halves and pay for the exchanges between them. Too big for one port: it would need a plan and a split first (the pairing of lanes, then the instructions that read across lanes, then turning it on per program). - Not candidates: the three commits after it only select programs by their hash; the rest of the 18 new commits are documentation and a lighting stand-in. As before: comment with the number before you start, and a port needs the provenance note and a `THIRD_PARTY.md` entry. AI use: Claude Code; the commit list was read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
KOLESNiii commented 2026-11-28 00:11:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T00:11:51Z.


@UncommonDLL results from the RTX 2070 SUPER, in your template. 7 qualifying pairs out of 8 programs. In every qualifying pair, the cached-blob call and the named library load took the same time to within 1 ms (both 12–16 ms).

Machine / OS build / GPU / LUID / DXGI driver / NVIDIA driver / heap profile: AMD Ryzen 5 3600XT 6-Core Processor, Windows 11 10.0.26300.9974 / NVIDIA GeForce RTX 2070 SUPER / 00000000:0000d1cf / 32.0.16.2140 / 621.40 / NVAPI DRS 0x001ABC0F = 2048 MB in a profile of its own holding only c1compare.exe. Read back as "shader heap 2048 MB" before the first seed and after the last reader; removed afterwards and read back as the driver default (512 MB).
Checkout / binary hash / source package record IDs / translation settings: 4c609991 clean (identityUnchanged true in every receipt); c1compare.exe (your compare.exe, renamed for the profile) SHA-256 cb2c427a05f95d5ff66440539addd8fe9b882d32e17719dd3c7914b3a63657d2; exporter xcl.exe SHA-256 b18077dfbf24b688df36aecf2df83d64a00a5b9dc5cc4582b249f094885ec4a4; records below; --export-pso, --windows 4, --split 1, AllowStaticSamplers (5–8 static samplers each), flags 0, node 0.
Source DXIL cache / driver-managed cache state / reader order: cold (empty) / not cleared, same boot, nothing else on the GPU (exclusive queue) / library first on odd rows, cached first on even rows.

Record DXIL bytes and SHA-256 Root SHA-256 / flags / node Key Library outcome / ns / receipt Cached outcome / ns / receipt Paired cached minus library ns
73fb752d7f62c3a5 2,078,856 / f14349a5eb12... 72dbaebe6502... / 0 / 0 41027ce78e5d... named_disk_load_ok / 16,178,600 / 73fb752d7f62c3a5-library-01.json cached_blob_accepted_first_call / 16,375,400 / 73fb752d7f62c3a5-cached-01.json +196,800
84eee477d68b6fdf 2,040,412 / 2e5f608971f7... 6f840260db99... / 0 / 0 68a712313a96... named_disk_load_ok / 15,592,700 / 84eee477d68b6fdf-library-01.json cached_blob_unverified / 16,004,200 / 84eee477d68b6fdf-cached-01.json excluded
faf61d752137844a 1,797,996 / 647bb694b6ae... 0beb2aba4e86... / 0 / 0 594f36112246... named_disk_load_ok / 15,129,900 / faf61d752137844a-library-01.json cached_blob_accepted_first_call / 14,368,400 / faf61d752137844a-cached-01.json -761,500
b8004a436fac775d 1,741,444 / ebef0c152c64... 3ebb69a9b936... / 0 / 0 b8bf134327d2... named_disk_load_ok / 13,773,000 / b8004a436fac775d-library-01.json cached_blob_accepted_first_call / 13,787,600 / b8004a436fac775d-cached-01.json +14,600
4d6641bffff793fa 1,782,748 / cc13e2077190... 22093982535f... / 0 / 0 3d4e4ef44070... named_disk_load_ok / 13,754,100 / 4d6641bffff793fa-library-01.json cached_blob_accepted_first_call / 14,429,000 / 4d6641bffff793fa-cached-01.json +674,900
05b5ccf14d48cbca 1,689,020 / 4153a8301615... 0beb2aba4e86... / 0 / 0 07b71b559784... named_disk_load_ok / 13,460,900 / 05b5ccf14d48cbca-library-01.json cached_blob_accepted_first_call / 13,540,100 / 05b5ccf14d48cbca-cached-01.json +79,200
6835bca610de8d0b 1,648,108 / 1194459b9f49... 0beb2aba4e86... / 0 / 0 128ee5e08a14... named_disk_load_ok / 14,462,300 / 6835bca610de8d0b-library-01.json cached_blob_accepted_first_call / 13,515,200 / 6835bca610de8d0b-cached-01.json -947,100
9377c66349bb9a5d 1,472,972 / e9cf184e69d6... 0beb2aba4e86... / 0 / 0 e669c22071e0... named_disk_load_ok / 11,890,200 / 9377c66349bb9a5d-library-01.json cached_blob_accepted_first_call / 11,989,700 / 9377c66349bb9a5d-cached-01.json +99,500

Counts: qualified pairs 7; disk misses 0; named/open rejections 0; cached rejected 0; cached unverified 1 (84eee477…: the first call succeeded, returned_blob_byte_match=0, exit 5; excluded); in-process hits 0; application fallbacks 0; other exclusions 0.

Paired difference (cached minus library) over the 7 pairs: median +0.08 ms, range −0.95 to +0.67 ms; 5 positive, 2 negative. Both arms scale with program size in the same way, from 11.9 ms at 1.47 MB of DXIL to 16.2–16.4 ms at 2.08 MB. n = 1 pair per program, so a difference under ~1 ms is within the spread here.

Not timed, only for context: each seed process (the one cache-less creation plus serialisation) ran 2–17 minutes of wall time (receipt start and end times), against 12–16 ms for either read. That includes everything the seed does, not just the create call, and is not one of your timers.

Full SHA-256 values, descriptors and keys are in the receipts. I can send them if you want them. Driver blobs and DXIL stay on this machine.

AI use: Claude Code (Claude Opus 5.5) ran the job through our exclusive queue and wrote this at the account owner's request; the numbers come from the receipts of that run.

<!-- greyfinch-sync:ivall/xcl:comment:7230723528 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7230723528). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T00:11:51Z. --- @UncommonDLL results from the RTX 2070 SUPER, in your template. **7 qualifying pairs out of 8 programs. In every qualifying pair, the cached-blob call and the named library load took the same time to within 1 ms (both 12–16 ms).** Machine / OS build / GPU / LUID / DXGI driver / NVIDIA driver / heap profile: AMD Ryzen 5 3600XT 6-Core Processor, Windows 11 10.0.26300.9974 / NVIDIA GeForce RTX 2070 SUPER / `00000000:0000d1cf` / 32.0.16.2140 / 621.40 / NVAPI DRS `0x001ABC0F` = 2048 MB in a profile of its own holding only `c1compare.exe`. Read back as "shader heap 2048 MB" before the first seed and after the last reader; removed afterwards and read back as the driver default (512 MB). Checkout / binary hash / source package record IDs / translation settings: `4c609991` clean (`identityUnchanged` true in every receipt); `c1compare.exe` (your `compare.exe`, renamed for the profile) SHA-256 `cb2c427a05f95d5ff66440539addd8fe9b882d32e17719dd3c7914b3a63657d2`; exporter `xcl.exe` SHA-256 `b18077dfbf24b688df36aecf2df83d64a00a5b9dc5cc4582b249f094885ec4a4`; records below; `--export-pso`, `--windows 4`, `--split 1`, `AllowStaticSamplers` (5–8 static samplers each), flags 0, node 0. Source DXIL cache / driver-managed cache state / reader order: cold (empty) / not cleared, same boot, nothing else on the GPU (exclusive queue) / library first on odd rows, cached first on even rows. | Record | DXIL bytes and SHA-256 | Root SHA-256 / flags / node | Key | Library outcome / ns / receipt | Cached outcome / ns / receipt | Paired cached minus library ns | | --- | --- | --- | --- | --- | --- | --- | | `73fb752d7f62c3a5` | 2,078,856 / `f14349a5eb12...` | `72dbaebe6502...` / 0 / 0 | `41027ce78e5d...` | named_disk_load_ok / 16,178,600 / `73fb752d7f62c3a5-library-01.json` | cached_blob_accepted_first_call / 16,375,400 / `73fb752d7f62c3a5-cached-01.json` | +196,800 | | `84eee477d68b6fdf` | 2,040,412 / `2e5f608971f7...` | `6f840260db99...` / 0 / 0 | `68a712313a96...` | named_disk_load_ok / 15,592,700 / `84eee477d68b6fdf-library-01.json` | cached_blob_unverified / 16,004,200 / `84eee477d68b6fdf-cached-01.json` | excluded | | `faf61d752137844a` | 1,797,996 / `647bb694b6ae...` | `0beb2aba4e86...` / 0 / 0 | `594f36112246...` | named_disk_load_ok / 15,129,900 / `faf61d752137844a-library-01.json` | cached_blob_accepted_first_call / 14,368,400 / `faf61d752137844a-cached-01.json` | -761,500 | | `b8004a436fac775d` | 1,741,444 / `ebef0c152c64...` | `3ebb69a9b936...` / 0 / 0 | `b8bf134327d2...` | named_disk_load_ok / 13,773,000 / `b8004a436fac775d-library-01.json` | cached_blob_accepted_first_call / 13,787,600 / `b8004a436fac775d-cached-01.json` | +14,600 | | `4d6641bffff793fa` | 1,782,748 / `cc13e2077190...` | `22093982535f...` / 0 / 0 | `3d4e4ef44070...` | named_disk_load_ok / 13,754,100 / `4d6641bffff793fa-library-01.json` | cached_blob_accepted_first_call / 14,429,000 / `4d6641bffff793fa-cached-01.json` | +674,900 | | `05b5ccf14d48cbca` | 1,689,020 / `4153a8301615...` | `0beb2aba4e86...` / 0 / 0 | `07b71b559784...` | named_disk_load_ok / 13,460,900 / `05b5ccf14d48cbca-library-01.json` | cached_blob_accepted_first_call / 13,540,100 / `05b5ccf14d48cbca-cached-01.json` | +79,200 | | `6835bca610de8d0b` | 1,648,108 / `1194459b9f49...` | `0beb2aba4e86...` / 0 / 0 | `128ee5e08a14...` | named_disk_load_ok / 14,462,300 / `6835bca610de8d0b-library-01.json` | cached_blob_accepted_first_call / 13,515,200 / `6835bca610de8d0b-cached-01.json` | -947,100 | | `9377c66349bb9a5d` | 1,472,972 / `e9cf184e69d6...` | `0beb2aba4e86...` / 0 / 0 | `e669c22071e0...` | named_disk_load_ok / 11,890,200 / `9377c66349bb9a5d-library-01.json` | cached_blob_accepted_first_call / 11,989,700 / `9377c66349bb9a5d-cached-01.json` | +99,500 | Counts: qualified pairs 7; disk misses 0; named/open rejections 0; cached rejected 0; cached unverified 1 (`84eee477…`: the first call succeeded, `returned_blob_byte_match=0`, exit 5; excluded); in-process hits 0; application fallbacks 0; other exclusions 0. Paired difference (cached minus library) over the 7 pairs: median +0.08 ms, range −0.95 to +0.67 ms; 5 positive, 2 negative. Both arms scale with program size in the same way, from 11.9 ms at 1.47 MB of DXIL to 16.2–16.4 ms at 2.08 MB. n = 1 pair per program, so a difference under ~1 ms is within the spread here. Not timed, only for context: each seed process (the one cache-less creation plus serialisation) ran 2–17 minutes of wall time (receipt start and end times), against 12–16 ms for either read. That includes everything the seed does, not just the create call, and is not one of your timers. Full SHA-256 values, descriptors and keys are in the receipts. I can send them if you want them. Driver blobs and DXIL stay on this machine. AI use: Claude Code (Claude Opus 5.5) ran the job through our exclusive queue and wrote this at the account owner's request; the numbers come from the receipts of that run.
throny commented 2026-11-28 05:39:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T05:39:03Z.


One new candidate from the watch, and one idea that is not a port candidate (words only, read from the public GPL-3.0 repository; nothing built or run):

  • C23 another project 9e90746: static samplers get one kept order in the driver's table, recorded in a file beside the pipeline library, so the driver's disk cache answers at later starts instead of recompiling. Its message states: 406 compute pipelines over one second in a start before, 211 in the start that compiled them in the kept order, 0 of 1,314 in the next. About 380 changed lines, most of it one new file. For XCL: the slow compute pipeline builds that repeat at every start on NVIDIA even with a driver cache; worth checking first whether our static sampler order can differ between runs (the commit ba44b52c now on main, "key compute driver blobs by static samplers", is related).
  • Not a candidate as it stands: another project de57b01 (the card's ray-tracing hardware proposes candidates for the title's own ray walkers, which still decide the hits). About 10,500 lines in 25 files, and its own README says the first session's frame rate was not a gain because objects were missing from the scene. Interesting as a direction for the ray-traced lighting cost, not as a port.

As before: comment with the number before you start, and a port needs the provenance note and a THIRD_PARTY.md entry.

AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7234800079 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7234800079). Originally posted by [throny](https://github.com/throny) on 2026-11-28T05:39:03Z. --- One new candidate from the watch, and one idea that is not a port candidate (words only, read from the public GPL-3.0 repository; nothing built or run): - **C23** another project `9e90746`: static samplers get one kept order in the driver's table, recorded in a file beside the pipeline library, so the driver's disk cache answers at later starts instead of recompiling. Its message states: 406 compute pipelines over one second in a start before, 211 in the start that compiled them in the kept order, 0 of 1,314 in the next. About 380 changed lines, most of it one new file. For XCL: the slow compute pipeline builds that repeat at every start on NVIDIA even with a driver cache; worth checking first whether our static sampler order can differ between runs (the commit `ba44b52c` now on `main`, "key compute driver blobs by static samplers", is related). - Not a candidate as it stands: another project `de57b01` (the card's ray-tracing hardware proposes candidates for the title's own ray walkers, which still decide the hits). About 10,500 lines in 25 files, and its own README says the first session's frame rate was not a gain because objects were missing from the scene. Interesting as a direction for the ray-traced lighting cost, not as a port. As before: comment with the number before you start, and a port needs the provenance note and a `THIRD_PARTY.md` entry. AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
throny commented 2026-11-28 07:46:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T07:46:56Z.


A new source for the watch: another project (another project, GPL-3.0, its own repository, tuned for RTX cards). First pass over its last 150 commits; words only, read from the public repository, nothing built or run. All are under 400 changed lines.

  • C24 854f57f (with its test 2dc3df1): in the two-halves form of a 64-lane group, console threads are taken from an LDS counter instead of rounding the flat thread id. The test's message says the old rounding writes 32 of 64 words on an RTX 5070 Ti. About 57 + 77 lines. For XCL: our split wave64 groups on 32-lane GPUs (NVIDIA, Intel); worth checking whether our thread-id mapping has the same rounding.
  • C25 c1d8179: in halves mode a 64-bit mask read as a number uses the console lane (lanes 32–63 read the wrong word before). About 53 lines. A correctness fix for the upper half.
  • C26 5732b3d: the shader precompile skips texture, media and metadata packs by extension. About 28 lines. For XCL: slow starts, if our preparation walks non-shader files (to check first).
  • C27 761de52: a job limit for the preload (translation and pipeline building leave cores free). About 20 lines.
  • C28 8c1fa5d: wake only as many worker threads as there are jobs; its message cites the wake call at 2.4 % of the submitting thread's samples. About 12 lines. For XCL: the pipeline worker pool (23 workers here).
  • C29 185bc4c: pooled textures at 64 KiB multiples behind a switch, with diagnostics for reads past a piece; its message ties two device losses to this. About 112 lines. Related to the small-placement work in #3008 and to the texture page fault in #2572.
  • Already covered: 4f5ae57 (a panicking pipeline build is caught) is the same change as #3028.

Several of these cite other forks as their own source, so a port needs the provenance of the original too. As before: comment with the number before you start, plus the note in the file and a THIRD_PARTY.md entry.

AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7236158614 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7236158614). Originally posted by [throny](https://github.com/throny) on 2026-11-28T07:46:56Z. --- A new source for the watch: **another project** (another project, GPL-3.0, its own repository, tuned for RTX cards). First pass over its last 150 commits; words only, read from the public repository, nothing built or run. All are under 400 changed lines. - **C24** `854f57f` (with its test `2dc3df1`): in the two-halves form of a 64-lane group, console threads are taken from an LDS counter instead of rounding the flat thread id. The test's message says the old rounding writes 32 of 64 words on an RTX 5070 Ti. About 57 + 77 lines. For XCL: our split wave64 groups on 32-lane GPUs (NVIDIA, Intel); worth checking whether our thread-id mapping has the same rounding. - **C25** `c1d8179`: in halves mode a 64-bit mask read as a number uses the console lane (lanes 32–63 read the wrong word before). About 53 lines. A correctness fix for the upper half. - **C26** `5732b3d`: the shader precompile skips texture, media and metadata packs by extension. About 28 lines. For XCL: slow starts, if our preparation walks non-shader files (to check first). - **C27** `761de52`: a job limit for the preload (translation and pipeline building leave cores free). About 20 lines. - **C28** `8c1fa5d`: wake only as many worker threads as there are jobs; its message cites the wake call at 2.4 % of the submitting thread's samples. About 12 lines. For XCL: the pipeline worker pool (23 workers here). - **C29** `185bc4c`: pooled textures at 64 KiB multiples behind a switch, with diagnostics for reads past a piece; its message ties two device losses to this. About 112 lines. Related to the small-placement work in #3008 and to the texture page fault in #2572. - Already covered: `4f5ae57` (a panicking pipeline build is caught) is the same change as #3028. Several of these cite other forks as their own source, so a port needs the provenance of the original too. As before: comment with the number before you start, plus the note in the file and a `THIRD_PARTY.md` entry. AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
afpruivo commented 2026-11-28 08:13:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-28T08:13:51Z.


Update to my GPU time map above (7229023662): the 25 ms skinning program was the dispatch-chain form, and #2794 has already fixed it on nvidia-dev. On today's nvidia-dev it takes 0.11 ms a frame, and the world frame is about 145 ms instead of 167 ms. So the top of that map is out of date; the new top is below.

Setup: RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, release. Tree nvidia-dev 54225f58 + #609 + #2551 (+ a local change that lists every program in the table). Same env and inputs as before: XCL_DIRECT_DXIL=1 XCL_UMA_DRIVER=mixed:1536:1792 XCL_TEXTURE_LEVEL_PAGES=1, XCL_PRESS_HOLD=3.5, A every 4 s, XCL_GPU_TIMES=16,420, compute pipelines precompiled with --used-only. One run per arm, 700 s each, no crash or device removal.

avg frame (wall) #1 before (5a29b696095f77ac, bvh_skinning)
yesterday, nvidia-dev d1be8103 + #3003-#3006 167.1 ms 25.0 ms/frame, longest call 19.5 ms
today, 54225f58, chains allowed 144.7 ms 0.11 ms/frame, longest call 0.055 ms
today, 54225f58, XCL_DIRECT_SPLIT_INSTRUCTIONS=100000000 (no chains) 147.8 ms longest call 0.051 ms
  • Yesterday's log shows 339 programs split into 4,088 pieces and about 2.5 M chained dispatches. Today's control issues none. #1's whole form was never prepared before #2794, so it ran as a chain.
  • Turning the chains off on today's tree changes nothing measurable (147.8 against 144.7 ms; single frames range 138-162 ms). With #2794 there is nothing left to gain there in play once the whole forms are prepared.
  • Correction: yesterday I also sent the top 12 programs through HLSL (frame 167 -> 142 ms) and doubted the numbers because the calls looked empty. They weren't empty. Those programs ran whole there too, and the whole direct-DXIL form is just as fast. Output equality of chained against whole forms is still not checked byte for byte (that needs a capture).

New top on 54225f58 (ms per frame, 16 frames):

  1. b78fa10b425b8e54 compute, wave64 split in halves: 8.4 ms (one 160x90 dispatch a frame)
  2. 95bc3980ec624295 compute, ExecuteIndirect: 8.0 ms
  3. 2504944a10775aeb compute, ExecuteIndirect: 7.2 ms
  4. 703d7769736cebff mesh two-pass, no PS: 5.0 ms (277 calls)
  5. 4b799df70d125a0a mesh two-pass, no PS: 4.3 ms (360 calls)

#1 is a wave64 program run as two 32-lane halves on this card, the cost C22 (paired lanes in one 32-lane wave) is about. I have not looked into it yet.

Not tested: other GPUs; output equality chained against whole; whether the player had control (the picture is black on this tree without #2229).

AI use: Claude Code (Claude Opus 5.5) ran the builds and runs, read the logs and wrote this comment; I checked the numbers against the logs.

<!-- greyfinch-sync:ivall/xcl:comment:7236448330 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7236448330). Originally posted by [afpruivo](https://github.com/afpruivo) on 2026-11-28T08:13:51Z. --- **Update to my GPU time map above (7229023662): the 25 ms skinning program was the dispatch-chain form, and #2794 has already fixed it on `nvidia-dev`. On today's `nvidia-dev` it takes 0.11 ms a frame, and the world frame is about 145 ms instead of 167 ms.** So the top of that map is out of date; the new top is below. **Setup:** RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, release. Tree `nvidia-dev` `54225f58` + #609 + #2551 (+ a local change that lists every program in the table). Same env and inputs as before: `XCL_DIRECT_DXIL=1 XCL_UMA_DRIVER=mixed:1536:1792 XCL_TEXTURE_LEVEL_PAGES=1`, `XCL_PRESS_HOLD=3.5`, A every 4 s, `XCL_GPU_TIMES=16,420`, compute pipelines precompiled with `--used-only`. One run per arm, 700 s each, no crash or device removal. | | avg frame (wall) | #1 before (`5a29b696095f77ac`, bvh_skinning) | |---|---|---| | yesterday, `nvidia-dev` `d1be8103` + #3003-#3006 | 167.1 ms | 25.0 ms/frame, longest call 19.5 ms | | today, `54225f58`, chains allowed | 144.7 ms | 0.11 ms/frame, longest call 0.055 ms | | today, `54225f58`, `XCL_DIRECT_SPLIT_INSTRUCTIONS=100000000` (no chains) | 147.8 ms | longest call 0.051 ms | - Yesterday's log shows 339 programs split into 4,088 pieces and about 2.5 M chained dispatches. Today's control issues none. #1's whole form was never prepared before #2794, so it ran as a chain. - Turning the chains off on today's tree changes nothing measurable (147.8 against 144.7 ms; single frames range 138-162 ms). With #2794 there is nothing left to gain there in play once the whole forms are prepared. - Correction: yesterday I also sent the top 12 programs through HLSL (frame 167 -> 142 ms) and doubted the numbers because the calls looked empty. They weren't empty. Those programs ran whole there too, and the whole direct-DXIL form is just as fast. Output equality of chained against whole forms is still not checked byte for byte (that needs a capture). **New top on `54225f58`** (ms per frame, 16 frames): 1. `b78fa10b425b8e54` compute, wave64 split in halves: 8.4 ms (one 160x90 dispatch a frame) 2. `95bc3980ec624295` compute, ExecuteIndirect: 8.0 ms 3. `2504944a10775aeb` compute, ExecuteIndirect: 7.2 ms 4. `703d7769736cebff` mesh two-pass, no PS: 5.0 ms (277 calls) 5. `4b799df70d125a0a` mesh two-pass, no PS: 4.3 ms (360 calls) #1 is a wave64 program run as two 32-lane halves on this card, the cost C22 (paired lanes in one 32-lane wave) is about. I have not looked into it yet. **Not tested:** other GPUs; output equality chained against whole; whether the player had control (the picture is black on this tree without #2229). AI use: Claude Code (Claude Opus 5.5) ran the builds and runs, read the logs and wrote this comment; I checked the numbers against the logs.
throny commented 2026-11-28 14:39:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T14:39:17Z.


New port candidates from the watch (another project, commits of today; words only, read from the public GPL-3.0 repository, nothing built or run). All are under 400 changed lines.

  • C30 another project b5d12f2 together with 34cedda: pixel programs that the console depth-tests before they run declare early depth. Its message gives the symptom it fixes (a glass pre-pass writing its depth over what is behind it). About 150 + 190 lines. Important: 34cedda makes it opt-in per program, because with early depth on for all such programs their opening came out with wrong colours and darker scenes; a port should take the gated form, not the first commit alone. For XCL: I found no early-depth handling of that console control bit in our crates (a grep, not a study), so this is worth a look for overdraw cost and for wrong depth.
  • C31 another project 54d8316: physical page numbers that were freed are given out again before the counter passes the title's 21 bits (about 124 GiB of allocations in a long session, then aliasing). About 75 lines. Provenance note: its message says it is itself a port from another fork whose repository GitHub has since removed, so check the origin before porting.
  • C32 another project c1e6b07: a fixed 128-entry table in the shader un-spill step panics on scalar codes beyond the physical registers; with a regression test. About 18 lines. For XCL: check first whether our recompiler has a table of that kind at all (I found no symbol of that name).
  • C33 another project 7e71fd0: the descriptor table for placed views grows without bound; its message reports 34.9 million entries and 16.7 GB after 70 minutes of play. About 100 lines. For XCL: long-session memory growth, if our view bookkeeping keeps entries for views at new addresses.
  • Not candidates: 99e9ec9 and the five commits stacked on it (texture handling for one bake pass, over 400 lines together), the replay-tool fixes, and the documentation and script commits.

As before: comment with the number before you start, and a port needs the provenance note in the file and a THIRD_PARTY.md entry.

AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7240830757 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7240830757). Originally posted by [throny](https://github.com/throny) on 2026-11-28T14:39:17Z. --- New port candidates from the watch (another project, commits of today; words only, read from the public GPL-3.0 repository, nothing built or run). All are under 400 changed lines. - **C30** another project `b5d12f2` together with `34cedda`: pixel programs that the console depth-tests before they run declare early depth. Its message gives the symptom it fixes (a glass pre-pass writing its depth over what is behind it). About 150 + 190 lines. Important: `34cedda` makes it opt-in per program, because with early depth on for all such programs their opening came out with wrong colours and darker scenes; a port should take the gated form, not the first commit alone. For XCL: I found no early-depth handling of that console control bit in our crates (a grep, not a study), so this is worth a look for overdraw cost and for wrong depth. - **C31** another project `54d8316`: physical page numbers that were freed are given out again before the counter passes the title's 21 bits (about 124 GiB of allocations in a long session, then aliasing). About 75 lines. Provenance note: its message says it is itself a port from another fork whose repository GitHub has since removed, so check the origin before porting. - **C32** another project `c1e6b07`: a fixed 128-entry table in the shader un-spill step panics on scalar codes beyond the physical registers; with a regression test. About 18 lines. For XCL: check first whether our recompiler has a table of that kind at all (I found no symbol of that name). - **C33** another project `7e71fd0`: the descriptor table for placed views grows without bound; its message reports 34.9 million entries and 16.7 GB after 70 minutes of play. About 100 lines. For XCL: long-session memory growth, if our view bookkeeping keeps entries for views at new addresses. - Not candidates: `99e9ec9` and the five commits stacked on it (texture handling for one bake pass, over 400 lines together), the replay-tool fixes, and the documentation and script commits. As before: comment with the number before you start, and a port needs the provenance note in the file and a `THIRD_PARTY.md` entry. AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
throny commented 2026-11-28 20:39:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T20:39:20Z.


New port candidates from the watch (another project, 189 commits since this morning, most of them merges and test upkeep; and another project). Words only, read from the public GPL-3.0 repositories, nothing built or run. All are under 400 changed lines. The list file showed the subjects of only about 28 of the 189 commits, so this is not a complete reading.

  • C34 another project c9c5354: green or black textures on 8 GB cards. A lower reserve for targets, the eviction of texture slots limited by the room there is, and a neutral stand-in view instead of a null one for an evicted slot. Its message states target footprints of 1185–1450 MB that settle, where they held 1.6–1.9 GB. About 50 lines. For XCL: the black textures on cards with little video memory, and what a shader reads from a slot we gave up.
  • C35 another project 906f656: a root view the title gives without a length gets its window plus 2 MiB of reach; its message names missing panels and decals as the symptom. About 110 lines. For XCL: wrong or missing geometry where a view's length is unknown.
  • C36 another project cfa18bf: small textures written through unordered access get their host copy together with their views; its message says a small page-table texture waited a whole run and every lookup gave page 0. It states counts on an RTX 5080 (32–34 such textures, 1.9 MiB, against 41–43 and 112 MiB without the size limit). About 100 lines. For XCL: possibly related to the textures read as zeros that #505 is measuring.
  • C37 another project 71add4c: small textures placed back to back no longer make one another stale (far buildings were black). About 66 lines. For XCL: black surfaces from aliasing between neighbouring small textures.
  • C38 another project 1f6fa78: a loop-invariant pass no longer hoists a volatile load out of a loop. 3 lines. For XCL: check whether our direct-DXIL optimiser has the same case.
  • C39 another project 7fc379a: shader programs whose first-lane reads diverge are retried with both halves of a console wave kept in one host wave; its message states 209 → 206 failing of 25,779 cached shaders. About 50 lines. For XCL: wave64 on 32-lane GPUs.
  • Not candidates for now: three frame-time commits (225cba4, 2396eda, 041d0ee) whose messages state no measurement.

None of the six messages says the commit is itself ported from elsewhere. As before: comment with the number before you start, and a port needs the provenance note in the file and a THIRD_PARTY.md entry.

AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7245443811 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7245443811). Originally posted by [throny](https://github.com/throny) on 2026-11-28T20:39:20Z. --- New port candidates from the watch (another project, 189 commits since this morning, most of them merges and test upkeep; and another project). Words only, read from the public GPL-3.0 repositories, nothing built or run. All are under 400 changed lines. The list file showed the subjects of only about 28 of the 189 commits, so this is not a complete reading. - **C34** another project `c9c5354`: green or black textures on 8 GB cards. A lower reserve for targets, the eviction of texture slots limited by the room there is, and a neutral stand-in view instead of a null one for an evicted slot. Its message states target footprints of 1185–1450 MB that settle, where they held 1.6–1.9 GB. About 50 lines. For XCL: the black textures on cards with little video memory, and what a shader reads from a slot we gave up. - **C35** another project `906f656`: a root view the title gives without a length gets its window plus 2 MiB of reach; its message names missing panels and decals as the symptom. About 110 lines. For XCL: wrong or missing geometry where a view's length is unknown. - **C36** another project `cfa18bf`: small textures written through unordered access get their host copy together with their views; its message says a small page-table texture waited a whole run and every lookup gave page 0. It states counts on an RTX 5080 (32–34 such textures, 1.9 MiB, against 41–43 and 112 MiB without the size limit). About 100 lines. For XCL: possibly related to the textures read as zeros that #505 is measuring. - **C37** another project `71add4c`: small textures placed back to back no longer make one another stale (far buildings were black). About 66 lines. For XCL: black surfaces from aliasing between neighbouring small textures. - **C38** another project `1f6fa78`: a loop-invariant pass no longer hoists a volatile load out of a loop. 3 lines. For XCL: check whether our direct-DXIL optimiser has the same case. - **C39** another project `7fc379a`: shader programs whose first-lane reads diverge are retried with both halves of a console wave kept in one host wave; its message states 209 → 206 failing of 25,779 cached shaders. About 50 lines. For XCL: wave64 on 32-lane GPUs. - Not candidates for now: three frame-time commits (`225cba4`, `2396eda`, `041d0ee`) whose messages state no measurement. None of the six messages says the commit is itself ported from elsewhere. As before: comment with the number before you start, and a port needs the provenance note in the file and a `THIRD_PARTY.md` entry. AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
KDenKC commented 2026-11-28 22:20:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-28T22:20:11Z.


claim: C4 (one-pass native mesh shaders), as a re-implementation in XCL's translator, not a port of upstream code.

  • Scope of the first draft: behind XCL_NATIVE_MESH=1, off by default. Console mesh programs that pass an eligibility check (outputs within D3D12's 32 KiB mesh limit, an MS/PS pair the driver accepts at pipeline creation) draw as one native mesh pipeline with one DispatchMesh; everything else keeps today's two-pass path, logged once per program. For ExecuteIndirect, the title's count buffer is passed through.
  • XCL files we expect to touch: gpu/dxil/kernel.rs (mesh translation), hle/d3d12x/bind.rs (dispatch_mesh), hle/d3d12x/real.rs (mesh pipeline creation), plus a GPU test that draws a small eligible program native and two-pass and compares pixels.
  • Why us: RTX 5090 numbers (on #1833): two-pass draws take 64-66 ms of a 135-187 ms GPU frame, and 44-50 % of their indirect commands are empty. A test-only fixture with the needed command signatures already passes on an RTX 5090 and 3090.
  • C2 (#3040/#3042): we'll build against main without it and say in the PR what changes if it lands first.
  • Draft PR: within 48 hours, or we release the claim here.

AI use: an agent swarm: Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon.

<!-- greyfinch-sync:ivall/xcl:comment:7246663711 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7246663711). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-28T22:20:11Z. --- claim: C4 (one-pass native mesh shaders), as a re-implementation in XCL's translator, not a port of upstream code. - **Scope of the first draft:** behind `XCL_NATIVE_MESH=1`, off by default. Console mesh programs that pass an eligibility check (outputs within D3D12's 32 KiB mesh limit, an MS/PS pair the driver accepts at pipeline creation) draw as one native mesh pipeline with one `DispatchMesh`; everything else keeps today's two-pass path, logged once per program. For `ExecuteIndirect`, the title's count buffer is passed through. - **XCL files we expect to touch:** `gpu/dxil/kernel.rs` (mesh translation), `hle/d3d12x/bind.rs` (`dispatch_mesh`), `hle/d3d12x/real.rs` (mesh pipeline creation), plus a GPU test that draws a small eligible program native and two-pass and compares pixels. - **Why us:** RTX 5090 numbers (on #1833): two-pass draws take 64-66 ms of a 135-187 ms GPU frame, and 44-50 % of their indirect commands are empty. A test-only fixture with the needed command signatures already passes on an RTX 5090 and 3090. - **C2 (#3040/#3042):** we'll build against `main` without it and say in the PR what changes if it lands first. - **Draft PR:** within 48 hours, or we release the claim here. AI use: an agent swarm: Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon.
throny commented 2026-11-28 23:39:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T23:39:08Z.


New port candidates from the watch (another project, three shader commits of yesterday evening; the other 83 new commits there are launcher, release and docs work). Words only, read from the public GPL-3.0 repository, nothing built or run. They continue C39 (7fc379a) and belong together:

  • C40 another project 79af541: lane-mask exchanges that diverge are retried with both halves of a console wave kept in one host wave on a 32-lane host. About 107 lines, with tests. For XCL: wave64 on 32-lane GPUs (NVIDIA, Intel).
  • C41 another project 9055f68: scalar and/or/xor masks that are read as data keep the bits of lanes outside the branch. About 75 lines with a regression test; its message states 23 wave64 tests passing. For XCL: lane masks used as data in split wave64.
  • C42 another project 43842fa: the heap-slot records carry the title's addresses so that lane reads can use views chosen at run time. About 187 lines; its message states 205 failing shaders of 25,780 cached, down from 209. For XCL: shader translation of lane reads through descriptor heaps.

None of the three messages says the commit is ported from elsewhere. Their messages name one game shader by hash as the example; the code itself hard-codes none. As before: comment with the number before you start, and a port needs the provenance note in the file and a THIRD_PARTY.md entry.

AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7247573265 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7247573265). Originally posted by [throny](https://github.com/throny) on 2026-11-28T23:39:08Z. --- New port candidates from the watch (another project, three shader commits of yesterday evening; the other 83 new commits there are launcher, release and docs work). Words only, read from the public GPL-3.0 repository, nothing built or run. They continue C39 (`7fc379a`) and belong together: - **C40** another project `79af541`: lane-mask exchanges that diverge are retried with both halves of a console wave kept in one host wave on a 32-lane host. About 107 lines, with tests. For XCL: wave64 on 32-lane GPUs (NVIDIA, Intel). - **C41** another project `9055f68`: scalar and/or/xor masks that are read as data keep the bits of lanes outside the branch. About 75 lines with a regression test; its message states 23 wave64 tests passing. For XCL: lane masks used as data in split wave64. - **C42** another project `43842fa`: the heap-slot records carry the title's addresses so that lane reads can use views chosen at run time. About 187 lines; its message states 205 failing shaders of 25,780 cached, down from 209. For XCL: shader translation of lane reads through descriptor heaps. None of the three messages says the commit is ported from elsewhere. Their messages name one game shader by hash as the example; the code itself hard-codes none. As before: comment with the number before you start, and a port needs the provenance note in the file and a `THIRD_PARTY.md` entry. AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
throny commented 2026-11-29 02:39:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T02:39:16Z.


New port candidates from the watch (another project, 207 commits since last evening, most of them merges, tests and menu work; 14 read). Words only, read from the public GPL-3.0 repository, nothing built or run. All are under 400 changed lines.

  • C43 another project 532127a: the scalar min and max instructions set the condition flag to their comparison, not to "result is zero"; with a test. About 31 lines. Provenance: its message says it follows another project 3c83a339, so note both in a port. For XCL: check what our recompiler sets after these two instructions; a wrong flag flips a select or a branch.
  • C44 another project c4cc545 (first) and 8b71858, 42aa872 (on top of it): pixel-shader quad reads inside divergent control flow are translated instead of refused, and a read takes the lane's own value where the lane it would read is not running. 8b71858 states that 5,587 of 20,110 shaders of a preload on an RTX 5070 were dropped before. About 25 to 35 lines each. Note: 4c16422 in the same area was reverted there (31a46c4); do not take that one. For XCL: draws dropped or wrong where a derivative-like read sits in a branch.
  • C45 another project 9bba2a2: a wave64 program that no other form lowers on a 32-lane host takes the wave-wide form; its message states 77 of 79 such programs recovered and lighting back, at a cost (about 23 against 29 frames/s there). About 79 lines. For XCL: wave64 programs dropped on NVIDIA and Intel.
  • C46 another project 88244e8: a frame waits at most 3 s in all for compute pipelines; its message says a first-run frame took over 30 s and the title's own watchdog ended the game. About 44 lines. For XCL: long stalls on a cold pipeline cache (#2088).
  • C47 another project a38716d: over budget, a first texture upload is admitted only into a free range that exists now; its message states 17,043 MiB in use against a budget of 14,767 MiB. About 75 lines. For XCL: video-memory overrun on cards with less memory than the console.
  • Looked at, not listed: 1794979 (a program's constant table starts after its instructions) cites a third project as its origin, so its provenance needs checking before anyone ports it; 6bb83a7 (lane provenance in whole-wave sections) is 389 lines.

As before: comment with the number before you start, and a port needs the provenance note in the file and a THIRD_PARTY.md entry.

AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7249563111 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7249563111). Originally posted by [throny](https://github.com/throny) on 2026-11-29T02:39:16Z. --- New port candidates from the watch (another project, 207 commits since last evening, most of them merges, tests and menu work; 14 read). Words only, read from the public GPL-3.0 repository, nothing built or run. All are under 400 changed lines. - **C43** another project `532127a`: the scalar min and max instructions set the condition flag to their comparison, not to "result is zero"; with a test. About 31 lines. Provenance: its message says it follows another project `3c83a339`, so note both in a port. For XCL: check what our recompiler sets after these two instructions; a wrong flag flips a select or a branch. - **C44** another project `c4cc545` (first) and `8b71858`, `42aa872` (on top of it): pixel-shader quad reads inside divergent control flow are translated instead of refused, and a read takes the lane's own value where the lane it would read is not running. `8b71858` states that 5,587 of 20,110 shaders of a preload on an RTX 5070 were dropped before. About 25 to 35 lines each. Note: `4c16422` in the same area was reverted there (`31a46c4`); do not take that one. For XCL: draws dropped or wrong where a derivative-like read sits in a branch. - **C45** another project `9bba2a2`: a wave64 program that no other form lowers on a 32-lane host takes the wave-wide form; its message states 77 of 79 such programs recovered and lighting back, at a cost (about 23 against 29 frames/s there). About 79 lines. For XCL: wave64 programs dropped on NVIDIA and Intel. - **C46** another project `88244e8`: a frame waits at most 3 s in all for compute pipelines; its message says a first-run frame took over 30 s and the title's own watchdog ended the game. About 44 lines. For XCL: long stalls on a cold pipeline cache (#2088). - **C47** another project `a38716d`: over budget, a first texture upload is admitted only into a free range that exists now; its message states 17,043 MiB in use against a budget of 14,767 MiB. About 75 lines. For XCL: video-memory overrun on cards with less memory than the console. - Looked at, not listed: `1794979` (a program's constant table starts after its instructions) cites a third project as its origin, so its provenance needs checking before anyone ports it; `6bb83a7` (lane provenance in whole-wave sections) is 389 lines. As before: comment with the number before you start, and a port needs the provenance note in the file and a `THIRD_PARTY.md` entry. AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
throny commented 2026-11-29 05:39:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T05:39:31Z.


New port candidates from the watch (another project, 384 commits since last night; most of them a merge of another project work already listed here, plus launcher and docs work; 8 read). Words only, read from the public GPL-3.0 repository, nothing built or run. All under 400 changed lines. Each of these says in its message that it is itself a port, so a port into XCL should name the original, given below.

  • C48 another project b7deb84 with its cache-key commit 5e02d55: constant initialisations of LDS accumulators are hoisted behind an entry barrier; its message names dark flicker on water as the symptom and states 288 tests passing. About 151 lines. Origin per its message: another project a918163 (GPL-3.0). For XCL: compute programs whose first LDS writes race the readers on a 32-lane host.
  • C49 another project f3b21be: one DXIL interpolation mode per signature row, with a unit test. About 80 lines. Origin per its message: uiliannn/VItoriaBr 5943771 (that repository is GPL-3.0 by its GitHub licence field; it is not in my watch yet). For XCL: DXIL validity of pixel inputs that share a row.
  • C50 another project 116f223: the smaller console profile keeps 1,536 MB for render targets instead of 3,072; its message states targets holding 0.8 to 1.45 GB and 1.6 to 2.2 GB more kept free on a 12 GB card. About 40 lines. Origin per its message: another project (their #1911). For XCL: new textures waiting for room on cards under 16 GB.
  • C51 another project 752663c: writes still in flight are settled before a bake pass reads title memory (colour noise on skin as the symptom). About 17 lines. Origin: another project (their #1912). For XCL: a read of title memory racing our own pending writes.
  • Looked at, not listed: 3efc9d4 (a lighting tweak for one kind of scene, 37 lines, no numbers); 94120c7 (sample-mask handling for masked draws, 441 lines, would need splitting); cfff723 (an off-by-default switch without numbers); and one commit whose code hard-codes a shader's digest and instruction offsets.

As before: comment with the number before you start, and a port needs the provenance note in the file and a THIRD_PARTY.md entry.

AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7251383100 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7251383100). Originally posted by [throny](https://github.com/throny) on 2026-11-29T05:39:31Z. --- New port candidates from the watch (another project, 384 commits since last night; most of them a merge of another project work already listed here, plus launcher and docs work; 8 read). Words only, read from the public GPL-3.0 repository, nothing built or run. All under 400 changed lines. Each of these says in its message that it is itself a port, so a port into XCL should name the original, given below. - **C48** another project `b7deb84` with its cache-key commit `5e02d55`: constant initialisations of LDS accumulators are hoisted behind an entry barrier; its message names dark flicker on water as the symptom and states 288 tests passing. About 151 lines. Origin per its message: another project `a918163` (GPL-3.0). For XCL: compute programs whose first LDS writes race the readers on a 32-lane host. - **C49** another project `f3b21be`: one DXIL interpolation mode per signature row, with a unit test. About 80 lines. Origin per its message: uiliannn/VItoriaBr `5943771` (that repository is GPL-3.0 by its GitHub licence field; it is not in my watch yet). For XCL: DXIL validity of pixel inputs that share a row. - **C50** another project `116f223`: the smaller console profile keeps 1,536 MB for render targets instead of 3,072; its message states targets holding 0.8 to 1.45 GB and 1.6 to 2.2 GB more kept free on a 12 GB card. About 40 lines. Origin per its message: another project (their #1911). For XCL: new textures waiting for room on cards under 16 GB. - **C51** another project `752663c`: writes still in flight are settled before a bake pass reads title memory (colour noise on skin as the symptom). About 17 lines. Origin: another project (their #1912). For XCL: a read of title memory racing our own pending writes. - Looked at, not listed: `3efc9d4` (a lighting tweak for one kind of scene, 37 lines, no numbers); `94120c7` (sample-mask handling for masked draws, 441 lines, would need splitting); `cfff723` (an off-by-default switch without numbers); and one commit whose code hard-codes a shader's digest and instruction offsets. As before: comment with the number before you start, and a port needs the provenance note in the file and a `THIRD_PARTY.md` entry. AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
KDenKC commented 2026-11-29 08:29:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-29T08:29:31Z.


C4: the first slice is up as a draft, #3327 (behind XCL_NATIVE_MESH=1, off by default): eligible console mesh programs draw as one native mesh shader with one DispatchMesh, everything else keeps the two-pass path, and ExecuteIndirect passes the title's count buffer through. On an RTX 3090 its GPU tests draw the same pixels native and two-pass, and an ineligible program falls back. Not yet run in the title; a smoke pair on an RTX 5090 is next, then it leaves draft.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.

<!-- greyfinch-sync:ivall/xcl:comment:7253138365 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7253138365). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-29T08:29:31Z. --- C4: the first slice is up as a draft, #3327 (behind `XCL_NATIVE_MESH=1`, off by default): eligible console mesh programs draw as one native mesh shader with one `DispatchMesh`, everything else keeps the two-pass path, and `ExecuteIndirect` passes the title's count buffer through. On an RTX 3090 its GPU tests draw the same pixels native and two-pass, and an ineligible program falls back. Not yet run in the title; a smoke pair on an RTX 5090 is next, then it leaves draft. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.
throny commented 2026-11-29 08:39:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T08:39:23Z.


New port candidates from the watch (another project, 815 commits since the last look, many of them merges; the ones below are dated 28 and 29 November). Words only, taken from the commit messages and file statistics of the public GPL-3.0 repository; no code was read in detail, nothing built or run.

  • C52 another project 6235b60c: indirect compute dispatches with more than 65,535 groups are allowed on NVIDIA too (it was AMD-only), with an opt-out switch. Its message names an unlit, smudged bottom fifth of the picture at 1440p as the symptom, checked on an RTX 4070 SUPER. 22 added, 7 removed lines, one file. For XCL: a partly dark picture from a dispatch list that is cut off.
  • C53 another project 1836413d: a single R11G11B10_FLOAT or R9G9B9E5 plane is presented through the compositor instead of being warned about and never shown. 70 lines, two files. Its message says it depends on their #1709 and is a port of another project#3784, so a port into XCL should name that origin. For XCL: a black picture when the presented plane has a packed-float format.
  • C54 another project 6bbb6bca: mesh groups run in whole console waves, mesh loop limits go through the loop's exit, and one 16-bit write is fixed; its message names lost triangles on NVIDIA. 237 added, 22 removed lines, three files. For XCL: mesh shading on 32-lane hosts.
  • C55 another project 99b28552: unchanged linear plane uploads are skipped and plane reads try a lock-free path first (two switches). No numbers in its message. 162 added lines, one file. For XCL: upload cost per frame.
  • Too large to take as they are; listed for whoever wants to split one:
    • 8f0a0c24: wave64 programs folded exactly onto 32-lane hosts, two console lanes per host lane. Its message states refusals going from 22 to 1 with 175 programs exact on an RTX 5070 Ti. 3,369 added lines in 14 files, a large part of them tests.
    • 5ed4465b: a lane-selection fix for ds_bpermute_b32 on wave32 hosts. 893 added and 814 removed lines, mostly moved tests; the fix itself is small.
  • Looked at, not listed: a residency-priority change that is off by default, and three changes of 200 to 500 lines without numbers.

As before: comment with the number before you start, and a port needs the provenance note in the file and a THIRD_PARTY.md entry.

AI use: Claude Code; the commits were picked by Claude Haiku 5.5 from their messages, and Claude Fable 5.2 checked the commit ids and sizes and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7253245768 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7253245768). Originally posted by [throny](https://github.com/throny) on 2026-11-29T08:39:23Z. --- New port candidates from the watch (another project, 815 commits since the last look, many of them merges; the ones below are dated 28 and 29 November). Words only, taken from the commit messages and file statistics of the public GPL-3.0 repository; no code was read in detail, nothing built or run. - **C52** another project `6235b60c`: indirect compute dispatches with more than 65,535 groups are allowed on NVIDIA too (it was AMD-only), with an opt-out switch. Its message names an unlit, smudged bottom fifth of the picture at 1440p as the symptom, checked on an RTX 4070 SUPER. 22 added, 7 removed lines, one file. For XCL: a partly dark picture from a dispatch list that is cut off. - **C53** another project `1836413d`: a single R11G11B10_FLOAT or R9G9B9E5 plane is presented through the compositor instead of being warned about and never shown. 70 lines, two files. Its message says it depends on their #1709 and is a port of another project#3784, so a port into XCL should name that origin. For XCL: a black picture when the presented plane has a packed-float format. - **C54** another project `6bbb6bca`: mesh groups run in whole console waves, mesh loop limits go through the loop's exit, and one 16-bit write is fixed; its message names lost triangles on NVIDIA. 237 added, 22 removed lines, three files. For XCL: mesh shading on 32-lane hosts. - **C55** another project `99b28552`: unchanged linear plane uploads are skipped and plane reads try a lock-free path first (two switches). No numbers in its message. 162 added lines, one file. For XCL: upload cost per frame. - Too large to take as they are; listed for whoever wants to split one: - `8f0a0c24`: wave64 programs folded exactly onto 32-lane hosts, two console lanes per host lane. Its message states refusals going from 22 to 1 with 175 programs exact on an RTX 5070 Ti. 3,369 added lines in 14 files, a large part of them tests. - `5ed4465b`: a lane-selection fix for `ds_bpermute_b32` on wave32 hosts. 893 added and 814 removed lines, mostly moved tests; the fix itself is small. - Looked at, not listed: a residency-priority change that is off by default, and three changes of 200 to 500 lines without numbers. As before: comment with the number before you start, and a port needs the provenance note in the file and a `THIRD_PARTY.md` entry. AI use: Claude Code; the commits were picked by Claude Haiku 5.5 from their messages, and Claude Fable 5.2 checked the commit ids and sizes and wrote this.
throny commented 2026-11-29 14:43:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T14:43:13Z.


Why the other project projects are at 20+ fps on NVIDIA and XCL at 2 to 12, from a source read of another project, another project (its GPU path is a vendored copy of the same code) and another project against XCL main. Read only, nothing of theirs built or run. Marked as: [S] seen in their source, [D] stated in their docs, [I] my inference. Proposal for how to split the work at the end.

Where XCL's frame goes (RTX 4080 16 GB, measured, details on #505): about 450 ms of GPU time per frame; compute about 290 ms (about 830 dispatches per frame that are each cut into about 10 pieces and about 3.7 slabs), two-pass mesh draws about 117 ms in about 2,300 calls. Their whole GPU frame is about 41 ms at 1440p on an RX 7900 XTX [D].

C56. Per-lane structuring instead of EXEC-masked execution (another project/src/structure.rs, guard removal in emit/lower.rs) [S]. Lane masks become per-lane booleans, a wave-wide test becomes a branch on the lane's own bit, and EXEC guards disappear where EXEC is known full. One whole DXIL shader and one Dispatch per console program; no split by instruction count anywhere in their tree. This is the root of both gaps below. Size: 2 to 3k lines, several PRs. [I] it is also why they do not hit the NVIDIA compile blow-up that made XCL split.

C57. Folded wave64 on 32-lane GPUs (another project another project/src/fold.rs, docs/wave64-folded.md) [S]: two console lanes per host lane, a ballot is two WaveActiveBallot, no groupshared exchange and no barrier. Their figure: 18.0 against 18.3 ms per frame with 175 programs folded [D]. About 1.5k lines. Replaces XCL's exchange in PRELUDE_X64 / lower/wave.rs.

C58. Mesh programs as real mesh shaders with the console's group size (emit/lower.rs around the thread-group and lane-id code) [S]: no compute pre-pass; the driver splits a 128-thread group into 32-lane waves and the console lane is the flat thread id AND 63, which is valid because after C56 mesh code reads no other lanes. Per draw: one DispatchMesh, state set only when it changes, barriers only on real state changes. For XCL without C56: [I] the existing split-wave64 lowering inside a mesh entry with numthreads(128) and groupshared exchange, 400 to 700 lines; limit to check: 28 KB groupshared per group. @KDenKC this looks like the 128-thread slice you mentioned on #505; I do not start anything here.

C59. Their headline numbers use reduced settings XCL can select today [D]: Series S profile, ray tracing off with its passes skipped, 720p internal for 1080p output, some runs with DLSS and frame generation. XCL has XCL_DEVICE_TYPE=lockhart and XCL_RAYTRACING=off. No port needed, only measurements; I run both on the 4080 today and post on #505.

C60. Buffers in card memory, within the budget (another project/src/shadow.rs; docs/rtx5080-16gb.md) [S][D]: title memory stays in PC RAM, a buffer gets its own copy on the card at first use, kept current by write watch. Their figure on an RTX 5080 16 GB: 16 to 27 fps from keeping small buffers on the card (64 KiB minimum instead of 4 MiB), 13 to 14 GB used. XCL is at 18.7 GB against a 15.2 GB budget here. Different memory model from XCL's GPU windows: a rewrite, not a port. Weeks.

C61. CPU side [S][D]: title list calls only write arguments, 6 to 8 workers translate them (list/thin.rs), separate preparation thread, merged submissions. Their figure: 280 to 46-65 ms per frame over all of these. XCL records about 445 ms of CPU per frame across threads. Matters once the GPU side is fixed.

Proposed split (please object or take one):

  1. C59 measurements: me, today.
  2. C58 mesh: KDenKC's group, as already under way.
  3. C56 is the big one and everything else depends on it. I propose one owner and a design note first (how their per-lane form maps onto XCL's gpu/recomp IR; whether structure.rs depends on their IR or can be ported as is), then stacked PRs under 400 lines. I can write that design note with provenance if nobody is on it; say so here in the next hours, otherwise I start it.
  4. C57 after C56, C60 and C61 later.

My judgement [I]: the gap is not structural, but 20 fps on a 16 GB card needs C56 + C58 + the reduced settings together, which is weeks, not a port of one piece.

AI use: Claude Code; three Claude Opus 5.5 agents read the sources, Claude Fable 5.2 checked the XCL side and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7257522764 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7257522764). Originally posted by [throny](https://github.com/throny) on 2026-11-29T14:43:13Z. --- Why the other project projects are at 20+ fps on NVIDIA and XCL at 2 to 12, from a source read of another project, another project (its GPU path is a vendored copy of the same code) and another project against XCL `main`. Read only, nothing of theirs built or run. Marked as: [S] seen in their source, [D] stated in their docs, [I] my inference. Proposal for how to split the work at the end. **Where XCL's frame goes** (RTX 4080 16 GB, measured, details on #505): about 450 ms of GPU time per frame; compute about 290 ms (about 830 dispatches per frame that are each cut into about 10 pieces and about 3.7 slabs), two-pass mesh draws about 117 ms in about 2,300 calls. Their whole GPU frame is about 41 ms at 1440p on an RX 7900 XTX [D]. **C56. Per-lane structuring instead of EXEC-masked execution** (`another project/src/structure.rs`, guard removal in `emit/lower.rs`) [S]. Lane masks become per-lane booleans, a wave-wide test becomes a branch on the lane's own bit, and EXEC guards disappear where EXEC is known full. One whole DXIL shader and one `Dispatch` per console program; no split by instruction count anywhere in their tree. This is the root of both gaps below. Size: 2 to 3k lines, several PRs. [I] it is also why they do not hit the NVIDIA compile blow-up that made XCL split. **C57. Folded wave64 on 32-lane GPUs** (another project `another project/src/fold.rs`, `docs/wave64-folded.md`) [S]: two console lanes per host lane, a ballot is two `WaveActiveBallot`, no groupshared exchange and no barrier. Their figure: 18.0 against 18.3 ms per frame with 175 programs folded [D]. About 1.5k lines. Replaces XCL's exchange in `PRELUDE_X64` / `lower/wave.rs`. **C58. Mesh programs as real mesh shaders with the console's group size** (`emit/lower.rs` around the thread-group and lane-id code) [S]: no compute pre-pass; the driver splits a 128-thread group into 32-lane waves and the console lane is the flat thread id AND 63, which is valid because after C56 mesh code reads no other lanes. Per draw: one `DispatchMesh`, state set only when it changes, barriers only on real state changes. For XCL without C56: [I] the existing split-wave64 lowering inside a mesh entry with `numthreads(128)` and groupshared exchange, 400 to 700 lines; limit to check: 28 KB groupshared per group. @KDenKC this looks like the 128-thread slice you mentioned on #505; I do not start anything here. **C59. Their headline numbers use reduced settings XCL can select today** [D]: Series S profile, ray tracing off with its passes skipped, 720p internal for 1080p output, some runs with DLSS and frame generation. XCL has `XCL_DEVICE_TYPE=lockhart` and `XCL_RAYTRACING=off`. No port needed, only measurements; I run both on the 4080 today and post on #505. **C60. Buffers in card memory, within the budget** (`another project/src/shadow.rs`; `docs/rtx5080-16gb.md`) [S][D]: title memory stays in PC RAM, a buffer gets its own copy on the card at first use, kept current by write watch. Their figure on an RTX 5080 16 GB: 16 to 27 fps from keeping small buffers on the card (64 KiB minimum instead of 4 MiB), 13 to 14 GB used. XCL is at 18.7 GB against a 15.2 GB budget here. Different memory model from XCL's GPU windows: a rewrite, not a port. Weeks. **C61. CPU side** [S][D]: title list calls only write arguments, 6 to 8 workers translate them (`list/thin.rs`), separate preparation thread, merged submissions. Their figure: 280 to 46-65 ms per frame over all of these. XCL records about 445 ms of CPU per frame across threads. Matters once the GPU side is fixed. **Proposed split** (please object or take one): 1. C59 measurements: me, today. 2. C58 mesh: KDenKC's group, as already under way. 3. C56 is the big one and everything else depends on it. I propose one owner and a design note first (how their per-lane form maps onto XCL's `gpu/recomp` IR; whether `structure.rs` depends on their IR or can be ported as is), then stacked PRs under 400 lines. I can write that design note with provenance if nobody is on it; say so here in the next hours, otherwise I start it. 4. C57 after C56, C60 and C61 later. My judgement [I]: the gap is not structural, but 20 fps on a 16 GB card needs C56 + C58 + the reduced settings together, which is weeks, not a port of one piece. AI use: Claude Code; three Claude Opus 5.5 agents read the sources, Claude Fable 5.2 checked the XCL side and wrote this.
KDenKC commented 2026-11-29 14:44:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-29T14:44:48Z.


@throny yes, C58 is ours: it is the next slice of C4 (#3327), so we take it under that claim. Where it stands, all local so far:

  • What the title needs (a census line per mesh program in our integration build, RTX 5090): 327 distinct mesh programs, and every one is 128 threads, 128 max vertices, 128 max primitives, wave64, and reads the group index (v5). Their first draws: 241 indirect, 89 direct.
  • 128-thread native entry: done as the split-wave64 lowering inside a numthreads(128) mesh entry, as you describe. Our cross-wave exchange used a polling rendezvous, which the mesh stage does not guarantee forward progress for; it now uses the hardware group barrier, within the 28 KiB groupshared cap. A 128-thread wave64 fixture draws the same 512 pixels natively as through two passes on an RTX 3090 (native_mesh 4/4 there; independent review done). Two limits for now: the 128-thread path takes straight-line programs only (a branch could split the waves at an exchange), and v5 only for direct draws (X/Y passed per draw).
  • v5 for indirect draws (73 % of first draws): a compound command signature, two root constants (X, Y) + DISPATCH_MESH, stride 20, written per command by the GPU pass that already bounds indirect mesh draws. The D3D12 proof test is being written now.
  • Next: a run in the title with the switch on that counts native against two-pass per program, with the reason, and the frame time. Then the branch limit, which is where C56 would help: with per-lane control flow there is nothing to keep uniform across the waves.

On C56: we're not on it and won't start it; a design note first, as you propose, sounds right to us.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.

<!-- greyfinch-sync:ivall/xcl:comment:7257543394 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7257543394). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-29T14:44:48Z. --- @throny yes, C58 is ours: it is the next slice of C4 (#3327), so we take it under that claim. Where it stands, all local so far: - **What the title needs** (a census line per mesh program in our integration build, RTX 5090): 327 distinct mesh programs, and every one is 128 threads, 128 max vertices, 128 max primitives, wave64, and reads the group index (v5). Their first draws: 241 indirect, 89 direct. - **128-thread native entry:** done as the split-wave64 lowering inside a `numthreads(128)` mesh entry, as you describe. Our cross-wave exchange used a polling rendezvous, which the mesh stage does not guarantee forward progress for; it now uses the hardware group barrier, within the 28 KiB groupshared cap. A 128-thread wave64 fixture draws the same 512 pixels natively as through two passes on an RTX 3090 (native_mesh 4/4 there; independent review done). Two limits for now: the 128-thread path takes straight-line programs only (a branch could split the waves at an exchange), and v5 only for direct draws (X/Y passed per draw). - **v5 for indirect draws** (73 % of first draws): a compound command signature, two root constants (X, Y) + `DISPATCH_MESH`, stride 20, written per command by the GPU pass that already bounds indirect mesh draws. The D3D12 proof test is being written now. - **Next:** a run in the title with the switch on that counts native against two-pass per program, with the reason, and the frame time. Then the branch limit, which is where C56 would help: with per-lane control flow there is nothing to keep uniform across the waves. On C56: we're not on it and won't start it; a design note first, as you propose, sounds right to us. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.
throny commented 2026-11-29 14:52:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T14:52:50Z.


C56: per-lane structuring in XCL (design note for #3011)

Sources read: XCL origin/main 3b6a91ed (the local checkout is 1,898 commits behind it; every XCL
reference below is to origin/main, paths under crates/xcl/src/gpu/); another project fe7c6e5
(another project/src/, GPL-3.0-or-later); another project fold.rs and docs/wave64-folded.md.
Nothing was built or run. [V] = read in source, [I] = inferred, [S] = reported by a search
pass over XCL, not re-read by me.

0. The finding that changes the task

XCL already has this design, written independently on 2026-11-24 (commits 1bab7576, b3c0b373,
511eadd5; no provenance note, and THIRD_PARTY.md lists another project only for bcpack) [V]:

  • recomp/lane_masks.rs (1,224 lines): masks as per-lane booleans in a reduced ordered BDD, lane
    branches, path conditions, Summary.guarded (lines 1-23, 196-207, 263-278) [V].
  • recomp/lower.rs + lower/wave.rs + lower_dxil.rs: a per-lane lowering to DXIL (EXEC is "each
    lane's own bit (i1)", lower.rs:4-12) [V].
  • Switch: XCL_PER_LANE=1, compute only, tried first, falling back to the per-instruction translator
    and then HLSL (lower_dxil.rs:431-435, pso.rs:1295-1309). An accepted program is one shader with
    dispatch_chain: None (pso.rs:1302) [V]. It is off by default.
  • lower_graphics (VS/PS) exists but only tests call it; there is no mesh stage (lower.rs:159-167,
    1201) [V].

So C56 is not "port structure.rs". It is: measure what XCL's per-lane form refuses, port the specific
another project techniques that remove those refusals, add mesh, and turn it on.

1. another project's pipeline

  • Decode → IR (ir.rs:1-17): one Inst per machine instruction in SSA over register dwords, with
    phis; EXEC, SCC and the old VGPR value are explicit operands. ir::build splits irreducible loops
    (structure.rs:1419) [V].
  • structure.rs (1,927 lines, about 1,000 of them tests):
    • A Bool is a BDD node over atoms Lane (a lane's compare or carry bit), Uniform (SCC), Phi,
      Quad (s_wqm), Opaque and Constant (36-53) [V].
    • sop (1054) reads s_<op>_b32/b64, _saveexec, _wrexec, mov, not, wqm and cselect
      as boolean algebra; step (1194) makes compare, carry and v_cmpx results EXEC AND Lane [V].
    • branch (1337) turns execz/execnz/vccz/vccnz and the SCC of a mask operation into the lane's
      own bit; any other SCC is Uniform [V].
    • join (957) resolves a mask phi to a constant when every arriving lane agrees, checks it against
      back edges (713), and restarts with a Phi atom on a wrong guess (474-487). paths (1376) is
      the fixpoint of what each lane knows per block; loop heads forget atoms the loop redefines [V].
    • Output (finish, 768): a guard is None when reaching the instruction implies EXEC (813);
      active lists masks set only in lanes that reach their write, so a ballot there is the mask as
      data (429-433) [V].
    • Fallbacks: errors for irreducible flow, "lane conditions too large" and "do not settle"
      (1407-1429); otherwise opaque atoms and kept guards. structure_wide (471) keeps chosen
      branches as one wave-wide decision, with EXEC a guard behind them [V].
  • Lowering (emit/lower.rs, 13,981 lines; emit/mod.rs):
    • Masks read as numbers are ballots taken where the mask is written (447-466) [V].
    • Compute needs wave semantics (declares WaveSize) only with cross-lane code: DPP, swizzle,
      permute, permlane, v_mbcnt, readlane, writelane, mask as data, or a wide branch (1992-2006,
      2120-2122) [V].
    • Reductions and prefix sums are whole-wave sections simulated symbolically and emitted as DXIL
      wave operations (emit/wave.rs:1-12); emit/own_bits.rs:1-40 covers wave ORs that only steer a
      per-lane bit loop [V].
    • Mesh: lane index = flattenedThreadIdInGroup AND (wave-1) (5717-5724); output counts are the
      declared maxima and each lane culls its own primitive (5617-5670); at most 128 threads (5630);
      no wave size can be declared, so masks as data are unavailable (463-465) [V].
    • Retry ladder for wave64 on a 32-lane host (emit/mod.rs:651-830, 990-1084): paired halves, the
      program without early-outs or skips, wave-wide branches (widen), then "local waves", which
      mod.rs:727-730 and wave64-folded.md:16-18 call APPROXIMATE [V].
  • Bitcode: its own LLVM 3.7 writer (emit/bitcode.rs:1-7) [V].
  • Fractions: its docs give none [V, by grep of four docs]. wave64-folded.md:22-30 lists one
    scene's shadow programs as approximate or refused before folding, so part of the 20+ fps comes
    from inexact forms [I].

2. XCL today, and where the designs diverge

  • Decode rdna2.rs. There is no separate IR: SSA is built straight into the DXIL module
    (recomp/ssa.rs, dxil/ssa.rs) [S].
  • Default paths keep EXEC as a number: act()/sel on every write, compares become
    WaveActiveBallot, branches test the uniform pair (dxil/lower.rs:904-1082, emit.rs:768-1015)
    [S]. Wave64 on 32 lanes exchanges halves with spin counters (dxil/lanes.rs:289-332) [S].
  • Compute is cut at dispatch_piece_limit() = 12,500 (dxil/kernel.rs:93-95, no rationale comment;
    used at 606) by module/split.rs and replayed by hle/d3d12x/real/dispatch_chain.rs [V/S].
  • Mesh is a compute pass plus a pass-through mesh shader, because WaveSize is compute-only and "the
    console code relies on 64-lane ballots" (recomp/mod.rs:28-35, dxil/kernel.rs:129) [V].

Divergences of the per-lane path from another project [V] unless marked:

  1. XCL's is opt-in and compute-only at run time.
  2. XCL's analysis is keyed by pc over decoded instructions; another project's by SSA value over its IR.
  3. XCL refuses where another project retries: a branch on "any lane of a mask" with lanes in EXEC lacking
    the bit (lane_masks.rs:921), a scalar read of such an SCC (899), s_barrier in any compute
    program (lower.rs:1264), readlane and writelane in partial blocks (wave.rs:322, 331), mask or
    number mixes through joins, code-address tables (pso.rs:1297), split-wave64 LDS
    (lower_dxil.rs:372). XCL has no wide-branch mode, no active set, no whole-wave sections, no
    own-bits proof.
  4. Instructions without a per-lane lowering go through foreign to the per-instruction translator
    (lower.rs:105-118) [S]; another project lowers everything natively.
  5. XCL refuses rather than approximates.

3. Options

A: extend XCL's per-lane path B: vendor another project as a second translator C: turn on what exists
structure.rs separable? Imports only ir::{Program, Inst, Reg, Value, Exit} and gfx10::{Fields, Operand} (22-24) [V], but needs SSA values and phis XCL lacks. Port the ideas into lane_masks.rs. Taken whole, with ir, io, resource (4,403 lines), native, spill, emit (~25,000 non-test lines) [V]. Not needed.
Size ~2,500-3,500 lines in 11 PRs [I] >30,000 vendored lines plus a binding adapter: its shaders index descriptor heaps directly (emit/mod.rs:17-21), XCL's use the io/res/mem root UAVs [V] 2-3 PRs
Risk Medium, differential tests exist High: unreviewable under the 400-line rule, two ABIs, approximate forms come along Low
Compute An accepted program is one Dispatch already; gain grows as refusals fall Same Only for programs accepted today (count unmeasured)
Mesh Native mesh shader where mesh_wave::analyze shows no cross-lane need Yes None
NVIDIA compile size Fewer selects and ballots per instruction; one large function is unmeasured [I] Same Same

4. Recommendation: C then A; keep the switch XCL_PER_LANE

Step 0, no PR: run survey_compute_code (lower_dxil.rs:408) over the title's compute programs and
post refusal reasons by count and by instruction count. That decides the order of PRs 3-6.

  1. Recompiler: lane_masks exports active masks (analysis only). Unit tests in its mod tests
    (run_launch).
  2. Recompiler: analyze_wide(insts, wide_blocks): no edge narrowing behind a wide branch, plus
    any/every kinds. Unit tests.
  3. Recompiler: a mask read as a number is a ballot at its write for active masks. Test with
    agrees_with_hlsl (lower.rs:4387).
  4. Recompiler: wide-branch lowering and a widen retry for "some lanes are elsewhere" refusals,
    one console wave per group only. Tests: wave_branch_cases (3499), run_compute_waves (3171).
  5. Recompiler: s_barrier where every thread reaches it.
  6. Recompiler: whole-wave sections for reductions and prefix sums (the largest item; two PRs if
    over 400 lines).
  7. Recompiler: Stage::Mesh in lower.rs: lane = flat thread id AND (wave-1), refused when
    mesh_wave::analyze reports a cross-lane need. CPU-interpreter test.
  8. Recompiler: mesh entry in lower_dxil.rs (output counts at the maxima, per-lane cull) behind
    XCL_PER_LANE=mesh, falling back to two-pass. GPU test against the two-pass result, with
    runner::skip_test("no mesh shaders").
  9. Recompiler: lower_graphics wired for VS/PS behind XCL_PER_LANE=all.
  10. Recompiler: XCL_PER_LANE on by default for compute (0 turns it off); README; both smoke
    blocks.
  11. Shaders: one [SHADER] summary line with the form and refusal counts.

New GPU tests follow gpu_divergence_through_exec (tests.rs:1601): prog (130),
runner::run_code (851), runner::skip_test (651) [S].

Header for a file that takes another project code or its algorithm closely:
// <what>: ported from another project's another project/src/<file> at fe7c6e5 on <date>
// (another project's repository GPL-3.0-or-later, see THIRD_PARTY.md).

THIRD_PARTY.md row (it is one table: Source | License | What in XCL | How):
| another project | GPL-3.0-or-later | crates/xcl/src/gpu/recomp/{lane_masks,lower,lower/wave,lower_dxil}.rs: wave-wide branch mode, active-mask ballots, whole-wave sections and the mesh entry, after its another project structure.rs and emit/ | port to XCL's analysis and IR |

5. Correctness risks and equivalence tests

  • The per-lane premise ("compiled code only skips work inactive lanes would not change") is an
    assumption (structure.rs:5-9) [V]. Riskiest classes: wave-wide tests with bits outside EXEC,
    masks through loop joins, cross-lane reads in partial blocks, s_wqm and helper lanes in PS, LDS
    with barriers, and loops left through s_andn2_wrexec.
  • Equivalence: extend agrees_with_hlsl (per-lane form on the CPU interpreter against HLSL on the
    GPU) to three-way on the GPU: per-lane, per-instruction and HLSL of the same program, wave32 and
    wave64. With XCL_SAMPLE_* set, run every accepted program of the title in both lowerings on
    seeded memory and compare res.
  • Never port "local waves" or any approximate form: a refusal must fall back.
  • Mesh: compare exported vertices and primitives with the two-pass records, bit for bit.

6. Open questions

  1. What do the title's compute programs refuse today, weighted by GPU time? Nobody has posted the survey.
  2. Why 12,500? If it is a driver compile limit, does one per-lane function of a 100,000-instruction
    program compile on NVIDIA at all?
  3. How many of the title's 128-thread wave64 mesh programs need ballots or lane reads?
    recomp/mod.rs:33 says they rely on them; another project's lower.rs:5719 says mesh code reads no
    other lanes.
  4. Is it acceptable to cite another project for techniques re-implemented on XCL's own analysis, or only
    for copied code?
  5. Folded wave64 (fold.rs, 1,695 lines) is exact on 32-lane hosts and competes with XCL's split
    and exchange: a separate issue?
  6. Retire module/split.rs and the dispatch chain once per-lane coverage allows?
<!-- greyfinch-sync:ivall/xcl:comment:7257648370 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7257648370). Originally posted by [throny](https://github.com/throny) on 2026-11-29T14:52:50Z. --- # C56: per-lane structuring in XCL (design note for #3011) Sources read: XCL `origin/main` 3b6a91ed (the local checkout is 1,898 commits behind it; every XCL reference below is to `origin/main`, paths under `crates/xcl/src/gpu/`); another project fe7c6e5 (`another project/src/`, GPL-3.0-or-later); another project `fold.rs` and `docs/wave64-folded.md`. Nothing was built or run. **[V]** = read in source, **[I]** = inferred, **[S]** = reported by a search pass over XCL, not re-read by me. ## 0. The finding that changes the task XCL already has this design, written independently on 2026-11-24 (commits 1bab7576, b3c0b373, 511eadd5; no provenance note, and `THIRD_PARTY.md` lists another project only for bcpack) **[V]**: - `recomp/lane_masks.rs` (1,224 lines): masks as per-lane booleans in a reduced ordered BDD, lane branches, path conditions, `Summary.guarded` (lines 1-23, 196-207, 263-278) **[V]**. - `recomp/lower.rs` + `lower/wave.rs` + `lower_dxil.rs`: a per-lane lowering to DXIL (EXEC is "each lane's own bit (`i1`)", `lower.rs:4-12`) **[V]**. - Switch: `XCL_PER_LANE=1`, compute only, tried first, falling back to the per-instruction translator and then HLSL (`lower_dxil.rs:431-435`, `pso.rs:1295-1309`). An accepted program is one shader with `dispatch_chain: None` (`pso.rs:1302`) **[V]**. It is off by default. - `lower_graphics` (VS/PS) exists but only tests call it; there is no mesh stage (`lower.rs:159-167`, 1201) **[V]**. So C56 is not "port structure.rs". It is: measure what XCL's per-lane form refuses, port the specific another project techniques that remove those refusals, add mesh, and turn it on. ## 1. another project's pipeline - **Decode → IR** (`ir.rs:1-17`): one `Inst` per machine instruction in SSA over register dwords, with phis; EXEC, SCC and the old VGPR value are explicit operands. `ir::build` splits irreducible loops (`structure.rs:1419`) **[V]**. - **structure.rs** (1,927 lines, about 1,000 of them tests): - A `Bool` is a BDD node over atoms `Lane` (a lane's compare or carry bit), `Uniform` (SCC), `Phi`, `Quad` (`s_wqm`), `Opaque` and `Constant` (36-53) **[V]**. - `sop` (1054) reads `s_<op>_b32/b64`, `_saveexec`, `_wrexec`, `mov`, `not`, `wqm` and `cselect` as boolean algebra; `step` (1194) makes compare, carry and `v_cmpx` results `EXEC AND Lane` **[V]**. - `branch` (1337) turns `execz/execnz/vccz/vccnz` and the SCC of a mask operation into the lane's own bit; any other SCC is `Uniform` **[V]**. - `join` (957) resolves a mask phi to a constant when every arriving lane agrees, checks it against back edges (713), and restarts with a `Phi` atom on a wrong guess (474-487). `paths` (1376) is the fixpoint of what each lane knows per block; loop heads forget atoms the loop redefines **[V]**. - Output (`finish`, 768): a guard is `None` when reaching the instruction implies EXEC (813); `active` lists masks set only in lanes that reach their write, so a ballot there is the mask as data (429-433) **[V]**. - Fallbacks: errors for irreducible flow, "lane conditions too large" and "do not settle" (1407-1429); otherwise opaque atoms and kept guards. `structure_wide` (471) keeps chosen branches as one wave-wide decision, with EXEC a guard behind them **[V]**. - **Lowering** (`emit/lower.rs`, 13,981 lines; `emit/mod.rs`): - Masks read as numbers are ballots taken where the mask is written (447-466) **[V]**. - Compute needs wave semantics (declares `WaveSize`) only with cross-lane code: DPP, swizzle, permute, permlane, `v_mbcnt`, readlane, writelane, mask as data, or a wide branch (1992-2006, 2120-2122) **[V]**. - Reductions and prefix sums are whole-wave sections simulated symbolically and emitted as DXIL wave operations (`emit/wave.rs:1-12`); `emit/own_bits.rs:1-40` covers wave ORs that only steer a per-lane bit loop **[V]**. - Mesh: lane index = `flattenedThreadIdInGroup AND (wave-1)` (5717-5724); output counts are the declared maxima and each lane culls its own primitive (5617-5670); at most 128 threads (5630); no wave size can be declared, so masks as data are unavailable (463-465) **[V]**. - Retry ladder for wave64 on a 32-lane host (`emit/mod.rs:651-830`, 990-1084): paired halves, the program without early-outs or skips, wave-wide branches (`widen`), then "local waves", which `mod.rs:727-730` and `wave64-folded.md:16-18` call APPROXIMATE **[V]**. - **Bitcode**: its own LLVM 3.7 writer (`emit/bitcode.rs:1-7`) **[V]**. - **Fractions**: its docs give none **[V, by grep of four docs]**. `wave64-folded.md:22-30` lists one scene's shadow programs as approximate or refused before folding, so part of the 20+ fps comes from inexact forms **[I]**. ## 2. XCL today, and where the designs diverge - Decode `rdna2.rs`. There is no separate IR: SSA is built straight into the DXIL module (`recomp/ssa.rs`, `dxil/ssa.rs`) **[S]**. - Default paths keep EXEC as a number: `act()`/`sel` on every write, compares become `WaveActiveBallot`, branches test the uniform pair (`dxil/lower.rs:904-1082`, `emit.rs:768-1015`) **[S]**. Wave64 on 32 lanes exchanges halves with spin counters (`dxil/lanes.rs:289-332`) **[S]**. - Compute is cut at `dispatch_piece_limit()` = 12,500 (`dxil/kernel.rs:93-95`, no rationale comment; used at 606) by `module/split.rs` and replayed by `hle/d3d12x/real/dispatch_chain.rs` **[V/S]**. - Mesh is a compute pass plus a pass-through mesh shader, because `WaveSize` is compute-only and "the console code relies on 64-lane ballots" (`recomp/mod.rs:28-35`, `dxil/kernel.rs:129`) **[V]**. Divergences of the per-lane path from another project **[V]** unless marked: 1. XCL's is opt-in and compute-only at run time. 2. XCL's analysis is keyed by pc over decoded instructions; another project's by SSA value over its IR. 3. XCL refuses where another project retries: a branch on "any lane of a mask" with lanes in EXEC lacking the bit (`lane_masks.rs:921`), a scalar read of such an SCC (899), `s_barrier` in any compute program (`lower.rs:1264`), readlane and writelane in partial blocks (`wave.rs:322, 331`), mask or number mixes through joins, code-address tables (`pso.rs:1297`), split-wave64 LDS (`lower_dxil.rs:372`). XCL has no wide-branch mode, no `active` set, no whole-wave sections, no own-bits proof. 4. Instructions without a per-lane lowering go through `foreign` to the per-instruction translator (`lower.rs:105-118`) **[S]**; another project lowers everything natively. 5. XCL refuses rather than approximates. ## 3. Options | | A: extend XCL's per-lane path | B: vendor another project as a second translator | C: turn on what exists | |---|---|---|---| | structure.rs separable? | Imports only `ir::{Program, Inst, Reg, Value, Exit}` and `gfx10::{Fields, Operand}` (22-24) **[V]**, but needs SSA values and phis XCL lacks. Port the ideas into `lane_masks.rs`. | Taken whole, with `ir`, `io`, `resource` (4,403 lines), `native`, `spill`, `emit` (~25,000 non-test lines) **[V]**. | Not needed. | | Size | ~2,500-3,500 lines in 11 PRs **[I]** | >30,000 vendored lines plus a binding adapter: its shaders index descriptor heaps directly (`emit/mod.rs:17-21`), XCL's use the `io/res/mem` root UAVs **[V]** | 2-3 PRs | | Risk | Medium, differential tests exist | High: unreviewable under the 400-line rule, two ABIs, approximate forms come along | Low | | Compute | An accepted program is one Dispatch already; gain grows as refusals fall | Same | Only for programs accepted today (count unmeasured) | | Mesh | Native mesh shader where `mesh_wave::analyze` shows no cross-lane need | Yes | None | | NVIDIA compile size | Fewer selects and ballots per instruction; one large function is unmeasured **[I]** | Same | Same | ## 4. Recommendation: C then A; keep the switch `XCL_PER_LANE` Step 0, no PR: run `survey_compute_code` (`lower_dxil.rs:408`) over the title's compute programs and post refusal reasons by count and by instruction count. That decides the order of PRs 3-6. 1. **Recompiler**: `lane_masks` exports `active` masks (analysis only). Unit tests in its `mod tests` (`run_launch`). 2. **Recompiler**: `analyze_wide(insts, wide_blocks)`: no edge narrowing behind a wide branch, plus any/every kinds. Unit tests. 3. **Recompiler**: a mask read as a number is a ballot at its write for `active` masks. Test with `agrees_with_hlsl` (`lower.rs:4387`). 4. **Recompiler**: wide-branch lowering and a widen retry for "some lanes are elsewhere" refusals, one console wave per group only. Tests: `wave_branch_cases` (3499), `run_compute_waves` (3171). 5. **Recompiler**: `s_barrier` where every thread reaches it. 6. **Recompiler**: whole-wave sections for reductions and prefix sums (the largest item; two PRs if over 400 lines). 7. **Recompiler**: `Stage::Mesh` in `lower.rs`: lane = flat thread id AND (wave-1), refused when `mesh_wave::analyze` reports a cross-lane need. CPU-interpreter test. 8. **Recompiler**: mesh entry in `lower_dxil.rs` (output counts at the maxima, per-lane cull) behind `XCL_PER_LANE=mesh`, falling back to two-pass. GPU test against the two-pass result, with `runner::skip_test("no mesh shaders")`. 9. **Recompiler**: `lower_graphics` wired for VS/PS behind `XCL_PER_LANE=all`. 10. **Recompiler**: `XCL_PER_LANE` on by default for compute (`0` turns it off); README; both smoke blocks. 11. **Shaders**: one `[SHADER]` summary line with the form and refusal counts. New GPU tests follow `gpu_divergence_through_exec` (`tests.rs:1601`): `prog` (130), `runner::run_code` (851), `runner::skip_test` (651) **[S]**. Header for a file that takes another project code or its algorithm closely: `// <what>: ported from another project's another project/src/<file> at fe7c6e5 on <date>` `// (another project's repository GPL-3.0-or-later, see THIRD_PARTY.md).` `THIRD_PARTY.md` row (it is one table: Source | License | What in XCL | How): `| another project | GPL-3.0-or-later | crates/xcl/src/gpu/recomp/{lane_masks,lower,lower/wave,lower_dxil}.rs: wave-wide branch mode, active-mask ballots, whole-wave sections and the mesh entry, after its another project structure.rs and emit/ | port to XCL's analysis and IR |` ## 5. Correctness risks and equivalence tests - The per-lane premise ("compiled code only skips work inactive lanes would not change") is an assumption (`structure.rs:5-9`) **[V]**. Riskiest classes: wave-wide tests with bits outside EXEC, masks through loop joins, cross-lane reads in partial blocks, `s_wqm` and helper lanes in PS, LDS with barriers, and loops left through `s_andn2_wrexec`. - Equivalence: extend `agrees_with_hlsl` (per-lane form on the CPU interpreter against HLSL on the GPU) to three-way on the GPU: per-lane, per-instruction and HLSL of the same program, wave32 and wave64. With `XCL_SAMPLE_*` set, run every accepted program of the title in both lowerings on seeded memory and compare `res`. - Never port "local waves" or any approximate form: a refusal must fall back. - Mesh: compare exported vertices and primitives with the two-pass records, bit for bit. ## 6. Open questions 1. What do the title's compute programs refuse today, weighted by GPU time? Nobody has posted the survey. 2. Why 12,500? If it is a driver compile limit, does one per-lane function of a 100,000-instruction program compile on NVIDIA at all? 3. How many of the title's 128-thread wave64 mesh programs need ballots or lane reads? `recomp/mod.rs:33` says they rely on them; another project's `lower.rs:5719` says mesh code reads no other lanes. 4. Is it acceptable to cite another project for techniques re-implemented on XCL's own analysis, or only for copied code? 5. Folded wave64 (`fold.rs`, 1,695 lines) is exact on 32-lane hosts and competes with XCL's split and exchange: a separate issue? 6. Retire `module/split.rs` and the dispatch chain once per-lane coverage allows?
throny commented 2026-11-29 14:52:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T14:52:51Z.


C56 follow-up: the design note is in the comment above. Its main point: XCL already has a per-lane analysis and lowering of its own (XCL_PER_LANE=1, compute only, off by default), so C56 is "measure what it refuses, remove those refusals with the techniques another project uses, add mesh, turn it on" (about 11 stacked PRs), not a port of structure.rs.

What the tracker already says about XCL_PER_LANE=1 on the title, so nobody repeats it:

  • Only measurement: #2647 (RTX 4070 Ti, Linux, an old head): two wave32 compute programs did not finish on the GPU (device lost at about 72 s), two small wave64 ones took 189 and 357 ms a call, 788 builds refused and fell back. Nobody has re-run it on current main.
  • Open correctness bugs: #2458 (bridged V_CMP_* ignore EXEC; #2117 covers only part), #1889 (phi predecessors after an exchange), #1890 (#2037 is conflicting).
  • Open PRs around it: #2341 and #2796 (size caps), #2769 (loop budget), #2182, #2117.

What I do next on the RTX 4080 16 GB, results here and on #505:

  1. The survey over the title's compute programs (xcl shaders ... --direct --lanes --split 1): counts of accepted and refused programs and the refusal reasons by count. This is step 0 of the note and decides the order of the PRs.
  2. One world run of current main with XCL_PER_LANE=1, with XCL_GPU_TIMES, to see whether #2647 still shows and what the accepted programs cost.

People already working on per-lane (from the open PRs): @zondy1i @Saksukella @Decodere; your view on the PR order in the note would help most. Nothing is claimed yet beyond the two measurements.

AI use: Claude Code; Claude Fable 5.2 wrote the design note from a source read and this comment, Claude Sonnet 5.5 collected the tracker status.

<!-- greyfinch-sync:ivall/xcl:comment:7257648654 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7257648654). Originally posted by [throny](https://github.com/throny) on 2026-11-29T14:52:51Z. --- C56 follow-up: the design note is in the comment above. Its main point: XCL already has a per-lane analysis and lowering of its own (`XCL_PER_LANE=1`, compute only, off by default), so C56 is "measure what it refuses, remove those refusals with the techniques another project uses, add mesh, turn it on" (about 11 stacked PRs), not a port of `structure.rs`. What the tracker already says about `XCL_PER_LANE=1` on the title, so nobody repeats it: - Only measurement: #2647 (RTX 4070 Ti, Linux, an old head): two wave32 compute programs did not finish on the GPU (device lost at about 72 s), two small wave64 ones took 189 and 357 ms a call, 788 builds refused and fell back. Nobody has re-run it on current `main`. - Open correctness bugs: #2458 (bridged `V_CMP_*` ignore EXEC; #2117 covers only part), #1889 (phi predecessors after an exchange), #1890 (#2037 is conflicting). - Open PRs around it: #2341 and #2796 (size caps), #2769 (loop budget), #2182, #2117. What I do next on the RTX 4080 16 GB, results here and on #505: 1. The survey over the title's compute programs (`xcl shaders ... --direct --lanes --split 1`): counts of accepted and refused programs and the refusal reasons by count. This is step 0 of the note and decides the order of the PRs. 2. One world run of current `main` with `XCL_PER_LANE=1`, with `XCL_GPU_TIMES`, to see whether #2647 still shows and what the accepted programs cost. People already working on per-lane (from the open PRs): @zondy1i @Saksukella @Decodere; your view on the PR order in the note would help most. Nothing is claimed yet beyond the two measurements. AI use: Claude Code; Claude Fable 5.2 wrote the design note from a source read and this comment, Claude Sonnet 5.5 collected the tracker status.
KDenKC commented 2026-11-29 14:54:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-29T14:54:54Z.


@throny thanks, a clear note. One overlap to settle before anyone writes code: steps 7-8 (a native mesh entry with lane = flat thread id AND (wave-1), refused when mesh_wave::analyze reports a cross-lane need) and C58 are two routes to the same native mesh entry. C58 keeps the split-wave64 exchange inside the native entry, so it also takes programs that do read other lanes, but for now only straight-line ones; your step 7 needs no exchange, but only takes programs with no cross-lane need. They fit together (try the per-lane form first, else the exchange form, else two passes), as long as there is one mesh entry and one fallback order, not two.

A proposal: we add mesh_wave::analyze's verdict to our per-program mesh census line, so one title run says how many of the 327 programs have no cross-lane need (your step 7 takes them as they are) and how many branch (C58's current limit). That number decides whether steps 7-8 or the C58 branch work come first. We'll post it here; until then nobody starts a second mesh entry.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.

<!-- greyfinch-sync:ivall/xcl:comment:7257674354 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7257674354). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-29T14:54:54Z. --- @throny thanks, a clear note. One overlap to settle before anyone writes code: steps 7-8 (a native mesh entry with lane = flat thread id AND (wave-1), refused when `mesh_wave::analyze` reports a cross-lane need) and C58 are two routes to the same native mesh entry. C58 keeps the split-wave64 exchange inside the native entry, so it also takes programs that do read other lanes, but for now only straight-line ones; your step 7 needs no exchange, but only takes programs with no cross-lane need. They fit together (try the per-lane form first, else the exchange form, else two passes), as long as there is one mesh entry and one fallback order, not two. A proposal: we add `mesh_wave::analyze`'s verdict to our per-program mesh census line, so one title run says how many of the 327 programs have no cross-lane need (your step 7 takes them as they are) and how many branch (C58's current limit). That number decides whether steps 7-8 or the C58 branch work come first. We'll post it here; until then nobody starts a second mesh entry. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.
throny commented 2026-11-29 14:57:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T14:57:35Z.


@KDenKC agreed on all of it: one native mesh entry (yours), one fallback order (per-lane form, else the exchange form, else two passes), and steps 7-8 of the note are not started until your census line with the mesh_wave::analyze verdict says how many of the 327 programs need no other lane. If most do not, step 7 becomes a second lowering behind your entry rather than an entry of its own, and I would stack it on your PR. Compute (steps 0-6) does not touch your files, so that part goes ahead independently.

AI use: Claude Code (Claude Fable 5.2) wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7257708757 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7257708757). Originally posted by [throny](https://github.com/throny) on 2026-11-29T14:57:35Z. --- @KDenKC agreed on all of it: one native mesh entry (yours), one fallback order (per-lane form, else the exchange form, else two passes), and steps 7-8 of the note are not started until your census line with the `mesh_wave::analyze` verdict says how many of the 327 programs need no other lane. If most do not, step 7 becomes a second lowering behind your entry rather than an entry of its own, and I would stack it on your PR. Compute (steps 0-6) does not touch your files, so that part goes ahead independently. AI use: Claude Code (Claude Fable 5.2) wrote this.
throny commented 2026-11-29 16:32:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T16:32:23Z.


C57: folded wave64 (two console lanes per host lane) in XCL (design note for #3011)

Sources read: XCL origin/main 0fe06eb0 (paths under crates/xcl/src/); another project 829188e9
(another project/src/, GPL-3.0); another project emit/mod.rs. Nothing was built or run.
[V] = read in source, [I] = inferred.

1. The folded form in another project

It is a machine-code rewrite before their IR: fold::fold (fold.rs:1435) turns a wave64 compute
program into a wave32 program, which then goes through their normal per-lane pipeline
(emit/mod.rs:1401-1493) [V].

  • Who qualifies: only a wave64 compute program on a 32-lane host that the exact wave32 form
    could not take (emit/mod.rs:780-805); switch another project=0 (fold.rs:58) [V].
  • VGPRs: lane t+32's VGPR v is v+N of host lane t, named through a per-instruction base table
    appended to the code (fold.rs:214, 226, 346, 1677-1683) [V].
  • EXEC: kept in a spare SGPR pair E. A run of vector instructions is written twice: under
    EXEC = E.lo on the registers, then under E.hi on the twins (988-1018) [V].
  • Compares, carries, selects: the low copy writes or reads the mask's low dword, the high copy
    its high dword (mask, 317); an implicit VCC becomes the VOP3 form naming vcc_hi (556-584),
    or VCC's dwords are swapped around a DPP/SDWA copy (892, 1593-1598) [V].
  • Run ordering: a store, a v_cmpx or a VCC swap ends its run (961); a copy that writes a
    scalar the other copy reads runs upper-first, and is refused when both do (274-283) [V].
  • Scalar mask code: bitwise _b64 operations split into dwords (733-747, 1266); saveexec
    and wrexec, s_bcnt1, s_ff1 spelled out (1221, 1290, 1306); execz/vccz branches test
    both dwords (1147-1170) [V].
  • DPP, ds_swizzle, v_permlane(x)16: copied per half, since the console keeps them inside a
    32-lane half (456-459, module doc 24-27) [V].
  • readlane / writelane / readfirstlane: the twin that holds the lane; a computed lane reads
    both and selects on bit 5 (1040-1122) [V]. v_mbcnt: the upper half adds the popcount
    of the low dword (593-622) [V].
  • Memory and LDS: each access copied with its own address and data registers
    (memory_copy, 645-730); a store is a run of its own, so lanes 0..31 write before 32..63.
  • Threads: host numthreads is [ceil(T/64)*32, 1, 1] (1463, 1691); the dispatch grid is
    unchanged. A prologue computes both halves' console ids from the flat id (1512-1549); a partial
    last wave gets E from a compare (1553-1557). Because NVIDIA does not give a wave consecutive
    ids in every group, each host wave takes its console base from an LDS counter behind one entry
    group barrier (emit/lower.rs:4373-4431) [V].
  • Derivatives / quads: none; interpolation and exports are refused (531, 1587, 1615) [V].
  • Refused: spilled user-data tables (1442); more than 255 VGPRs (1448); group sides that are
    not powers of two unless 1-D (1460); ds_(b)permute, append/consume, GDS, GWS (666-675);
    buffer loads into LDS, scratch (687, 711); EXEC or VCC as a memory operand (655);
    v_movrel*, calls, indirect jumps (1214-1218, 1587); vccz/execz operands (374, 1329);
    no spare SGPRs (1402); a far branch with SCC live (862) [V].
  • Exactness: the rewrite claims "exactly" (fold.rs:1) and their tests compare bit for bit
    (emit/folded_tests.rs, 18 tests) [V]. Three caveats:
    1. two general faults were found in game one day after those tests passed (copy ordering, lanes
      that come back; docs/wave64-folded.md:173-190) [V];
    2. the wave-wide branch rules (emit/mod.rs:1353-1373, 1464-1489) repair their per-lane
      structuriser, not the fold [V];
    3. when the fold refuses, their ladder goes on to "local waves", marked APPROXIMATE
      (emit/mod.rs:821-838, 1014-1042) [V]. Never port that.
  • another project's "paired" form does the same inside its per-lane lowering, opt-in
    (another project=1), groups of whole console waves up to 1,024 threads
    (emit/mod.rs:1086-1110) [V].

2. XCL today

  • A wave64 compute, mesh first-pass or ES+GS program on a 32-lane adapter is two wave32 halves of
    the console's group (docs/wave64-on-wave32.md; gpu/dxil/kernel.rs:774-781) [V].
  • Control flow is uniform per console wave, masks are (lo, hi) values, EXEC only masks writes
    (gpu/dxil/lower.rs:904-911, lanes.rs:185-205) [V].
  • A ballot read whole, a lane read, ds_bpermute, a coherent scalar load and most LDS accesses
    meet the other half (lanes.rs:242-332, 569-590). Compute and mesh always use the spin form:
    slot store, fence, atomic arrival counter, bounded poll (lanes.rs:328-336) [V].
  • Cost on an RTX 3090: about 1.1x a wave32 run with no exchange, 4.1-4.3x with one
    v_readfirstlane per 8-instruction iteration; a waiting wave keeps issuing (the doc's Cost
    section) [V].
  • Side costs: exchange slots take the top of LDS (lanes.rs:24-34); a spin program above the
    12,500-instruction piece limit stays whole (kernel.rs:805-821); a timed-out pair stops [V].
  • The per-lane path refuses split-wave64 LDS (gpu/recomp/lower_dxil.rs:370-375) [V].

3. How folding fits

Translator: the per-instruction direct DXIL one (gpu/dxil). It already has the execution
model folding needs. another project rewrites machine code only to feed its structuriser; XCL has none
[I]. So: fold inside Lw.

  • A half context: vreg(n) (lower.rs:743) reads a second VGPR bank; lane, lane31, upper,
    half (lower.rs:234-239) are per copy (lane = host rank + 32 x half).
  • Per-lane classes (VALU, vector memory, images) are lowered twice. act(), lanebit and
    v_mbcnt then work unchanged [I].
  • Mask writers evaluate the condition for both halves first, then write once:
    lo = WaveActiveBallot(a).x, hi = WaveActiveBallot(b).x. That removes another project's copy-ordering
    fault class by construction [I]. rla and first_lane (lanes.rs:695, 751) pick the bank.
  • No exchange, no slots, no lds_in_order meetings; s_barrier stays a group barrier.

Form order per program: unchanged for wave32 programs and groups of 32 threads or fewer; then
XCL_PER_LANE if set; then folded; then split-exchange; then HLSL split. Folding refuses
ds_bpermute, relative moves, indirect jumps and anything it has no doubled lowering for.

Dispatch side: numthreads becomes [ceil(T/64)*32, 1, 1], at most 512. Group counts and
indirect arguments do not change, so hle/d3d12x needs no grid change [I]; the existing
dispatch_remap (recomp/emit.rs:4866-4888, real.rs:5245) is HLSL-only and stays out. The
thread hand-out in setup_lanes_compute (lanes.rs:87) takes 64 console threads per host wave.

Instruction-count split: a folded program has no arrival counters, so it may be chained like a
wave32 one, if the chain's saved state carries both banks and the thread base [I]. Its DXIL is
about twice as long, so more programs cross the limit. First version: over the limit, fall back
to split.

Mesh two-pass: the first pass is the same Lw with 128 threads (kernel.rs:129, 780), so it
folds to two host waves. Later PR; mesh_wave.rs only describes requirements (line 3) [V].

Switch: XCL_WAVE64_FOLD=1, in the shader cache identity as XCL_PER_LANE is
(recomp/pso.rs:380).

4. Stacked PRs

Three-way tests run the same program folded, split (KernelOptions.split) and as split HLSL
through prog, runner::run_code, runner::run, with runner::skip_test.

  1. Recompiler: Lw half context and second VGPR bank, no behaviour change. Existing suite.
  2. Recompiler: folded lane primitives in lanes.rs (two-ballot, lane read/write, first lane,
    thread hand-out, partial-wave EXEC). gpu_folded_wave64_cross_half_operations.
  3. Recompiler: instruction driver and refusal list, kernel mode, runner reads 64 lanes from 32
    threads. gpu_folded_wave64_agrees_with_split_and_hlsl over the gpu_split_wave64_* programs.
  4. Recompiler: vector memory and LDS. gpu_folded_wave64_lds_follows_instruction_order,
    gpu_folded_wave64_store_order_across_halves.
  5. Recompiler: compute entry behind XCL_WAVE64_FOLD=1 in direct_compute (pso.rs:1285),
    cache identity. gpu_folded_wave64_waves_diverge (8 x 8 x 4), ..._partial_group. Smoke blocks.
  6. Recompiler: dispatch chain for folded programs. gpu_folded_wave64_chain_matches_whole.
  7. Recompiler: mesh first pass. Test against the split records.
  8. Tests: bench_folded_wave64 (ignored, runner::dispatch_timed) and a [SHADER] count line.
  9. Recompiler: on by default (0 turns it off), README.

Provenance header on lanes.rs additions and a THIRD_PARTY.md row for another project fold.rs
(the v_mbcnt, lane-read and thread-mapping recipes).

5. Risks, gain, open questions

  • Biggest risk: doubled functions on NVIDIA: compile time, register pressure, and whether
    programs that already stay whole above 12,500 instructions still compile [I].
  • another project's form had two faults its tests missed; XCL's three-way test on every existing split
    program is the guard.
  • Stores of one instruction land half by half; conflicting same-instruction writes may differ from
    the console's order (the split form has the same limit) [I].
  • A driver that forms partial host waves in a 1-D group breaks the hand-out; XCL's handles one
    partial wave only (emit.rs:6527-6535) [V].
  • Turning it on invalidates every wave64 compute pipeline's driver cache: one cold rebuild.
  • Gain [I]: folded ALU per console lane is about that of an unexchanged run (their 18.0 vs
    18.3 ms compares folded with a no-exchange form, so it shows folding is nearly free, not a gain
    over exchanges). XCL's bench puts exchange-heavy code at about 75 % exchange time and
    exchange-light code near 10 %. 40 ms single calls point to spin-dominated programs. Estimate:
    30-60 ms of the 93 ms (7-13 % of the frame); floor about 10 ms if the time is ALU after all.
  • Open: (1) exchanges per call of the top ten split programs: measure before PR 3. (2) What
    does a dispatch-chain piece save, and does it scale to two banks? (3) How many of the title's
    wave64 compute programs use ds_bpermute or exceed 255 VGPRs? (4) Is one entry group barrier
    per dispatch acceptable given #1727, or should groups of one console wave skip the hand-out?

Nothing is claimed with this note; it is a proposal for whoever takes C57, and open question 1 (exchanges per call of the top split programs) is a measurement I can make on the RTX 4080.

AI use: Claude Code (Claude Fable 5.2) read the sources and wrote this note.

<!-- greyfinch-sync:ivall/xcl:comment:7258982959 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7258982959). Originally posted by [throny](https://github.com/throny) on 2026-11-29T16:32:23Z. --- # C57: folded wave64 (two console lanes per host lane) in XCL (design note for #3011) Sources read: XCL `origin/main` 0fe06eb0 (paths under `crates/xcl/src/`); another project 829188e9 (`another project/src/`, GPL-3.0); another project `emit/mod.rs`. Nothing was built or run. **[V]** = read in source, **[I]** = inferred. ## 1. The folded form in another project It is a machine-code rewrite before their IR: `fold::fold` (`fold.rs:1435`) turns a wave64 compute program into a wave32 program, which then goes through their normal per-lane pipeline (`emit/mod.rs:1401-1493`) **[V]**. - **Who qualifies**: only a wave64 compute program on a 32-lane host that the exact wave32 form could not take (`emit/mod.rs:780-805`); switch `another project=0` (`fold.rs:58`) **[V]**. - **VGPRs**: lane t+32's VGPR v is v+N of host lane t, named through a per-instruction base table appended to the code (`fold.rs:214, 226, 346, 1677-1683`) **[V]**. - **EXEC**: kept in a spare SGPR pair E. A run of vector instructions is written twice: under EXEC = E.lo on the registers, then under E.hi on the twins (`988-1018`) **[V]**. - **Compares, carries, selects**: the low copy writes or reads the mask's low dword, the high copy its high dword (`mask`, `317`); an implicit VCC becomes the VOP3 form naming `vcc_hi` (`556-584`), or VCC's dwords are swapped around a DPP/SDWA copy (`892`, `1593-1598`) **[V]**. - **Run ordering**: a store, a `v_cmpx` or a VCC swap ends its run (`961`); a copy that writes a scalar the other copy reads runs upper-first, and is refused when both do (`274-283`) **[V]**. - **Scalar mask code**: bitwise `_b64` operations split into dwords (`733-747`, `1266`); saveexec and wrexec, `s_bcnt1`, `s_ff1` spelled out (`1221`, `1290`, `1306`); `execz`/`vccz` branches test both dwords (`1147-1170`) **[V]**. - **DPP, `ds_swizzle`, `v_permlane(x)16`**: copied per half, since the console keeps them inside a 32-lane half (`456-459`, module doc `24-27`) **[V]**. - **readlane / writelane / readfirstlane**: the twin that holds the lane; a computed lane reads both and selects on bit 5 (`1040-1122`) **[V]**. **`v_mbcnt`**: the upper half adds the popcount of the low dword (`593-622`) **[V]**. - **Memory and LDS**: each access copied with its own address and data registers (`memory_copy`, `645-730`); a store is a run of its own, so lanes 0..31 write before 32..63. - **Threads**: host `numthreads` is `[ceil(T/64)*32, 1, 1]` (`1463`, `1691`); the dispatch grid is unchanged. A prologue computes both halves' console ids from the flat id (`1512-1549`); a partial last wave gets E from a compare (`1553-1557`). Because NVIDIA does not give a wave consecutive ids in every group, each host wave takes its console base from an LDS counter behind one entry group barrier (`emit/lower.rs:4373-4431`) **[V]**. - **Derivatives / quads**: none; interpolation and exports are refused (`531`, `1587`, `1615`) **[V]**. - **Refused**: spilled user-data tables (`1442`); more than 255 VGPRs (`1448`); group sides that are not powers of two unless 1-D (`1460`); `ds_(b)permute`, append/consume, GDS, GWS (`666-675`); buffer loads into LDS, scratch (`687`, `711`); EXEC or VCC as a memory operand (`655`); `v_movrel*`, calls, indirect jumps (`1214-1218`, `1587`); `vccz`/`execz` operands (`374`, `1329`); no spare SGPRs (`1402`); a far branch with SCC live (`862`) **[V]**. - **Exactness**: the rewrite claims "exactly" (`fold.rs:1`) and their tests compare bit for bit (`emit/folded_tests.rs`, 18 tests) **[V]**. Three caveats: 1. two general faults were found in game one day after those tests passed (copy ordering, lanes that come back; `docs/wave64-folded.md:173-190`) **[V]**; 2. the wave-wide branch rules (`emit/mod.rs:1353-1373`, `1464-1489`) repair their per-lane structuriser, not the fold **[V]**; 3. when the fold refuses, their ladder goes on to "local waves", marked APPROXIMATE (`emit/mod.rs:821-838`, `1014-1042`) **[V]**. Never port that. - another project's "paired" form does the same inside its per-lane lowering, opt-in (`another project=1`), groups of whole console waves up to 1,024 threads (`emit/mod.rs:1086-1110`) **[V]**. ## 2. XCL today - A wave64 compute, mesh first-pass or ES+GS program on a 32-lane adapter is two wave32 halves of the console's group (`docs/wave64-on-wave32.md`; `gpu/dxil/kernel.rs:774-781`) **[V]**. - Control flow is uniform per console wave, masks are `(lo, hi)` values, EXEC only masks writes (`gpu/dxil/lower.rs:904-911`, `lanes.rs:185-205`) **[V]**. - A ballot read whole, a lane read, `ds_bpermute`, a coherent scalar load and most LDS accesses meet the other half (`lanes.rs:242-332`, `569-590`). Compute and mesh always use the spin form: slot store, fence, atomic arrival counter, bounded poll (`lanes.rs:328-336`) **[V]**. - Cost on an RTX 3090: about 1.1x a wave32 run with no exchange, 4.1-4.3x with one `v_readfirstlane` per 8-instruction iteration; a waiting wave keeps issuing (the doc's Cost section) **[V]**. - Side costs: exchange slots take the top of LDS (`lanes.rs:24-34`); a spin program above the 12,500-instruction piece limit stays whole (`kernel.rs:805-821`); a timed-out pair stops **[V]**. - The per-lane path refuses split-wave64 LDS (`gpu/recomp/lower_dxil.rs:370-375`) **[V]**. ## 3. How folding fits **Translator: the per-instruction direct DXIL one (`gpu/dxil`).** It already has the execution model folding needs. another project rewrites machine code only to feed its structuriser; XCL has none **[I]**. So: fold inside `Lw`. - A half context: `vreg(n)` (`lower.rs:743`) reads a second VGPR bank; `lane`, `lane31`, `upper`, `half` (`lower.rs:234-239`) are per copy (lane = host rank + 32 x half). - Per-lane classes (VALU, vector memory, images) are lowered twice. `act()`, `lanebit` and `v_mbcnt` then work unchanged **[I]**. - Mask writers evaluate the condition for both halves first, then write once: `lo = WaveActiveBallot(a).x`, `hi = WaveActiveBallot(b).x`. That removes another project's copy-ordering fault class by construction **[I]**. `rla` and `first_lane` (`lanes.rs:695`, `751`) pick the bank. - No exchange, no slots, no `lds_in_order` meetings; `s_barrier` stays a group barrier. **Form order per program**: unchanged for wave32 programs and groups of 32 threads or fewer; then `XCL_PER_LANE` if set; then folded; then split-exchange; then HLSL split. Folding refuses `ds_bpermute`, relative moves, indirect jumps and anything it has no doubled lowering for. **Dispatch side**: `numthreads` becomes `[ceil(T/64)*32, 1, 1]`, at most 512. Group counts and indirect arguments do not change, so `hle/d3d12x` needs no grid change **[I]**; the existing `dispatch_remap` (`recomp/emit.rs:4866-4888`, `real.rs:5245`) is HLSL-only and stays out. The thread hand-out in `setup_lanes_compute` (`lanes.rs:87`) takes 64 console threads per host wave. **Instruction-count split**: a folded program has no arrival counters, so it may be chained like a wave32 one, if the chain's saved state carries both banks and the thread base **[I]**. Its DXIL is about twice as long, so more programs cross the limit. First version: over the limit, fall back to split. **Mesh two-pass**: the first pass is the same `Lw` with 128 threads (`kernel.rs:129`, `780`), so it folds to two host waves. Later PR; `mesh_wave.rs` only describes requirements (line 3) **[V]**. Switch: **`XCL_WAVE64_FOLD=1`**, in the shader cache identity as `XCL_PER_LANE` is (`recomp/pso.rs:380`). ## 4. Stacked PRs Three-way tests run the same program folded, split (`KernelOptions.split`) and as split HLSL through `prog`, `runner::run_code`, `runner::run`, with `runner::skip_test`. 1. **Recompiler**: `Lw` half context and second VGPR bank, no behaviour change. Existing suite. 2. **Recompiler**: folded lane primitives in `lanes.rs` (two-ballot, lane read/write, first lane, thread hand-out, partial-wave EXEC). `gpu_folded_wave64_cross_half_operations`. 3. **Recompiler**: instruction driver and refusal list, kernel mode, runner reads 64 lanes from 32 threads. `gpu_folded_wave64_agrees_with_split_and_hlsl` over the `gpu_split_wave64_*` programs. 4. **Recompiler**: vector memory and LDS. `gpu_folded_wave64_lds_follows_instruction_order`, `gpu_folded_wave64_store_order_across_halves`. 5. **Recompiler**: compute entry behind `XCL_WAVE64_FOLD=1` in `direct_compute` (`pso.rs:1285`), cache identity. `gpu_folded_wave64_waves_diverge` (8 x 8 x 4), `..._partial_group`. Smoke blocks. 6. **Recompiler**: dispatch chain for folded programs. `gpu_folded_wave64_chain_matches_whole`. 7. **Recompiler**: mesh first pass. Test against the split records. 8. **Tests**: `bench_folded_wave64` (ignored, `runner::dispatch_timed`) and a `[SHADER]` count line. 9. **Recompiler**: on by default (`0` turns it off), README. Provenance header on `lanes.rs` additions and a `THIRD_PARTY.md` row for another project `fold.rs` (the `v_mbcnt`, lane-read and thread-mapping recipes). ## 5. Risks, gain, open questions - **Biggest risk**: doubled functions on NVIDIA: compile time, register pressure, and whether programs that already stay whole above 12,500 instructions still compile **[I]**. - another project's form had two faults its tests missed; XCL's three-way test on every existing split program is the guard. - Stores of one instruction land half by half; conflicting same-instruction writes may differ from the console's order (the split form has the same limit) **[I]**. - A driver that forms partial host waves in a 1-D group breaks the hand-out; XCL's handles one partial wave only (`emit.rs:6527-6535`) **[V]**. - Turning it on invalidates every wave64 compute pipeline's driver cache: one cold rebuild. - **Gain [I]**: folded ALU per console lane is about that of an unexchanged run (their 18.0 vs 18.3 ms compares folded with a no-exchange form, so it shows folding is nearly free, not a gain over exchanges). XCL's bench puts exchange-heavy code at about 75 % exchange time and exchange-light code near 10 %. 40 ms single calls point to spin-dominated programs. Estimate: 30-60 ms of the 93 ms (7-13 % of the frame); floor about 10 ms if the time is ALU after all. - **Open**: (1) exchanges per call of the top ten split programs: measure before PR 3. (2) What does a dispatch-chain piece save, and does it scale to two banks? (3) How many of the title's wave64 compute programs use `ds_bpermute` or exceed 255 VGPRs? (4) Is one entry group barrier per dispatch acceptable given #1727, or should groups of one console wave skip the hand-out? Nothing is claimed with this note; it is a proposal for whoever takes C57, and open question 1 (exchanges per call of the top split programs) is a measurement I can make on the RTX 4080. AI use: Claude Code (Claude Fable 5.2) read the sources and wrote this note.
KDenKC commented 2026-11-29 16:35:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-29T16:35:32Z.


@throny one note on C57 from the mesh side: the folded form looks like the better long-term shape for the native 128-thread mesh entry too, not only for the two-pass first pass (your step 7). C58's current entry runs each console wave64 as two wave32 halves with an exchange, which is why it needs a group barrier at every meeting and why it takes straight-line programs only (a divergent branch could leave the halves at different meetings). Folded, a 128-thread group is 64 host threads, both halves of a console lane live in one host lane, and there are no meetings to keep uniform, so that limit goes away.

So no change to your order from us: once steps 1-4 are in, a folded native mesh entry is a small step on top of our entry (the same SetMeshOutputCounts, slot-6 X/Y and fallback order; each host lane writes its two console lanes' outputs), and we'd take that slice then, stacked on your folded primitives. Until then we keep the exchange form behind the straight-line check.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.

<!-- greyfinch-sync:ivall/xcl:comment:7259024169 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7259024169). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-29T16:35:32Z. --- @throny one note on C57 from the mesh side: the folded form looks like the better long-term shape for the native 128-thread mesh entry too, not only for the two-pass first pass (your step 7). C58's current entry runs each console wave64 as two wave32 halves with an exchange, which is why it needs a group barrier at every meeting and why it takes straight-line programs only (a divergent branch could leave the halves at different meetings). Folded, a 128-thread group is 64 host threads, both halves of a console lane live in one host lane, and there are no meetings to keep uniform, so that limit goes away. So no change to your order from us: once steps 1-4 are in, a folded native mesh entry is a small step on top of our entry (the same `SetMeshOutputCounts`, slot-6 X/Y and fallback order; each host lane writes its two console lanes' outputs), and we'd take that slice then, stacked on your folded primitives. Until then we keep the exchange form behind the straight-line check. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.
throny commented 2026-11-29 16:39:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T16:39:44Z.


C61 detail (CPU side of a frame), from a read of main 7a649b0e and one world-run log on the RTX 4080 16 GB / i9-12900K. Nothing here was profiled; [V] seen in code or log, [I] inferred. Not urgent while the GPU side is the limit, but written down so nobody has to redo the read.

Per title dispatch [V] (bind.rs bind_abi_with_root_resolved): three arena allocations, a clone of the argument vector plus two vectors for io, AddRef/Release on root signature and pipeline, and always SetComputeRootSignature, all six root UAVs and SetPipelineState, although only views 0 and 1 change between dispatches. Draws take the same path plus a list AddRef and one more state lock.

Per submit [V]: the write-watch look takes the global REFRESH lock and calls GetWriteWatch with reset (1.62 ms a look, about 18 submits a frame, about 29 ms); the background look-ahead finds nothing, so it cannot simply move off the thread. The gate hold in sparse.rs is the sparse uploads and tile mappings of that submit itself (wait 0).

Global locks on the hot path [V]: LISTS (every resolved draw and dispatch), CHAINS / RECORDINGS / SHARED in dispatch_chain.rs, the alloc pool STATE. Each is held briefly; recording is probably parallel with moderate contention [I].

Changes, by expected value [I]:

  1. Skip unchanged root signature, pipeline and views 2 to 5 per list, invalidated on title sets, Reset, bundles and chains (as another project's draw.rs bind() does): about 200 lines, 20 to 40 ms per frame.
  2. Fewer allocations per dispatch (arguments written straight into the arena, io as an array, borrow instead of AddRef): about 100 lines, 10 to 20 ms.
  3. Keep LISTS out of draws and dispatches (a generation pin into STATES): about 150 lines, contention only.
  4. Fewer write-watch calls through XCL_WATCH_GAP_MB: an env change to measure, up to about 10 ms.
  5. Joined submissions and worker-translated lists: redesigns.

One correction to my earlier reading on #505: the scratch pooling I tried (one slab per chained dispatch) is a CPU and memory matter, not a GPU one; the GPU frame did not change with it.

AI use: Claude Code; Claude Opus 5.5 read the code and the log, Claude Fable 5.2 wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7259079022 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7259079022). Originally posted by [throny](https://github.com/throny) on 2026-11-29T16:39:44Z. --- C61 detail (CPU side of a frame), from a read of `main` `7a649b0e` and one world-run log on the RTX 4080 16 GB / i9-12900K. Nothing here was profiled; [V] seen in code or log, [I] inferred. Not urgent while the GPU side is the limit, but written down so nobody has to redo the read. **Per title dispatch** [V] (`bind.rs` `bind_abi_with_root_resolved`): three arena allocations, a clone of the argument vector plus two vectors for io, AddRef/Release on root signature and pipeline, and always `SetComputeRootSignature`, all six root UAVs and `SetPipelineState`, although only views 0 and 1 change between dispatches. Draws take the same path plus a list AddRef and one more state lock. **Per submit** [V]: the write-watch look takes the global `REFRESH` lock and calls `GetWriteWatch` with reset (1.62 ms a look, about 18 submits a frame, about 29 ms); the background look-ahead finds nothing, so it cannot simply move off the thread. The gate hold in `sparse.rs` is the sparse uploads and tile mappings of that submit itself (wait 0). **Global locks on the hot path** [V]: `LISTS` (every resolved draw and dispatch), `CHAINS` / `RECORDINGS` / `SHARED` in `dispatch_chain.rs`, the alloc pool `STATE`. Each is held briefly; recording is probably parallel with moderate contention [I]. **Changes, by expected value** [I]: 1. Skip unchanged root signature, pipeline and views 2 to 5 per list, invalidated on title sets, Reset, bundles and chains (as another project's `draw.rs` `bind()` does): about 200 lines, 20 to 40 ms per frame. 2. Fewer allocations per dispatch (arguments written straight into the arena, io as an array, borrow instead of AddRef): about 100 lines, 10 to 20 ms. 3. Keep `LISTS` out of draws and dispatches (a generation pin into `STATES`): about 150 lines, contention only. 4. Fewer write-watch calls through `XCL_WATCH_GAP_MB`: an env change to measure, up to about 10 ms. 5. Joined submissions and worker-translated lists: redesigns. One correction to my earlier reading on #505: the scratch pooling I tried (one slab per chained dispatch) is a CPU and memory matter, not a GPU one; the GPU frame did not change with it. AI use: Claude Code; Claude Opus 5.5 read the code and the log, Claude Fable 5.2 wrote this.
KDenKC commented 2026-11-29 17:48:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-29T17:48:00Z.


@throny the census count we owed you (RTX 5090, our integration build on main 3b6a91ed, one census line per mesh program, 198 distinct programs seen in this run so far):

  • every one is 128 threads / 128 vertices / 128 primitives / wave64 and reads the group index;
  • mesh_wave::analyze: cross-lane need in all 198 (lane reads 4-42, saveexec 2-33, whole-mask branches 6-60; the commonest shape is lane reads 5-9, saveexec 2, branches 9-19), and branches in all 198. Programs with neither: 0.

So your step 7 as written (per-lane, refused on any cross-lane need) would take none of them, and neither does C58's current exchange entry: with the switch on, the native check put all 198 on two passes, 116 for 'control flow may diverge across the group' and 82 for an output signature our native entry doesn't support yet. 0 native draws in the run.

What that means for the order: native mesh for this title needs either a uniformity proof for these branches (most look like tid < count guards and culling, which C56's per-lane form removes) or the folded form from C57, where the halves never meet. Both are on your side of the split, so C58 waits for them; we'll take the output-signature gap (the 82) in the meantime, since that one is ours either way.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.

<!-- greyfinch-sync:ivall/xcl:comment:7259973914 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7259973914). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-29T17:48:00Z. --- @throny the census count we owed you (RTX 5090, our integration build on `main` 3b6a91ed, one census line per mesh program, 198 distinct programs seen in this run so far): - every one is 128 threads / 128 vertices / 128 primitives / wave64 and reads the group index; - `mesh_wave::analyze`: **cross-lane need in all 198** (lane reads 4-42, saveexec 2-33, whole-mask branches 6-60; the commonest shape is lane reads 5-9, saveexec 2, branches 9-19), and **branches in all 198**. Programs with neither: **0**. So your step 7 as written (per-lane, refused on any cross-lane need) would take none of them, and neither does C58's current exchange entry: with the switch on, the native check put all 198 on two passes, 116 for 'control flow may diverge across the group' and 82 for an output signature our native entry doesn't support yet. 0 native draws in the run. What that means for the order: native mesh for this title needs either a uniformity proof for these branches (most look like `tid < count` guards and culling, which C56's per-lane form removes) or the folded form from C57, where the halves never meet. Both are on your side of the split, so C58 waits for them; we'll take the output-signature gap (the 82) in the meantime, since that one is ours either way. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.
throny commented 2026-11-29 17:51:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T17:51:13Z.


@KDenKC thanks, that settles the order: with cross-lane need and branches in all 198, C57 (folded) is the shorter road to native mesh for this title, and it is the one that is furthest along here. Status of C57, all local so far (RTX 4080 16 GB, 621.40; nothing pushed yet, each step goes up as its own PR once the whole suite and the smoke runs are done):

  • Step 1 (half context and second VGPR bank in Lw, no behaviour change): written, independently reviewed, emitted DXIL identical for 90 containers before and after.
  • Step 2 (folded lane primitives: thread hand-out for a 1-D host group, two-ballot mask write, lane read / first lane / write, v_mbcnt): written, independently reviewed; gpu_folded_wave64_cross_half_operations passes on the 4080 for groups of 128, 104 and 80 threads and 8x8x2, against a 64-lane model.
  • Step 3 (instruction driver, kernel entry in tests only): VALU, compares, selects, carries, scalar and mask code, readlane / writelane / readfirstlane / v_mbcnt run folded; nine of the existing split test programs agree three ways (folded, split, HLSL). Refused for now: all memory and LDS, DPP, permlane, relative moves, exports, barriers.
  • Next: step 4 (vector memory and LDS), then the compute entry behind XCL_WAVE64_FOLD=1, then the mesh first pass. For your native entry the relevant part is that a folded 128-thread mesh program is two host waves of 32 with no exchange between halves; I will say here when step 3's driver is in a state you can call from your entry.

One caveat from the reference: another project found two general faults in its fold a day after its bit-for-bit tests passed (copy ordering, lanes that come back), so I keep the three-way test on every existing split program as the gate, and nothing approximate is ported.

AI use: Claude Code; Claude Fable 5.2 agents wrote the three steps and this status, Claude Opus 5.5 reviewed steps 1 and 2.

<!-- greyfinch-sync:ivall/xcl:comment:7260014284 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7260014284). Originally posted by [throny](https://github.com/throny) on 2026-11-29T17:51:13Z. --- @KDenKC thanks, that settles the order: with cross-lane need and branches in all 198, C57 (folded) is the shorter road to native mesh for this title, and it is the one that is furthest along here. Status of C57, all local so far (RTX 4080 16 GB, 621.40; nothing pushed yet, each step goes up as its own PR once the whole suite and the smoke runs are done): - **Step 1** (half context and second VGPR bank in `Lw`, no behaviour change): written, independently reviewed, emitted DXIL identical for 90 containers before and after. - **Step 2** (folded lane primitives: thread hand-out for a 1-D host group, two-ballot mask write, lane read / first lane / write, `v_mbcnt`): written, independently reviewed; `gpu_folded_wave64_cross_half_operations` passes on the 4080 for groups of 128, 104 and 80 threads and 8x8x2, against a 64-lane model. - **Step 3** (instruction driver, kernel entry in tests only): VALU, compares, selects, carries, scalar and mask code, readlane / writelane / readfirstlane / `v_mbcnt` run folded; nine of the existing split test programs agree three ways (folded, split, HLSL). Refused for now: all memory and LDS, DPP, permlane, relative moves, exports, barriers. - **Next:** step 4 (vector memory and LDS), then the compute entry behind `XCL_WAVE64_FOLD=1`, then the mesh first pass. For your native entry the relevant part is that a folded 128-thread mesh program is two host waves of 32 with no exchange between halves; I will say here when step 3's driver is in a state you can call from your entry. One caveat from the reference: another project found two general faults in its fold a day after its bit-for-bit tests passed (copy ordering, lanes that come back), so I keep the three-way test on every existing split program as the gate, and nothing approximate is ported. AI use: Claude Code; Claude Fable 5.2 agents wrote the three steps and this status, Claude Opus 5.5 reviewed steps 1 and 2.
throny commented 2026-11-29 22:22:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T22:22:06Z.


C57 first title run (local; RTX 4080 16 GB, 621.40): main 0fe06eb0 + #3192 + #3124's change + a local input-timing patch + fold steps 1-5, XCL_WAVE64_FOLD=1, 900 s, startup preparation off:

  • Reached the world, ran to the end, no device removal, no crash, 2.28 presents/s (the same build without the fold: 2.13 to 2.28 in four runs). Picture comparable to those runs.
  • compute fold: 65 wave64 compute programs folded, 447 refused. Refusal reasons by count (each line once per program): images 159 (image_load 76, image_gather4_lz 53, image_sample_lz 30), s_setreg of a mode register 59, s_barrier 31, over the piece limit 29, others fewer.

So the form works in the title but takes only about one program in eight so far, and nothing measurable changes yet. The order for the next steps follows from the counts: images first (they are per lane, so they double like vector memory), then s_setreg (scalar, once per wave), then s_barrier (a group barrier stays a group barrier in the folded form, as long as both halves reach it together, which is the case by construction). @KDenKC for your mesh entry the same three apply.

AI use: Claude Code; Claude Fable 5.2 agents wrote the steps, Claude Opus 5.5 ran this and wrote it.

<!-- greyfinch-sync:ivall/xcl:comment:7263617083 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7263617083). Originally posted by [throny](https://github.com/throny) on 2026-11-29T22:22:06Z. --- C57 first title run (local; RTX 4080 16 GB, 621.40): `main` `0fe06eb0` + #3192 + #3124's change + a local input-timing patch + fold steps 1-5, `XCL_WAVE64_FOLD=1`, 900 s, startup preparation off: - Reached the world, ran to the end, no device removal, no crash, 2.28 presents/s (the same build without the fold: 2.13 to 2.28 in four runs). Picture comparable to those runs. - `compute fold: 65 wave64 compute programs folded, 447 refused`. Refusal reasons by count (each line once per program): images 159 (`image_load` 76, `image_gather4_lz` 53, `image_sample_lz` 30), `s_setreg` of a mode register 59, `s_barrier` 31, over the piece limit 29, others fewer. So the form works in the title but takes only about one program in eight so far, and nothing measurable changes yet. The order for the next steps follows from the counts: images first (they are per lane, so they double like vector memory), then `s_setreg` (scalar, once per wave), then `s_barrier` (a group barrier stays a group barrier in the folded form, as long as both halves reach it together, which is the case by construction). @KDenKC for your mesh entry the same three apply. AI use: Claude Code; Claude Fable 5.2 agents wrote the steps, Claude Opus 5.5 ran this and wrote it.
throny commented 2026-11-29 23:06:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T23:06:08Z.


C57 update (local, RTX 4080 16 GB, 621.40; nothing pushed yet, all steps independently reviewed or in review):

  • Step 6 (images, s_setreg / s_round_mode, s_barrier where every wave of the group provably reaches it): title run with XCL_WAVE64_FOLD=1, 900 s, no removal: 234 of 512 wave64 compute programs folded (step 5 alone: 65). 2.16 presents/s, unchanged: the programs folded so far are not the expensive ones.
  • Remaining refusals by count: over the piece limit 81, ds_swizzle 76, s_barrier in groups of several waves with loops or branches 44, memory atomics 40, LDS atomics 33, DPP about 25.
  • Step 7, in progress now: a folded program over the piece limit is chained like a wave32 one (both banks' live state carried across cuts, the folded hand-out recomputed per piece) instead of falling back to split. Those 81 programs are where the compute time is (#2088's figure: programs of 512 KiB and more carry about 95 % of the driver work), so this is the step that can move the frame rate. Results here after its title run.

Stack order for PRs once each has its suite and smoke runs: steps 1, 2, 3 (driver), 3 (three-way test), 4, 5, 6, 7. @KDenKC step 3's driver is the base your mesh entry can stack on; I will post its PR number here.

AI use: Claude Code; Claude Fable 5.2 agents write the steps, Claude Opus 5.5 reviews, ran the title runs and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7264196630 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7264196630). Originally posted by [throny](https://github.com/throny) on 2026-11-29T23:06:08Z. --- C57 update (local, RTX 4080 16 GB, 621.40; nothing pushed yet, all steps independently reviewed or in review): - **Step 6** (images, `s_setreg` / `s_round_mode`, `s_barrier` where every wave of the group provably reaches it): title run with `XCL_WAVE64_FOLD=1`, 900 s, no removal: **234 of 512** wave64 compute programs folded (step 5 alone: 65). 2.16 presents/s, unchanged: the programs folded so far are not the expensive ones. - Remaining refusals by count: over the piece limit 81, `ds_swizzle` 76, `s_barrier` in groups of several waves with loops or branches 44, memory atomics 40, LDS atomics 33, DPP about 25. - **Step 7, in progress now:** a folded program over the piece limit is chained like a wave32 one (both banks' live state carried across cuts, the folded hand-out recomputed per piece) instead of falling back to split. Those 81 programs are where the compute time is (#2088's figure: programs of 512 KiB and more carry about 95 % of the driver work), so this is the step that can move the frame rate. Results here after its title run. Stack order for PRs once each has its suite and smoke runs: steps 1, 2, 3 (driver), 3 (three-way test), 4, 5, 6, 7. @KDenKC step 3's driver is the base your mesh entry can stack on; I will post its PR number here. AI use: Claude Code; Claude Fable 5.2 agents write the steps, Claude Opus 5.5 reviews, ran the title runs and wrote this.
throny commented 2026-11-29 23:39:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T23:39:17Z.


New candidates from the other project line (commits read, nothing built or run; numbers are the commit messages' own):

C62. another project 05d1c564 — wave64 compute programs are folded before the wave-wide and approximate forms, and folding is the last resort when it is off. Message: from an empty cache about 120 programs took other forms, 3 had no form at all and their dispatches were dropped (foliage flicker). Follows 5c262d7b. 41 lines, another project emit/mod.rs, fold.rs. For XCL: the form order of C57 (folded before split-exchange) and never dropping a dispatch for lack of a form.

C63. another project 32b38669 — the preload no longer trusts a short used-pipeline list: a 5-line list made it warm 1 pipeline of 60,672; now it warms all 88,563. About 43 lines. For XCL: the startup preparation's "earlier used shaders" list (#2088) should not shrink preparation to almost nothing when the list is short or stale.

C64. another project 4ffb47bb — aliasing of transient render targets off by default, depth colour twins made eagerly; fixes block artifacts. 19 lines. For XCL: compare with our placement and alias handling (XCL_PLACE_RETIRE, XCL_DEPTH_UAV_TWIN), relevant to the wrong / dark picture on #505.

C65. another project d7c2d8a7 — more dynamic descriptor slots on a capped host; before, up to 1,900 draws were dropped in 5 s (see-through patches, ghosting). 17 lines. Port the idea (size the pool from the title's needs, count dropped draws), not their number.

C66. another project c506066 — DXR: a copied acceleration-structure recipe takes the copy's destination instead of keeping the source's, and the wanted set is cleared on overwrite. 15 lines. For XCL: worth a look at how copied structures are tracked (the dark-picture question).

C67. another project 36c23d49 — copies under 1 KiB with SSE2 moves instead of rep movsb: 64 B 1.4 to 4.8 GB/s, 256 B 3.1 to 12.4 GB/s (Ryzen 3700X). 71 lines. For XCL: small CPU-side copies on the submit path (C61).

AI use: Claude Code; Claude Haiku 5.5 read the commits, Claude Opus 5.5 checked the summary and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7264624169 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7264624169). Originally posted by [throny](https://github.com/throny) on 2026-11-29T23:39:17Z. --- New candidates from the other project line (commits read, nothing built or run; numbers are the commit messages' own): **C62. another project `05d1c564`** — wave64 compute programs are folded before the wave-wide and approximate forms, and folding is the last resort when it is off. Message: from an empty cache about 120 programs took other forms, 3 had no form at all and their dispatches were dropped (foliage flicker). Follows `5c262d7b`. 41 lines, `another project` `emit/mod.rs`, `fold.rs`. For XCL: the form order of C57 (folded before split-exchange) and never dropping a dispatch for lack of a form. **C63. another project `32b38669`** — the preload no longer trusts a short used-pipeline list: a 5-line list made it warm 1 pipeline of 60,672; now it warms all 88,563. About 43 lines. For XCL: the startup preparation's "earlier used shaders" list (#2088) should not shrink preparation to almost nothing when the list is short or stale. **C64. another project `4ffb47bb`** — aliasing of transient render targets off by default, depth colour twins made eagerly; fixes block artifacts. 19 lines. For XCL: compare with our placement and alias handling (`XCL_PLACE_RETIRE`, `XCL_DEPTH_UAV_TWIN`), relevant to the wrong / dark picture on #505. **C65. another project `d7c2d8a7`** — more dynamic descriptor slots on a capped host; before, up to 1,900 draws were dropped in 5 s (see-through patches, ghosting). 17 lines. Port the idea (size the pool from the title's needs, count dropped draws), not their number. **C66. another project `c506066`** — DXR: a copied acceleration-structure recipe takes the copy's destination instead of keeping the source's, and the wanted set is cleared on overwrite. 15 lines. For XCL: worth a look at how copied structures are tracked (the dark-picture question). **C67. another project `36c23d49`** — copies under 1 KiB with SSE2 moves instead of `rep movsb`: 64 B 1.4 to 4.8 GB/s, 256 B 3.1 to 12.4 GB/s (Ryzen 3700X). 71 lines. For XCL: small CPU-side copies on the submit path (C61). AI use: Claude Code; Claude Haiku 5.5 read the commits, Claude Opus 5.5 checked the summary and wrote this.
UncommonDLL commented 2026-11-29 23:52:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by UncommonDLL on 2026-11-29T23:52:20Z.


C35 follow-up: we extended the CPU characterization on main 5b0d5fa3d65d9aa61567f8603154d818a9307846 to connect a serialized root UAV to a complete translated shader footprint.

The fixture uses XCL's actual root-layout decoder, argument preparation and existing pipeline metadata test seam. The FSPX interface parser supplies six user SGPRs, and the prepared ABI places the root address A in s4:s5. No native PSO is created.

The synthetic program reads four bytes at A and A+65,536, then writes their XOR at A+4. These are its only guest-data accesses: 12 distinct bytes within a declared 65,540-byte range. Both required tiles have committed CPU backing.

With XCL_VIEW_REACH_MB=0 in the configured 16-window layout, the actual root-view request queues only the first tile. No placement, sized descriptor, table entry or earlier request supplies the second tile in this isolated composition. Placed resources already have a separate Width-based request, so this should not be generalized to every binding.

The existing FSPX-to-HLSL translation route produced a 4,168-byte DXIL container. Native DXC/DXIL 1.8.2502.11 validation passed, and a malformed 64-byte negative control was rejected. The final DXIL retains both loads feeding the store. One exact CPU test passed with zero runtime skips. This characterizes the current request shortfall, rather than demonstrating a fix.

The shader specifies WaveSize 64 and one thread per group. Native PSO binding, GPU residency, copying, readback and retail behavior were not tested.

I would keep exact resource or proven shader-footprint requests separate from unknown-length reach hints. A larger generic default does not establish the missing extent contract, and reservation size alone does not identify logical resource bounds. This result is offered as regression evidence rather than a competing port or production change. #3096, #3097 and #3443 remain distinct related work.

AI assistance: ChatGPT Work/Codex implemented and verified the CPU fixture. Claude Opus independently reviewed the qualification. Gemini's earlier API-contract and upstream-overlap review was reused.

<!-- greyfinch-sync:ivall/xcl:comment:7264789220 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7264789220). Originally posted by [UncommonDLL](https://github.com/UncommonDLL) on 2026-11-29T23:52:20Z. --- C35 follow-up: we extended the CPU characterization on main `5b0d5fa3d65d9aa61567f8603154d818a9307846` to connect a serialized root UAV to a complete translated shader footprint. The fixture uses XCL's actual root-layout decoder, argument preparation and existing pipeline metadata test seam. The FSPX interface parser supplies six user SGPRs, and the prepared ABI places the root address A in s4:s5. No native PSO is created. The synthetic program reads four bytes at A and A+65,536, then writes their XOR at A+4. These are its only guest-data accesses: 12 distinct bytes within a declared 65,540-byte range. Both required tiles have committed CPU backing. With `XCL_VIEW_REACH_MB=0` in the configured 16-window layout, the actual root-view request queues only the first tile. No placement, sized descriptor, table entry or earlier request supplies the second tile in this isolated composition. Placed resources already have a separate Width-based request, so this should not be generalized to every binding. The existing FSPX-to-HLSL translation route produced a 4,168-byte DXIL container. Native DXC/DXIL 1.8.2502.11 validation passed, and a malformed 64-byte negative control was rejected. The final DXIL retains both loads feeding the store. One exact CPU test passed with zero runtime skips. This characterizes the current request shortfall, rather than demonstrating a fix. The shader specifies WaveSize 64 and one thread per group. Native PSO binding, GPU residency, copying, readback and retail behavior were not tested. I would keep exact resource or proven shader-footprint requests separate from unknown-length reach hints. A larger generic default does not establish the missing extent contract, and reservation size alone does not identify logical resource bounds. This result is offered as regression evidence rather than a competing port or production change. #3096, #3097 and #3443 remain distinct related work. AI assistance: ChatGPT Work/Codex implemented and verified the CPU fixture. Claude Opus independently reviewed the qualification. Gemini's earlier API-contract and upstream-overlap review was reused.
claudetools-gh commented 2026-11-30 02:15:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by claudetools-gh on 2026-11-30T02:15:45Z.


@throny a data point for C56 ("measure what it refuses"): XCL_PER_LANE=1 on current main, retail title, RTX 5070 Ti (621.40). It ran stable: no crash and no device removal over 30 min. The lit prologue cell renders the same as without it.

  • Tree: main 1bd9cee1, plus the lit-interior stack from #505 (XCL_UMA_WINDOWS=16, XCL_CS_PSO_WAIT_MS=0, XCL_ALIAS_COPY=1 with the download fix, depth UAV twins, etc.).
  • XCL_GPU_TIMES=8, same scene and camera as a run without per-lane on a slightly older main (7a649b0e).

GPU time per frame, top programs (ms):

program form without with XCL_PER_LANE=1
cs 54bda9a6 wave32 164 25
cs 21d71658 wave32, 231 calls/frame 111 24
cs 027daf6e wave64 split in halves 279 256
mesh two-pass 8878592c 99 113
cs 8a9fd938 wave64 split 64 not in the top 8
  • The top 8 sum to about 817 ms without per-lane and about 507 ms with it.
  • "Present took … in the driver" goes from 670–1056 ms to 547 ms.
  • presents/s only goes from 1.09 to 1.20: what is left is the wave64-split program (256 ms) and the two-pass mesh (113 ms), which is C57/C58's ground.

Refusals ("per-lane fallback reason=…"), 920 in the run, by reason:

reason count
unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's) 264
split wave64 LDS access needs the HLSL path 177
unsupported IMAGE_SAMPLE_L (reads a register the per-lane form did not pass) 157
unsupported IMAGE_LOAD (same) 70
unsupported IMAGE_SAMPLE_LZ (same) 54
unsupported IMAGE_STORE (same) 31
V_PERMLANEX16_B32: VOP3 modifiers 19
s_barrier: the lanes past a dispatch's thread limit leave at the start 15

So the first two removals with the most reach look like V_CVT_F16_F32's semantics and the image ops' register passing (the four IMAGE_* rows together are 312).

One run, one scene, so take the ms as a ranking. Not tested: AMD, other scenes.
AI use: Claude Code with Claude Opus 5.5 ran it and wrote this. Counts only; no game data posted. AI-assisted.

<!-- greyfinch-sync:ivall/xcl:comment:7266849811 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7266849811). Originally posted by [claudetools-gh](https://github.com/claudetools-gh) on 2026-11-30T02:15:45Z. --- @throny a data point for C56 ("measure what it refuses"): **`XCL_PER_LANE=1` on current `main`, retail title, RTX 5070 Ti (621.40).** It ran stable: no crash and no device removal over 30 min. The lit prologue cell renders the same as without it. - Tree: `main` 1bd9cee1, plus the lit-interior stack from #505 (`XCL_UMA_WINDOWS=16`, `XCL_CS_PSO_WAIT_MS=0`, `XCL_ALIAS_COPY=1` with the download fix, depth UAV twins, etc.). - `XCL_GPU_TIMES=8`, same scene and camera as a run without per-lane on a slightly older `main` (7a649b0e). **GPU time per frame, top programs (ms):** | program | form | without | with `XCL_PER_LANE=1` | |---|---|---|---| | cs 54bda9a6 | wave32 | 164 | **25** | | cs 21d71658 | wave32, 231 calls/frame | 111 | **24** | | cs 027daf6e | wave64 split in halves | 279 | 256 | | mesh two-pass 8878592c | | 99 | 113 | | cs 8a9fd938 | wave64 split | 64 | not in the top 8 | - The top 8 sum to about 817 ms without per-lane and about 507 ms with it. - "Present took … in the driver" goes from 670–1056 ms to 547 ms. - presents/s only goes from 1.09 to 1.20: what is left is the wave64-split program (256 ms) and the two-pass mesh (113 ms), which is C57/C58's ground. **Refusals** ("per-lane fallback reason=…"), 920 in the run, by reason: | reason | count | |---|---| | unsupported `V_CVT_F16_F32` (its #1426 semantics differ from the console's) | 264 | | split wave64 LDS access needs the HLSL path | 177 | | unsupported `IMAGE_SAMPLE_L` (reads a register the per-lane form did not pass) | 157 | | unsupported `IMAGE_LOAD` (same) | 70 | | unsupported `IMAGE_SAMPLE_LZ` (same) | 54 | | unsupported `IMAGE_STORE` (same) | 31 | | `V_PERMLANEX16_B32`: VOP3 modifiers | 19 | | `s_barrier`: the lanes past a dispatch's thread limit leave at the start | 15 | So the first two removals with the most reach look like `V_CVT_F16_F32`'s semantics and the image ops' register passing (the four `IMAGE_*` rows together are 312). One run, one scene, so take the ms as a ranking. Not tested: AMD, other scenes. AI use: Claude Code with Claude Opus 5.5 ran it and wrote this. Counts only; no game data posted. AI-assisted.
throny commented 2026-11-30 04:30:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T04:30:02Z.


@claudetools-gh thanks, the same test on the RTX 4080 16 GB (621.40), main 0fe06eb0 + #3192 + #3124's change + a local input-timing patch, XCL_PER_LANE=1, 900 s, startup preparation off: reached the world, no removal, no crash, 2.44 presents/s (the same build without it: 2.13 to 2.28 in five runs), GPU frame 336 ms first to last stamp (369 ms without). So a small gain here too, and the path is stable on this card.

Refusals by count match yours: V_CVT_F16_F32-class converts 266, split-wave64 LDS 185, image ops 276 (IMAGE_SAMPLE_L 149, IMAGE_LOAD 73, IMAGE_SAMPLE_LZ 54, all "reads register N the per-lane form did not pass"), a mask read as a number 33.

For C56's order that means: the f16 converts first, and that class is already handled: #2182 ("the per-lane form takes f16 converts and products from #1426") was merged into main after the commit I tested. I rerun on a current main next to see how much of the 266 it takes. The image class looks like one missing operand in the per-lane form's image lowering rather than three problems. The mask-as-number class is step 3 of the design note.

AI use: Claude Code (Claude Opus 5.5) made the run and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7268829498 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7268829498). Originally posted by [throny](https://github.com/throny) on 2026-11-30T04:30:02Z. --- @claudetools-gh thanks, the same test on the RTX 4080 16 GB (621.40), `main` `0fe06eb0` + #3192 + #3124's change + a local input-timing patch, `XCL_PER_LANE=1`, 900 s, startup preparation off: reached the world, no removal, no crash, **2.44 presents/s** (the same build without it: 2.13 to 2.28 in five runs), GPU frame 336 ms first to last stamp (369 ms without). So a small gain here too, and the path is stable on this card. Refusals by count match yours: `V_CVT_F16_F32`-class converts 266, split-wave64 LDS 185, image ops 276 (`IMAGE_SAMPLE_L` 149, `IMAGE_LOAD` 73, `IMAGE_SAMPLE_LZ` 54, all "reads register N the per-lane form did not pass"), a mask read as a number 33. For C56's order that means: the f16 converts first, and that class is already handled: #2182 ("the per-lane form takes f16 converts and products from #1426") was merged into `main` after the commit I tested. I rerun on a current `main` next to see how much of the 266 it takes. The image class looks like one missing operand in the per-lane form's image lowering rather than three problems. The mask-as-number class is step 3 of the design note. AI use: Claude Code (Claude Opus 5.5) made the run and wrote this.
Grimkaaah commented 2026-11-30 11:42:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Grimkaaah on 2026-11-30T11:42:25Z.


claim: PC FidelityFX SDK upscaler for the retail title's FFX API calls (the "alias the loader → FFX DX12 from the PC" route in HANDOFF.md, FSR section)

What: the title calls the standard FFX API (ffxCreateContext / ffxConfigure / ffxQuery / ffxDispatch / ffxDestroyContext) exported by amd_fidelityfx_loader_xbox.dll. Behind an opt-in switch (XCL_UPSCALER=fsr, default title = today's behaviour), XCL answers those exports itself and runs the upscale with the PC FidelityFX SDK v2.4.0 DX12 DLLs (FSR 4 on RDNA 4, FSR 3.1 elsewhere, chosen by the SDK) on the title's PC command list at the point of the call. That skips the 29 recompiled console FSR4 pipelines (74 s of DXC for the largest, ~11 ms per dispatch in the probe). Any call it cannot map (unknown chained struct, foreign resource) is passed to the console DLL as today, and logged.

Where it comes from: my own project, Victory Grimkaaah (GPL-3.0, not published yet; I'm its author). It has the console FFX struct parsing (versioned chained headers, every resource and parameter of the upscale descs, jitter query) and the PC SDK backend (load the signed SDK DLLs, create the context on the host device, dispatch), with unit tests and a GPU test that upscales a synthetic 1080p frame on an RX 7900 XTX. The part that records into the title's list is not finished there, so for XCL I'd write it against XCL's 1:1 title-to-PC list mapping. Sources used: the public FidelityFX SDK headers (ffx_api.h, ffx_upscale.h, MIT) and the title's own calls as observed. No console-kit material.

XCL files I expect to touch: a new hle/ffx/ module (exports, struct parsing, backend), hle/mod.rs (module name), hle/d3d12x/ only where the title's PC list and resources are looked up, config.rs (the switch), THIRD_PARTY.md (FidelityFX SDK DLLs, MIT; not committed to the repo, fetched like other SDK pieces), tests.

Plan, as stacked PRs under ~400 lines each: (1) the FFX exports served by XCL and forwarded to the console DLL, no behaviour change, with logs; (2) the PC SDK backend and its GPU test; (3) XCL_UPSCALER=fsr recording on the PC list, with smoke runs on the retail title (AMD RX 7900 XTX; NVIDIA not tested).

Draft PR: the first one within 48 hours.

AI use: Claude Code (Claude Opus 5.5) wrote the Victory Grimkaaah code and drafted this at my request.

<!-- greyfinch-sync:ivall/xcl:comment:7277400118 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7277400118). Originally posted by [Grimkaaah](https://github.com/Grimkaaah) on 2026-11-30T11:42:25Z. --- claim: PC FidelityFX SDK upscaler for the retail title's FFX API calls (the "alias the loader → FFX DX12 from the PC" route in HANDOFF.md, FSR section) **What:** the title calls the standard FFX API (`ffxCreateContext` / `ffxConfigure` / `ffxQuery` / `ffxDispatch` / `ffxDestroyContext`) exported by `amd_fidelityfx_loader_xbox.dll`. Behind an opt-in switch (`XCL_UPSCALER=fsr`, default `title` = today's behaviour), XCL answers those exports itself and runs the upscale with the PC FidelityFX SDK v2.4.0 DX12 DLLs (FSR 4 on RDNA 4, FSR 3.1 elsewhere, chosen by the SDK) on the title's PC command list at the point of the call. That skips the 29 recompiled console FSR4 pipelines (74 s of DXC for the largest, ~11 ms per dispatch in the probe). Any call it cannot map (unknown chained struct, foreign resource) is passed to the console DLL as today, and logged. **Where it comes from:** my own project, Victory Grimkaaah (GPL-3.0, not published yet; I'm its author). It has the console FFX struct parsing (versioned chained headers, every resource and parameter of the upscale descs, jitter query) and the PC SDK backend (load the signed SDK DLLs, create the context on the host device, dispatch), with unit tests and a GPU test that upscales a synthetic 1080p frame on an RX 7900 XTX. The part that records into the title's list is not finished there, so for XCL I'd write it against XCL's 1:1 title-to-PC list mapping. Sources used: the public FidelityFX SDK headers (`ffx_api.h`, `ffx_upscale.h`, MIT) and the title's own calls as observed. No console-kit material. **XCL files I expect to touch:** a new `hle/ffx/` module (exports, struct parsing, backend), `hle/mod.rs` (module name), `hle/d3d12x/` only where the title's PC list and resources are looked up, `config.rs` (the switch), `THIRD_PARTY.md` (FidelityFX SDK DLLs, MIT; not committed to the repo, fetched like other SDK pieces), tests. **Plan, as stacked PRs under ~400 lines each:** (1) the FFX exports served by XCL and forwarded to the console DLL, no behaviour change, with logs; (2) the PC SDK backend and its GPU test; (3) `XCL_UPSCALER=fsr` recording on the PC list, with smoke runs on the retail title (AMD RX 7900 XTX; NVIDIA not tested). **Draft PR:** the first one within 48 hours. AI use: Claude Code (Claude Opus 5.5) wrote the Victory Grimkaaah code and drafted this at my request.
Grimkaaah commented 2026-11-30 11:46:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Grimkaaah on 2026-11-30T11:46:33Z.


Candidates from Victory Grimkaaah (my own project, GPL-3.0, not published yet; I'm its author). Each one is something XCL main 9dfbe3e does not have, checked by reading XCL's code (file:line below), and built only from public sources (FidelityFX SDK, public GDK/GRDK headers and docs, Win32, D3D12/DXIL, the title's observed behaviour). Pieces that rely on console-kit material are left out on purpose. Nothing here was run inside XCL yet. I hold the FSR claim above; anyone can take the others (say so here so we don't do one twice), or I'll take them one at a time after the FSR PRs.

GPU time and memory

  • V1. Coherent loads only where needed. XCL makes the whole flat mem buffer globallycoherent as soon as any GLC/DLC/SLC access, atomic or cache invalidation appears (gpu/recomp/mod.rs:1920-1939, gpu/recomp/emit.rs:5063-5068, gpu/dxil/kernel.rs:686). Ours keeps it only where a glc/dlc load can read what another group of the same dispatch wrote. Aimed at the GPU-bound split compute programs.
  • V2. Static cost census of translated programs: per-program counts of what translation adds (barriers, waterfalls, guards, f16 conversions, exchanges), weighted by pipeline use. Pairs with XCL_GPU_PROFILE (hle/d3d12x/gpu_profile.rs) to show which overhead dominates.
  • V3. Dynamic render scale: a controller that steers the render scale toward a target GPU time per frame. XCL has the card timings it would read (hle/d3d12x/gpu_times.rs) but no dynamic resolution. The render-scale cell is per title.
  • V4. Pools and budgets sized from the card's VRAM, with profile advice for 8-16 GB cards. XCL's Series S profile is picked by hand (config.rs:11-21, 241) and nothing reads the card's size.
  • V5. Release on a tight shared-memory budget: releasers (idle indirect buffers, spare list memory) called when NON_LOCAL is tight. XCL reads the budget (real.rs:890-912, bind.rs:297, list_x.rs:3848) but frees nothing on it.

Recompiler

  • V6. f16 rounding. add/fma/pk_fma/mix go through legacyF32ToF16, which XCL's own test says rounds toward zero (gpu/dxil/core_tests.rs:824-825); only v_cvt_f16_f32, products and the dynamic mode round to nearest-even (gpu/dxil/prelude.rs:45-61, gpu/dxil/lower_wide.rs:62-69). The RDNA default is nearest-even.
  • V7. Every translation switch in the cache keys (beyond #3520): one list of switches, each set one keyed as NAME=VALUE.
  • V8. Per-program wave32 report (CSV: 32-lane form, exchanges, barriers, refusals) on top of the count in shaders.rs:441-444.
  • V9. Loop caps settable in release builds, and loops whose exit reads only LDS written from trusted values allowed to run long (gpu/recomp/mod.rs:887-906, gpu/dxil/lower.rs:42: constants compiled in).
  • V10. Refusal ownership: a table from each refusal text to an owner or "by design", enforced by a test (today a ranked histogram, gpu/dxil/coverage.rs).

Runtime

  • V11. PLM: the title's registered suspend/resume and constrain routines are never called (hle/kernelx.rs:2642-2659; kernelx.rs:68 "never suspended or constrained"). Ours constrains on focus loss or minimize and suspends/resumes on system sleep, on a PLM thread.
  • V12. GameInput timing: QPC timestamps (today counted from first use, hle/gameinput.rs:327), next/previous readings across devices, and the temporal call's timestamp (ignored today, hle/gameinput.rs:798).
  • V13. GameInput device registry for more than one gamepad (mouse, touch, added devices; today one gamepad, hle/gameinput.rs:5, 707).
  • V14. Multiplayer port: check that UDP 3074 is really free and fall back to a free port (always 3074 today, hle/xgameruntime/networking.rs:18, 67-76).
  • V15. Private per-title registry (RegLoadAppKey); today everything but the OEM ConsoleMode key reaches the PC registry (hle/kernelx.rs:2926-2969).
  • V16. Offline network views: IPHLPAPI adapter and interface tables showing loopback only when the network is off (today only the connectivity hint, hle/xgameruntime/networking.rs:596-607).
  • V17. Console answers for memory, computer name and OS version (today the host's, hle/kernelx.rs:2908-2913).
  • V18. Texture re-checks by time as well as by frame count, with a bytes-per-frame cap (title_textures.rs:2299-2304).

AI use: Claude Code (Claude Opus 5.5) compared the two code bases and drafted this list at my request.

<!-- greyfinch-sync:ivall/xcl:comment:7277507455 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7277507455). Originally posted by [Grimkaaah](https://github.com/Grimkaaah) on 2026-11-30T11:46:33Z. --- Candidates from Victory Grimkaaah (my own project, GPL-3.0, not published yet; I'm its author). Each one is something XCL `main` 9dfbe3e does not have, checked by reading XCL's code (file:line below), and built only from public sources (FidelityFX SDK, public GDK/GRDK headers and docs, Win32, D3D12/DXIL, the title's observed behaviour). Pieces that rely on console-kit material are left out on purpose. Nothing here was run inside XCL yet. I hold the FSR claim above; anyone can take the others (say so here so we don't do one twice), or I'll take them one at a time after the FSR PRs. **GPU time and memory** - **V1. Coherent loads only where needed.** XCL makes the whole flat `mem` buffer `globallycoherent` as soon as any GLC/DLC/SLC access, atomic or cache invalidation appears (`gpu/recomp/mod.rs:1920-1939`, `gpu/recomp/emit.rs:5063-5068`, `gpu/dxil/kernel.rs:686`). Ours keeps it only where a glc/dlc load can read what another group of the same dispatch wrote. Aimed at the GPU-bound split compute programs. - **V2. Static cost census of translated programs**: per-program counts of what translation adds (barriers, waterfalls, guards, f16 conversions, exchanges), weighted by pipeline use. Pairs with `XCL_GPU_PROFILE` (`hle/d3d12x/gpu_profile.rs`) to show which overhead dominates. - **V3. Dynamic render scale**: a controller that steers the render scale toward a target GPU time per frame. XCL has the card timings it would read (`hle/d3d12x/gpu_times.rs`) but no dynamic resolution. The render-scale cell is per title. - **V4. Pools and budgets sized from the card's VRAM**, with profile advice for 8-16 GB cards. XCL's Series S profile is picked by hand (`config.rs:11-21, 241`) and nothing reads the card's size. - **V5. Release on a tight shared-memory budget**: releasers (idle indirect buffers, spare list memory) called when NON_LOCAL is tight. XCL reads the budget (`real.rs:890-912`, `bind.rs:297`, `list_x.rs:3848`) but frees nothing on it. **Recompiler** - **V6. f16 rounding.** add/fma/pk_fma/mix go through `legacyF32ToF16`, which XCL's own test says rounds toward zero (`gpu/dxil/core_tests.rs:824-825`); only `v_cvt_f16_f32`, products and the dynamic mode round to nearest-even (`gpu/dxil/prelude.rs:45-61`, `gpu/dxil/lower_wide.rs:62-69`). The RDNA default is nearest-even. - **V7. Every translation switch in the cache keys** (beyond #3520): one list of switches, each set one keyed as `NAME=VALUE`. - **V8. Per-program wave32 report** (CSV: 32-lane form, exchanges, barriers, refusals) on top of the count in `shaders.rs:441-444`. - **V9. Loop caps settable in release builds**, and loops whose exit reads only LDS written from trusted values allowed to run long (`gpu/recomp/mod.rs:887-906`, `gpu/dxil/lower.rs:42`: constants compiled in). - **V10. Refusal ownership**: a table from each refusal text to an owner or "by design", enforced by a test (today a ranked histogram, `gpu/dxil/coverage.rs`). **Runtime** - **V11. PLM**: the title's registered suspend/resume and constrain routines are never called (`hle/kernelx.rs:2642-2659`; `kernelx.rs:68` "never suspended or constrained"). Ours constrains on focus loss or minimize and suspends/resumes on system sleep, on a PLM thread. - **V12. GameInput timing**: QPC timestamps (today counted from first use, `hle/gameinput.rs:327`), next/previous readings across devices, and the temporal call's timestamp (ignored today, `hle/gameinput.rs:798`). - **V13. GameInput device registry** for more than one gamepad (mouse, touch, added devices; today one gamepad, `hle/gameinput.rs:5, 707`). - **V14. Multiplayer port**: check that UDP 3074 is really free and fall back to a free port (always 3074 today, `hle/xgameruntime/networking.rs:18, 67-76`). - **V15. Private per-title registry** (`RegLoadAppKey`); today everything but the OEM ConsoleMode key reaches the PC registry (`hle/kernelx.rs:2926-2969`). - **V16. Offline network views**: IPHLPAPI adapter and interface tables showing loopback only when the network is off (today only the connectivity hint, `hle/xgameruntime/networking.rs:596-607`). - **V17. Console answers for memory, computer name and OS version** (today the host's, `hle/kernelx.rs:2908-2913`). - **V18. Texture re-checks by time** as well as by frame count, with a bytes-per-frame cap (`title_textures.rs:2299-2304`). AI use: Claude Code (Claude Opus 5.5) compared the two code bases and drafted this list at my request.
afpruivo commented 2026-11-30 12:03:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-30T12:03:15Z.


claim: C63 (VIctory-NVIDIA 32b38669, apps/victory/src/warm.rs: a short used-pipeline list no longer replaces the full warm-up).

XCL has the same pattern: startup preparation keeps to earlier_used_shaders() whenever the list has any entry (crates/xcl/src/hle/d3d12x/present/preparation.rs), so a run that ended in the menus or crashed leaves a handful and the next launch enters the world cold. The port is the mechanism only (a minimum list size, XCL_PREPARE_USED_MIN, default 1,000 shaders; below it every record is prepared), written for XCL, one file plus README. Draft PR today.

AI use: Claude Code (Claude Opus 5.5) wrote this; posted with my go-ahead.

<!-- greyfinch-sync:ivall/xcl:comment:7277879012 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7277879012). Originally posted by [afpruivo](https://github.com/afpruivo) on 2026-11-30T12:03:15Z. --- claim: C63 (VIctory-NVIDIA `32b38669`, `apps/victory/src/warm.rs`: a short used-pipeline list no longer replaces the full warm-up). XCL has the same pattern: startup preparation keeps to `earlier_used_shaders()` whenever the list has any entry (`crates/xcl/src/hle/d3d12x/present/preparation.rs`), so a run that ended in the menus or crashed leaves a handful and the next launch enters the world cold. The port is the mechanism only (a minimum list size, `XCL_PREPARE_USED_MIN`, default 1,000 shaders; below it every record is prepared), written for XCL, one file plus README. Draft PR today. AI use: Claude Code (Claude Opus 5.5) wrote this; posted with my go-ahead.
throny commented 2026-11-30 14:07:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T14:07:40Z.


Port candidates from another project (another project's repository GPL-3.0-or-later), a downstream copy of XCL itself (started from f311ca5, merges our main). Its last 200 commits hold 19 xcl: commits that change XCL's own code; none of them is on main yet (checked by searching main and open and merged PRs). Commits read, nothing built or run here. The ones that look like general fixes:

C68. another project 1c77cc6: a two-pass entry is dropped after the map's lock is released, not under it (a deadlock).
C69. another project ebe39df, a8a703a, e723382: DXC's thread-local state released in a way that no longer crashes the test process at exit (the test suite dying at the end).
C70. another project 490393a: the end-of-run watchdog no longer hangs.
C71. another project 5bd2c9e: a thread dump cannot take the process down (main has a copy-based unwinder since, but still reads an unchecked RIP; needs a rebase onto it).
C72. another project cb90cec: the window is hidden as soon as shutdown starts.
C73. another project b2e51e1: the 5 s wait for the save lock at exit.
C74. another project c15b7b9: the stand-ins counter that always reported 0.
C75. another project test fixes f4d1c1a (the used-pipeline test no longer races a build-ahead worker, the flaky test of #3180), 34280f3, 77e7f7e, 2cb0c78 (the last rewrites bind.rs line endings; port only its lines).

Possibly: 187e4f8 (overlaps open #2001 / #1798), 26095cd (overlaps #1186), f7a55db, 1376239, a857b27.

its author these look like fixes XCL's main would want too. If you'd like to send them upstream yourself, any of them as a PR here would be welcome (one change per PR, the rules in CONTRIBUTING.md); otherwise anyone may port them with a provenance note, which is what the numbers above are for. Claim one by replying here, as for the other candidates.

AI use: Claude Code; Claude Sonnet 5.5 compared the commits with main, Claude Opus 5.5 checked the list and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7280877158 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7280877158). Originally posted by [throny](https://github.com/throny) on 2026-11-30T14:07:40Z. --- Port candidates from **another project** (another project's repository GPL-3.0-or-later), a downstream copy of XCL itself (started from `f311ca5`, merges our `main`). Its last 200 commits hold 19 `xcl:` commits that change XCL's own code; none of them is on `main` yet (checked by searching `main` and open and merged PRs). Commits read, nothing built or run here. The ones that look like general fixes: **C68. another project `1c77cc6`**: a two-pass entry is dropped after the map's lock is released, not under it (a deadlock). **C69. another project `ebe39df`, `a8a703a`, `e723382`**: DXC's thread-local state released in a way that no longer crashes the test process at exit (the test suite dying at the end). **C70. another project `490393a`**: the end-of-run watchdog no longer hangs. **C71. another project `5bd2c9e`**: a thread dump cannot take the process down (`main` has a copy-based unwinder since, but still reads an unchecked RIP; needs a rebase onto it). **C72. another project `cb90cec`**: the window is hidden as soon as shutdown starts. **C73. another project `b2e51e1`**: the 5 s wait for the save lock at exit. **C74. another project `c15b7b9`**: the stand-ins counter that always reported 0. **C75. another project test fixes** `f4d1c1a` (the used-pipeline test no longer races a build-ahead worker, the flaky test of #3180), `34280f3`, `77e7f7e`, `2cb0c78` (the last rewrites `bind.rs` line endings; port only its lines). Possibly: `187e4f8` (overlaps open #2001 / #1798), `26095cd` (overlaps #1186), `f7a55db`, `1376239`, `a857b27`. its author these look like fixes XCL's `main` would want too. If you'd like to send them upstream yourself, any of them as a PR here would be welcome (one change per PR, the rules in CONTRIBUTING.md); otherwise anyone may port them with a provenance note, which is what the numbers above are for. Claim one by replying here, as for the other candidates. AI use: Claude Code; Claude Sonnet 5.5 compared the commits with `main`, Claude Opus 5.5 checked the list and wrote this.
throny commented 2026-11-30 14:39:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T14:39:14Z.


New candidates from another project (commits read, nothing built or run; numbers are the messages' own). The first three concern the folded wave64 form, so they matter for C57:

C76. another project b8f365ad + tests f1e2a0cd: a folded program reads its EXEC pair as a number, and mask joins fed only by a loop header were never marked as read, so from the second iteration on the read took a stale lane. Fix: in folded programs, read all mask joins. Message: 18 of about 26,000 programs change; one program family went from 40-77 ms to 22.5 ms a frame. 17 lines plus about 290 lines of tests. For C57: the same case (a mask read as a number through a loop join) needs a test in our folded driver; I add it before step 3 goes up.

C77. another project 38c1d10a: some programs need about 2 x 129 VGPRs per lane when folded, past NVIDIA's 255, and run better unfolded (13-135 ms a frame on an RTX 5070). Their fix is a skip list by program name; for XCL the general form is a refusal when the folded program's register count passes the host limit (our design note lists ">255 VGPRs" as refused; to verify in our step 3/5).

C78. another project 844200e9: dword scalar and buffer accesses drop the two low address bits, as the console does. A correctness fix for wrong data reads. 83 lines.

C79. another project 1d536280: a loop whose trip count the program fixes is run in full instead of being cut at the stage's loop cap (one family of pixel programs had 256- and 512-sample loops cut to 128, giving a wrong, darker result). 414 lines, needs splitting.

C80. another project 121d0dc8: hardware ray tracing, a memory budget for bottom-level structures with least-recently-named eviction; message: acceleration-structure memory grew from 370 MB to 1,583 MB over 20 minutes on an RTX 4090, and a 16 GB card lost the device past its budget within 4 minutes. 729 lines, must be split; only relevant if XCL builds real structures (see the root-argument clamp on #505).

AI use: Claude Code; Claude Haiku 5.5 read the commits, Claude Opus 5.5 checked the summary and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7281715604 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7281715604). Originally posted by [throny](https://github.com/throny) on 2026-11-30T14:39:14Z. --- New candidates from another project (commits read, nothing built or run; numbers are the messages' own). The first three concern the folded wave64 form, so they matter for C57: **C76. another project `b8f365ad` + tests `f1e2a0cd`**: a folded program reads its EXEC pair as a number, and mask joins fed only by a loop header were never marked as read, so from the second iteration on the read took a stale lane. Fix: in folded programs, read all mask joins. Message: 18 of about 26,000 programs change; one program family went from 40-77 ms to 22.5 ms a frame. 17 lines plus about 290 lines of tests. For C57: the same case (a mask read as a number through a loop join) needs a test in our folded driver; I add it before step 3 goes up. **C77. another project `38c1d10a`**: some programs need about 2 x 129 VGPRs per lane when folded, past NVIDIA's 255, and run better unfolded (13-135 ms a frame on an RTX 5070). Their fix is a skip list by program name; for XCL the general form is a refusal when the folded program's register count passes the host limit (our design note lists ">255 VGPRs" as refused; to verify in our step 3/5). **C78. another project `844200e9`**: dword scalar and buffer accesses drop the two low address bits, as the console does. A correctness fix for wrong data reads. 83 lines. **C79. another project `1d536280`**: a loop whose trip count the program fixes is run in full instead of being cut at the stage's loop cap (one family of pixel programs had 256- and 512-sample loops cut to 128, giving a wrong, darker result). 414 lines, needs splitting. **C80. another project `121d0dc8`**: hardware ray tracing, a memory budget for bottom-level structures with least-recently-named eviction; message: acceleration-structure memory grew from 370 MB to 1,583 MB over 20 minutes on an RTX 4090, and a 16 GB card lost the device past its budget within 4 minutes. 729 lines, must be split; only relevant if XCL builds real structures (see the root-argument clamp on #505). AI use: Claude Code; Claude Haiku 5.5 read the commits, Claude Opus 5.5 checked the summary and wrote this.
throny commented 2026-11-30 15:00:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T15:00:10Z.


C57 (folded wave64) steps 1 and 2 are up as PRs, both independently reviewed before: #3529 (half context and second VGPR bank, no behaviour change) and #3530 (folded lane primitives, stacked on #3529). Whole suite on each, smoke blocks on main and both heads in the descriptions. @KDenKC these two are what a folded mesh entry would stack on; step 3 (the instruction driver) follows after I add tests for C76 (a mask read through a loop join) and C77 (refusal past the host's register limit).

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

<!-- greyfinch-sync:ivall/xcl:comment:7282271419 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7282271419). Originally posted by [throny](https://github.com/throny) on 2026-11-30T15:00:10Z. --- C57 (folded wave64) steps 1 and 2 are up as PRs, both independently reviewed before: #3529 (half context and second VGPR bank, no behaviour change) and #3530 (folded lane primitives, stacked on #3529). Whole suite on each, smoke blocks on `main` and both heads in the descriptions. @KDenKC these two are what a folded mesh entry would stack on; step 3 (the instruction driver) follows after I add tests for C76 (a mask read through a loop join) and C77 (refusal past the host's register limit). AI use: Claude Code (Claude Opus 5.5) wrote this.
throny commented 2026-11-30 15:35:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T15:35:37Z.


claim: C57 (folded wave64 on 32-lane GPUs), as a re-implementation in XCL's direct DXIL translator after another project's another project/src/fold.rs and docs/wave64-folded.md (GPL-3.0, provenance in the files and THIRD_PARTY.md).

  • XCL files: crates/xcl/src/gpu/dxil/ (lower.rs, lanes.rs, kernel.rs, a new lower_fold.rs, tests in a new fold_tests.rs), gpu/recomp/pso.rs and compute_build_key.rs for the entry and the cache identity, hle/d3d12x/gpu_profile.rs for the timing labels.
  • Drafts: steps 1 and 2 are open (#3529, #3530). Step 3 (instruction driver) after the C76/C77 tests, then 4 (vector memory and LDS), 5 (compute entry behind XCL_WAVE64_FOLD=1), 6 (images, mode registers, barriers), each as its own PR within the next days; the design note is above.

I should have posted this line when I started; the work was announced in the design note and status comments here, but not as a claim. One claim per person: I do not hold another one.

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

<!-- greyfinch-sync:ivall/xcl:comment:7283249554 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7283249554). Originally posted by [throny](https://github.com/throny) on 2026-11-30T15:35:37Z. --- claim: C57 (folded wave64 on 32-lane GPUs), as a re-implementation in XCL's direct DXIL translator after another project's `another project/src/fold.rs` and `docs/wave64-folded.md` (GPL-3.0, provenance in the files and THIRD_PARTY.md). - XCL files: `crates/xcl/src/gpu/dxil/` (`lower.rs`, `lanes.rs`, `kernel.rs`, a new `lower_fold.rs`, tests in a new `fold_tests.rs`), `gpu/recomp/pso.rs` and `compute_build_key.rs` for the entry and the cache identity, `hle/d3d12x/gpu_profile.rs` for the timing labels. - Drafts: steps 1 and 2 are open (#3529, #3530). Step 3 (instruction driver) after the C76/C77 tests, then 4 (vector memory and LDS), 5 (compute entry behind `XCL_WAVE64_FOLD=1`), 6 (images, mode registers, barriers), each as its own PR within the next days; the design note is above. I should have posted this line when I started; the work was announced in the design note and status comments here, but not as a claim. One claim per person: I do not hold another one. AI use: Claude Code (Claude Opus 5.5) wrote this.
throny commented 2026-11-30 15:37:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T15:37:01Z.


C76 and C77 are part of the C57 claim above: they are faults another project found in its own folded form, and XCL's folded form (#3529, #3530 and the steps after) has to handle the same cases. I am adding a three-way test for C76 (a mask read as a number through a loop join) and the register-limit refusal of C77 to step 3 before it goes up, so they need no separate claim; please don't take them separately.

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

<!-- greyfinch-sync:ivall/xcl:comment:7283287653 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7283287653). Originally posted by [throny](https://github.com/throny) on 2026-11-30T15:37:01Z. --- C76 and C77 are part of the C57 claim above: they are faults another project found in its own folded form, and XCL's folded form (#3529, #3530 and the steps after) has to handle the same cases. I am adding a three-way test for C76 (a mask read as a number through a loop join) and the register-limit refusal of C77 to step 3 before it goes up, so they need no separate claim; please don't take them separately. AI use: Claude Code (Claude Opus 5.5) wrote this.
throny commented 2026-11-30 17:30:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T17:30:55Z.


Candidates from another project, a GPL-3.0 sibling fork of another project (forked around 2026-11-27, no fold.rs) reported to render correctly at about 20 fps. Public copy for provenance: another project's repository at feb4b5fb7e20ba0d32fc6d8b70277d696e81d9da (all 370 source files identical to the release source by blob hash). Paths below are inside that repository. Read only; nothing of it built or run.

What its "correct picture" and "20 fps" rest on, in short: the title's ray-tracing builder is off by default and an injected ambient pass stands in for the indoor light that would otherwise stay black (cosmetic, not emulation); dispatches over 65,535 groups are split; wave64 forms are chosen per program from an allowlist; mesh programs translate in one pass; the frame-rate gain is mostly CPU and submission work plus passes left out without ray tracing (shader code itself was under 1 ms of difference by their notes).

C81. Ambient stand-in for missing ray-traced light (another project/src/ambient.rs, another project/src/play.rs settings). For XCL first a diagnosis, not a port: if XCL's dark interiors are the title's ray-traced GI resolving black, this explains the run-to-run dark world on #505. Worth one check before anything else.
C82. Split indirect dispatches over 65,535 groups (another project/src/indirect.rs, another project/src/emit/first_group.rs). XCL passes such counts straight to ExecuteIndirect; clamping (XCL_CLAMP_INDIRECT=1) cut the picture and caused a removal here earlier; splitting keeps the work.
C83. One-pass mesh with outputs pruned to what the pixel program reads (another project/src/emit/link.rs): the route for C58; KDenKC's group owns that.
C84. Per-program choice of the wave64 form with a refusal list (another project/src/emit/mod.rs): matches C57/C77 here; one program is excluded because a half-wave form draws it wrong.
C85. Static sampler order kept for driver-cached pipelines (another project/src/pipeline/static_samplers.rs).
C86. Early depth when the console tests depth before the pixel program (another project/src/emit/mod.rs, [earlydepthstencil]): correctness and overdraw.
C87. Static store analysis: skip compares and readbacks of ranges no program in a submission can write (another project/src/written.rs): CPU side.

AI use: Claude Code; Claude Opus 5.5 read the sources, matched them to the public copy and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7286425120 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7286425120). Originally posted by [throny](https://github.com/throny) on 2026-11-30T17:30:55Z. --- Candidates from **another project**, a GPL-3.0 sibling fork of another project (forked around 2026-11-27, no `fold.rs`) reported to render correctly at about 20 fps. Public copy for provenance: another project's repository at `feb4b5fb7e20ba0d32fc6d8b70277d696e81d9da` (all 370 source files identical to the release source by blob hash). Paths below are inside that repository. Read only; nothing of it built or run. What its "correct picture" and "20 fps" rest on, in short: the title's ray-tracing builder is **off** by default and an injected ambient pass stands in for the indoor light that would otherwise stay black (cosmetic, not emulation); dispatches over 65,535 groups are split; wave64 forms are chosen per program from an allowlist; mesh programs translate in one pass; the frame-rate gain is mostly CPU and submission work plus passes left out without ray tracing (shader code itself was under 1 ms of difference by their notes). **C81. Ambient stand-in for missing ray-traced light** (`another project/src/ambient.rs`, `another project/src/play.rs` settings). For XCL first a diagnosis, not a port: if XCL's dark interiors are the title's ray-traced GI resolving black, this explains the run-to-run dark world on #505. Worth one check before anything else. **C82. Split indirect dispatches over 65,535 groups** (`another project/src/indirect.rs`, `another project/src/emit/first_group.rs`). XCL passes such counts straight to `ExecuteIndirect`; clamping (`XCL_CLAMP_INDIRECT=1`) cut the picture and caused a removal here earlier; splitting keeps the work. **C83. One-pass mesh with outputs pruned to what the pixel program reads** (`another project/src/emit/link.rs`): the route for C58; KDenKC's group owns that. **C84. Per-program choice of the wave64 form with a refusal list** (`another project/src/emit/mod.rs`): matches C57/C77 here; one program is excluded because a half-wave form draws it wrong. **C85. Static sampler order kept for driver-cached pipelines** (`another project/src/pipeline/static_samplers.rs`). **C86. Early depth when the console tests depth before the pixel program** (`another project/src/emit/mod.rs`, `[earlydepthstencil]`): correctness and overdraw. **C87. Static store analysis: skip compares and readbacks of ranges no program in a submission can write** (`another project/src/written.rs`): CPU side. AI use: Claude Code; Claude Opus 5.5 read the sources, matched them to the public copy and wrote this.
throny commented 2026-11-30 19:16:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T19:16:41Z.


C57 step 3 is up: #3543 (instruction driver and kernel entry of the folded wave64 form, still tests only; stacked on #3530 → #3529). The C76 item is a regression test there (MASK_JOIN_LOOP), the C77 register limit is in it. Independent review found nothing blocking. Nothing in the runtime selects the form yet; we will ask for merge checks on the stack only once a later step shows a measured gain in the world.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7289128833 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7289128833). Originally posted by [throny](https://github.com/throny) on 2026-11-30T19:16:41Z. --- C57 step 3 is up: #3543 (instruction driver and kernel entry of the folded wave64 form, still tests only; stacked on #3530 → #3529). The C76 item is a regression test there (MASK_JOIN_LOOP), the C77 register limit is in it. Independent review found nothing blocking. Nothing in the runtime selects the form yet; we will ask for merge checks on the stack only once a later step shows a measured gain in the world. AI use: Claude Code (Claude Opus 5.5).
throny commented 2026-11-30 20:40:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T20:40:09Z.


New upstream candidates (commits since the last watch; GPL-3.0 projects; read, not built or measured here):

  • C88 another project 033c372c: a packed word written to all four channels is stored as an integer, not a float, so texels whose bits look like NaN no longer come out 0 on NVIDIA (black splotches). ~82 lines with a test. Picture.
  • C89 another project 3fed39f8: keeps 512 MB of the card's budget free of texture copies; its message reports an 8 GiB card reaching 7.8 GiB and a device removal (0x887A0007) before. ~87 lines. Device loss / VRAM placement.
  • C90 another project 5a1c053f: slot eviction looks for victims off the submitting thread; its message reports 57–104 ms per sweep about once a second on an RTX 4080 16 GB. ~362 lines (would need splitting). Frame-time stalls from texture streaming.
  • C91 another project ceb0c96 (a cherry-pick of another project change): unread BVH nodes no longer page-fault. ~89 lines with tests. Ray tracing.
  • C92 another project 66124155: draws can wait for their pipeline (another project). ~48 lines, no numbers. Pipelines.
  • C93 another project 06657ea: exact synchronous submission completion for native DXR builds on NVIDIA. ~7 lines, no numbers.

None of the new commits states a speed-up by a multiple; C88 and C90 look the most useful for XCL's NVIDIA runs. Not claimed by us (our claim stays C57).

AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.

<!-- greyfinch-sync:ivall/xcl:comment:7291288580 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7291288580). Originally posted by [throny](https://github.com/throny) on 2026-11-30T20:40:09Z. --- New upstream candidates (commits since the last watch; GPL-3.0 projects; read, not built or measured here): - **C88** another project `033c372c`: a packed word written to all four channels is stored as an integer, not a float, so texels whose bits look like NaN no longer come out 0 on NVIDIA (black splotches). ~82 lines with a test. Picture. - **C89** another project `3fed39f8`: keeps 512 MB of the card's budget free of texture copies; its message reports an 8 GiB card reaching 7.8 GiB and a device removal (0x887A0007) before. ~87 lines. Device loss / VRAM placement. - **C90** another project `5a1c053f`: slot eviction looks for victims off the submitting thread; its message reports 57–104 ms per sweep about once a second on an RTX 4080 16 GB. ~362 lines (would need splitting). Frame-time stalls from texture streaming. - **C91** another project `ceb0c96` (a cherry-pick of another project change): unread BVH nodes no longer page-fault. ~89 lines with tests. Ray tracing. - **C92** another project `66124155`: draws can wait for their pipeline (`another project`). ~48 lines, no numbers. Pipelines. - **C93** another project `06657ea`: exact synchronous submission completion for native DXR builds on NVIDIA. ~7 lines, no numbers. None of the new commits states a speed-up by a multiple; C88 and C90 look the most useful for XCL's NVIDIA runs. Not claimed by us (our claim stays C57). AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
throny commented 2026-11-30 22:07:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T22:07:03Z.


another project (GPL-3.0, one squashed commit from today; read, not run): a heavy rewrite of another project. Its README claims about 29 fps calm / 17 fps busy on an RTX 5060 8 GB; per its TODO that is the Series S profile at 1080p without DLSS or frame generation, with ray tracing off (an ambient stand-in), wave64 programs run as 32-lane halves, some compute programs still dropped, and two passes left out by default. Two items for this list:

  • C94 a default leave-out of the decal heap defragmentation pass, which its notes measure at 5.6 ms per frame, and of the heat-haze pass (smears) (its leave-out switch). XCL has the mechanism for this in #3026 / #3302 (XCL_RT_LEAVE_OUT); worth measuring the same two passes here.
  • C95 per-program GPU-time ranking (another project-gpu/src/cardrank.rs), the same idea as #1766, which we are running in the world now; compare before porting.

Its busy-scene breakdown (about 57 ms a frame, about 22 ms of it in the title's compute programs) is a useful yardstick for our profile run.

AI use: Claude Code (Claude Opus 5.5), with a Claude Sonnet 5.5 sub-agent reading the code.

<!-- greyfinch-sync:ivall/xcl:comment:7293375754 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7293375754). Originally posted by [throny](https://github.com/throny) on 2026-11-30T22:07:03Z. --- another project (GPL-3.0, one squashed commit from today; read, not run): a heavy rewrite of another project. Its README claims about 29 fps calm / 17 fps busy on an RTX 5060 8 GB; per its TODO that is the Series S profile at 1080p without DLSS or frame generation, with ray tracing off (an ambient stand-in), wave64 programs run as 32-lane halves, some compute programs still dropped, and two passes left out by default. Two items for this list: - **C94** a default leave-out of the decal heap defragmentation pass, which its notes measure at 5.6 ms per frame, and of the heat-haze pass (smears) (`its leave-out switch`). XCL has the mechanism for this in #3026 / #3302 (`XCL_RT_LEAVE_OUT`); worth measuring the same two passes here. - **C95** per-program GPU-time ranking (`another project-gpu/src/cardrank.rs`), the same idea as #1766, which we are running in the world now; compare before porting. Its busy-scene breakdown (about 57 ms a frame, about 22 ms of it in the title's compute programs) is a useful yardstick for our profile run. AI use: Claude Code (Claude Opus 5.5), with a Claude Sonnet 5.5 sub-agent reading the code.
throny commented 2026-11-30 22:16:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T22:16:25Z.


Releasing C57 (folded wave64): steps 1–3 are open as #3529 → #3530 → #3543 and stay there for anyone to pick up or review, but we park further steps until a profile shows the wave64 programs are worth it.

claim: C88 (another project 033c372c: a packed word written to all four channels stored as an integer, so NaN-pattern texels survive on NVIDIA), as a re-implementation in XCL's translator if XCL has the same store path; I'll say here if it does not apply.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7293618876 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7293618876). Originally posted by [throny](https://github.com/throny) on 2026-11-30T22:16:25Z. --- Releasing C57 (folded wave64): steps 1–3 are open as #3529 → #3530 → #3543 and stay there for anyone to pick up or review, but we park further steps until a profile shows the wave64 programs are worth it. claim: C88 (another project `033c372c`: a packed word written to all four channels stored as an integer, so NaN-pattern texels survive on NVIDIA), as a re-implementation in XCL's translator if XCL has the same store path; I'll say here if it does not apply. AI use: Claude Code (Claude Opus 5.5).
throny commented 2026-11-30 22:17:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T22:17:07Z.


Releasing C88: it does not apply to XCL. another project chose the store type at translate time (float by default) and needed a pattern match for the integer store; XCL picks it at run time from the class of the view's own format in both paths (HLSL emit.rs image store: uint/int views get uint4/int4 stores, only float views use asfloat; direct DXIL lower_image.rs: bits go to f32 only when the component type is F32). A NaN-pattern word written to an R32_UINT image is therefore stored as an integer already. Two small leftovers for whoever wants them: no test pins a NaN-pattern word through an integer image store (tests-only, ~40 lines per path), and a NaN pattern written to a float view still goes through asfloat (not seen in a title; a separate change).

AI use: Claude Code (Claude Opus 5.5), with a Claude Fable 5.2 sub-agent reading the code (nothing run).

<!-- greyfinch-sync:ivall/xcl:comment:7293637456 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7293637456). Originally posted by [throny](https://github.com/throny) on 2026-11-30T22:17:07Z. --- Releasing C88: it does not apply to XCL. another project chose the store type at translate time (float by default) and needed a pattern match for the integer store; XCL picks it at run time from the class of the view's own format in both paths (HLSL `emit.rs` image store: uint/int views get `uint4`/`int4` stores, only float views use `asfloat`; direct DXIL `lower_image.rs`: bits go to f32 only when the component type is F32). A NaN-pattern word written to an R32_UINT image is therefore stored as an integer already. Two small leftovers for whoever wants them: no test pins a NaN-pattern word through an integer image store (tests-only, ~40 lines per path), and a NaN pattern written to a float view still goes through `asfloat` (not seen in a title; a separate change). AI use: Claude Code (Claude Opus 5.5), with a Claude Fable 5.2 sub-agent reading the code (nothing run).
throny commented 2026-11-30 22:17:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T22:17:51Z.


Correction to my release above: we keep C57 (folded wave64). Steps 1–3 are open as #3529 → #3530 → #3543, and the next steps follow once our GPU-time profile (running tonight) shows how much time the wave64 programs take. Sorry for the noise.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7293655738 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7293655738). Originally posted by [throny](https://github.com/throny) on 2026-11-30T22:17:51Z. --- Correction to my release above: we keep **C57** (folded wave64). Steps 1–3 are open as #3529 → #3530 → #3543, and the next steps follow once our GPU-time profile (running tonight) shows how much time the wave64 programs take. Sorry for the noise. AI use: Claude Code (Claude Opus 5.5).
throny commented 2026-11-30 23:39:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T23:39:37Z.


New upstream candidates, all from another project (another project, GPL-3.0-or-later). Note: another project took in about 1,060 commits since the last watch and the files these touch (pipeline/make.rs, emit/lower.rs, shader_cache.rs) are another project paths, so it seems to have moved onto another project base; ports would be re-implementations. Read, not built or measured here:

  • C96 19be563: after the first presented frame no frame waits for a compile (a draw waits at most 50 ms, a full-screen pass 100 ms; compute pipelines on a worker). Its message: with a cold driver cache, from 2–3 fps to no per-frame stall. ~104 lines. Pipelines / frame time.
  • C97 9bba2a2: a wave64 program with no other form on 32-lane GPUs takes the wave-wide form; 77 of 79 refused programs translate, indirect light and shadows come back (about 23 fps vs 29 on the same walk, ray tracing off). ~65 lines. Wave64 on 32-lane GPUs / picture.
  • C98 c9c5354: green/black textures on 8 GB cards: a neutral (0.5) stand-in instead of null for waiting or evicted slots, eviction threshold clamped. ~50 lines. Picture / VRAM.
  • C99 4ffb47b: render-target aliasing off by default (block artifacts). ~16 lines; check what XCL does first.
  • C100 7cc0d15: the translator indexes two per-program lookups once per lowering; its message: a 13,890-block program from 25 s to 2.6 s. ~45 lines. Translation time (relevant to our hour-long cold starts).
  • C101 3983a1c: one giant compile (≥ 5 s) at a time, held while frames play; message cites a 41 s pipeline. ~90 lines. Pipeline stalls / watchdog risk.

C96, C100 and C101 aim at the same pain as #3528/#3499 and the cold starts; C97 at the dark world.

AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.

<!-- greyfinch-sync:ivall/xcl:comment:7295381034 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7295381034). Originally posted by [throny](https://github.com/throny) on 2026-11-30T23:39:37Z. --- New upstream candidates, all from **another project** (another project, GPL-3.0-or-later). Note: another project took in about 1,060 commits since the last watch and the files these touch (`pipeline/make.rs`, `emit/lower.rs`, `shader_cache.rs`) are another project paths, so it seems to have moved onto another project base; ports would be re-implementations. Read, not built or measured here: - **C96** `19be563`: after the first presented frame no frame waits for a compile (a draw waits at most 50 ms, a full-screen pass 100 ms; compute pipelines on a worker). Its message: with a cold driver cache, from 2–3 fps to no per-frame stall. ~104 lines. Pipelines / frame time. - **C97** `9bba2a2`: a wave64 program with no other form on 32-lane GPUs takes the wave-wide form; 77 of 79 refused programs translate, indirect light and shadows come back (about 23 fps vs 29 on the same walk, ray tracing off). ~65 lines. Wave64 on 32-lane GPUs / picture. - **C98** `c9c5354`: green/black textures on 8 GB cards: a neutral (0.5) stand-in instead of null for waiting or evicted slots, eviction threshold clamped. ~50 lines. Picture / VRAM. - **C99** `4ffb47b`: render-target aliasing off by default (block artifacts). ~16 lines; check what XCL does first. - **C100** `7cc0d15`: the translator indexes two per-program lookups once per lowering; its message: a 13,890-block program from 25 s to 2.6 s. ~45 lines. Translation time (relevant to our hour-long cold starts). - **C101** `3983a1c`: one giant compile (≥ 5 s) at a time, held while frames play; message cites a 41 s pipeline. ~90 lines. Pipeline stalls / watchdog risk. C96, C100 and C101 aim at the same pain as #3528/#3499 and the cold starts; C97 at the dark world. AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
throny commented 2026-12-01 02:39:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T02:39:14Z.


New upstream candidates (GPL-3.0; read, not built or measured here):

  • C102 another project ba69a9b6: turns off a default that let the GPU read the title's memory in place over the bus. Its message: 2.6–3.3 fps (about 300 ms of GPU time a frame) with it, 18.5–18.9 fps without. ~29 lines. This looks like the same kind of cost as ours: our profile on an RTX 4080 (#1766) shows about 0.8 s of GPU time per frame with even tiny programs costing milliseconds per call, which fits GPU reads of system memory. Worth checking first what XCL's XCL_UMA_DRIVER / coherent windows put in system memory.
  • C103 another project 9c2fd42f: windows used through the heap pass count as used, so their copies are not left in PC memory (its numbers: 266 windows, 1,140 MB). ~55 lines. Memory placement.
  • C104 another project 6ca29bc (ported there from another project; check provenance): host copies return their buffers to COMMON afterwards; its message: the debug layer flagged this 369,094 times in a run, ~29 copies a frame. ~200 lines.
  • C105 another project d9d53e7: no pipeline library under Wine on NVIDIA (compiles 0.4–5 fps for ~45 s before). Wine only; check XCL's path.
  • C106 another project 9e405ccb: keeps 512 MB below 4 GiB for the title's 32-bit reservations (a 185 MB reservation was refused before). ~53 lines.
  • C107 another project 1de7f34f: slot eviction counts dynamic slots as blocking, with a test. ~45 lines.

We will look at C102 on our side first (measure where XCL's buffers live during the expensive dispatches); I'll post a claim before any code.

AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.

<!-- greyfinch-sync:ivall/xcl:comment:7298847897 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7298847897). Originally posted by [throny](https://github.com/throny) on 2026-12-01T02:39:14Z. --- New upstream candidates (GPL-3.0; read, not built or measured here): - **C102** another project `ba69a9b6`: turns off a default that let the GPU read the title's memory in place over the bus. Its message: **2.6–3.3 fps (about 300 ms of GPU time a frame) with it, 18.5–18.9 fps without**. ~29 lines. This looks like the same kind of cost as ours: our profile on an RTX 4080 (#1766) shows about 0.8 s of GPU time per frame with even tiny programs costing milliseconds per call, which fits GPU reads of system memory. Worth checking first what XCL's `XCL_UMA_DRIVER` / coherent windows put in system memory. - **C103** another project `9c2fd42f`: windows used through the heap pass count as used, so their copies are not left in PC memory (its numbers: 266 windows, 1,140 MB). ~55 lines. Memory placement. - **C104** another project `6ca29bc` (ported there from another project; check provenance): host copies return their buffers to COMMON afterwards; its message: the debug layer flagged this 369,094 times in a run, ~29 copies a frame. ~200 lines. - **C105** another project `d9d53e7`: no pipeline library under Wine on NVIDIA (compiles 0.4–5 fps for ~45 s before). Wine only; check XCL's path. - **C106** another project `9e405ccb`: keeps 512 MB below 4 GiB for the title's 32-bit reservations (a 185 MB reservation was refused before). ~53 lines. - **C107** another project `1de7f34f`: slot eviction counts dynamic slots as blocking, with a test. ~45 lines. We will look at C102 on our side first (measure where XCL's buffers live during the expensive dispatches); I'll post a claim before any code. AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
throny commented 2026-12-01 06:47:11 +00:00 (Migrated from github.com)
Author
Contributor

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


Releasing C57 (folded wave64) with a result: measured in the world on an RTX 4080 it brings no gain (#3543), so I closed the stack #3529 / #3530 / #3543; the branches stay on throny/xcl for anyone who wants to measure it on other hardware.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7303271691 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7303271691). Originally posted by [throny](https://github.com/throny) on 2026-12-01T06:47:11Z. --- Releasing C57 (folded wave64) with a result: measured in the world on an RTX 4080 it brings no gain (#3543), so I closed the stack #3529 / #3530 / #3543; the branches stay on throny/xcl for anyone who wants to measure it on other hardware. AI use: Claude Code (Claude Opus 5.5).
throny commented 2026-12-01 07:04:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T07:04:21Z.


claim: C102 (another project ba69a9b6, GPU reading title memory in place over the bus), as an investigation in XCL first: which of the title's buffers the expensive dispatches read (our profile on an RTX 4080 shows tiny programs costing milliseconds per call), whether they sit in the CPU-memory part of the coherent window, and a measured placement change if so. Moving the window's video-memory range by setting alone breaks loading (tried four placements), so this will be a code change.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7303612223 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7303612223). Originally posted by [throny](https://github.com/throny) on 2026-12-01T07:04:21Z. --- claim: C102 (another project `ba69a9b6`, GPU reading title memory in place over the bus), as an investigation in XCL first: which of the title's buffers the expensive dispatches read (our profile on an RTX 4080 shows tiny programs costing milliseconds per call), whether they sit in the CPU-memory part of the coherent window, and a measured placement change if so. Moving the window's video-memory range by setting alone breaks loading (tried four placements), so this will be a code change. AI use: Claude Code (Claude Opus 5.5).
throny commented 2026-12-01 08:19:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T08:19:31Z.


C102 update (our claim): the mechanism of ba69a9b6 is not what makes XCL slow on an RTX 4080. XCL's per-draw io/res blocks and root tables do sit in CPU memory (the arena pool at the end of coherent window 3), but moving that pool to video memory (XCL_UMA_DRIVER=mixed:1536:1792,4032:64, no code change) left the per-call GPU time of the expensive programs unchanged within a few percent (profiled 900 s world runs). Two other leads from the same profile, being measured now:

  1. about 60 % of GPU time is ~5,500 small operations per frame at ~45 µs each regardless of size (per-op overhead: root rebinds, stamps — untested);
  2. full-screen passes cost 4.5–10 ms whatever the program size, while video memory stays 3.5–4 GB over the card's budget in the world; runs with less reserved video memory are on the GPU now.

AI use: Claude Code (Claude Opus 5.5), investigation and runs by a Claude Fable 5.2 sub-agent.

<!-- greyfinch-sync:ivall/xcl:comment:7305169220 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7305169220). Originally posted by [throny](https://github.com/throny) on 2026-12-01T08:19:31Z. --- C102 update (our claim): the mechanism of `ba69a9b6` is **not** what makes XCL slow on an RTX 4080. XCL's per-draw `io`/`res` blocks and root tables do sit in CPU memory (the arena pool at the end of coherent window 3), but moving that pool to video memory (`XCL_UMA_DRIVER=mixed:1536:1792,4032:64`, no code change) left the per-call GPU time of the expensive programs unchanged within a few percent (profiled 900 s world runs). Two other leads from the same profile, being measured now: 1. about 60 % of GPU time is ~5,500 small operations per frame at ~45 µs each regardless of size (per-op overhead: root rebinds, stamps — untested); 2. full-screen passes cost 4.5–10 ms whatever the program size, while video memory stays 3.5–4 GB over the card's budget in the world; runs with less reserved video memory are on the GPU now. AI use: Claude Code (Claude Opus 5.5), investigation and runs by a Claude Fable 5.2 sub-agent.
throny commented 2026-12-01 08:39:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T08:39:05Z.


New upstream candidates from another project (GPL-3.0; read, not built here):

  • C108 2c53574 + 9f5dcdf: the title's ray tracing on the PC's own ray-tracing hardware (a PC ray query over structures built on the card from the title's builds), now on by default there. Its numbers: nine ray programs 3.4 ms instead of 33–190 ms on one recorded frame (RTX 4070). Large (+12.5k lines); XCL emulates the node test in HLSL today.
  • C109 c606106: gives up PC structures no top level names for 300 frames: structures ~630 MB over 20 minutes instead of 5.6 GB and a lost card at 13.6 min; structure-making 2–6 ms a frame instead of 21–92. Belongs with C108.

Their README names what holds their frame rate now: video memory over budget (12.4–14.7 GB in use against ~10 GB on a 12 GB card), with every card pass running several times slower over budget. That matches what our profile shows on an RTX 4080 (in the world XCL stays 3.5–4 GB over the 15.3 GB budget, and full-screen passes cost 4.5–10 ms whatever the program size); our runs with less reserved video memory are on the GPU now.

AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.

<!-- greyfinch-sync:ivall/xcl:comment:7305599110 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7305599110). Originally posted by [throny](https://github.com/throny) on 2026-12-01T08:39:05Z. --- New upstream candidates from **another project** (GPL-3.0; read, not built here): - **C108** `2c53574` + `9f5dcdf`: the title's ray tracing on the PC's own ray-tracing hardware (a PC ray query over structures built on the card from the title's builds), now on by default there. Its numbers: nine ray programs 3.4 ms instead of 33–190 ms on one recorded frame (RTX 4070). Large (+12.5k lines); XCL emulates the node test in HLSL today. - **C109** `c606106`: gives up PC structures no top level names for 300 frames: structures ~630 MB over 20 minutes instead of 5.6 GB and a lost card at 13.6 min; structure-making 2–6 ms a frame instead of 21–92. Belongs with C108. Their README names what holds their frame rate now: **video memory over budget** (12.4–14.7 GB in use against ~10 GB on a 12 GB card), with every card pass running several times slower over budget. That matches what our profile shows on an RTX 4080 (in the world XCL stays 3.5–4 GB over the 15.3 GB budget, and full-screen passes cost 4.5–10 ms whatever the program size); our runs with less reserved video memory are on the GPU now. AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
throny commented 2026-12-01 11:39:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T11:39:11Z.


New upstream candidates (GPL-3.0; read, not built here):

  • C110 another project 90f62a6: ray-tracing structure pools (32 MB chunks) with nothing in use for 120 frames go back to the card; its README: 800 MB given back in a 10-minute session. ~66 lines. The same idle rule would fit XCL's render-target pools: our runs hold about 1 GB of free target pools while 3.3 GB over the video-memory budget (#505).
  • C111 another project f9e80ae (#149 there): texture ladder, video-memory eviction and a budget pass on by default. Its own numbers show no frame-rate change (21.0 fps either way, 2–3 GB free on its test PC). ~345 lines. Low priority unless a card is over budget.
  • C112 another project ad9f92d: a per-frame texture-stream ledger line (counters only, diagnostics). ~340 lines.

another project's README adds a caution worth knowing: in its open world, frames are about as slow just over budget as far over it, so it does not call the overrun the cause there. Our own data points the other way on an RTX 4080 (residency priority #3156: +50 % presents/s with the same over-budget footprint; Series S under budget: per-call times 2.5–3× lower), so the two may differ by card or by scene.

AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.

<!-- greyfinch-sync:ivall/xcl:comment:7309937527 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7309937527). Originally posted by [throny](https://github.com/throny) on 2026-12-01T11:39:11Z. --- New upstream candidates (GPL-3.0; read, not built here): - **C110** another project `90f62a6`: ray-tracing structure pools (32 MB chunks) with nothing in use for 120 frames go back to the card; its README: 800 MB given back in a 10-minute session. ~66 lines. The same idle rule would fit XCL's render-target pools: our runs hold about 1 GB of *free* target pools while 3.3 GB over the video-memory budget (#505). - **C111** another project `f9e80ae` (#149 there): texture ladder, video-memory eviction and a budget pass on by default. Its own numbers show no frame-rate change (21.0 fps either way, 2–3 GB free on its test PC). ~345 lines. Low priority unless a card is over budget. - **C112** another project `ad9f92d`: a per-frame texture-stream ledger line (counters only, diagnostics). ~340 lines. another project's README adds a caution worth knowing: in its open world, frames are about as slow just over budget as far over it, so it does not call the overrun the cause there. Our own data points the other way on an RTX 4080 (residency priority #3156: +50 % presents/s with the same over-budget footprint; Series S under budget: per-call times 2.5–3× lower), so the two may differ by card or by scene. AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
throny commented 2026-12-01 19:34:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T19:34:24Z.


Proposal for the next large work package: the title's ray tracing on the PC's ray-tracing hardware.

Why now: another project moved the one step the console does in hardware (the ray/node test inside the title's own BVH walk) onto a PC RayQuery over PC acceleration structures built right after the title's builds (C108/C109, 2c53574, 9f5dcdf, c606106). Their numbers on an RTX 4070: the frame's nine ray programs 3.4 ms instead of 33–190 ms, ~36,000 real hits instead of a few hundred, and the picture whole. XCL still emulates the node test in HLSL, and native hardware features are where all current projects leave the most on the table (wave64 on 32-lane GPUs, two-pass mesh, emulated ray tests).

What exists in XCL already: @rison1337's stack (#2186 → #2187 → #2188 → #2189, plus #1815's timing test) builds native acceleration structures and connects one verified shadow traversal to an opt-in RayQuery bound for #1751. It conflicts with main now, and #2189 says no retail fps gain is established yet.

Suggested shape (each a PR under the size rules):

  1. rebase rison1337's native-AS preparation (#2186/#2187) and measure the build cost in the world;
  2. answer the node test generally (not only the shadow region) from a PC RayQuery, behind a switch, as another project does — the title's walk, hit filters and shading unchanged;
  3. structure lifetime: give up PC structures no top level names for N frames (another project's 5.6 GB → 630 MB fix), and return empty pools;
  4. measure in the world: GPU ms of the ray programs (XCL_GPU_PROFILE), presents/s, and the dark-world rate.

@rison1337, would you lead or co-lead this, since it builds on your stack? We can run every step in the world on an RTX 4080 and do merge checks. Please say here who takes which step before coding, so nobody duplicates it.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7323032738 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7323032738). Originally posted by [throny](https://github.com/throny) on 2026-12-01T19:34:24Z. --- **Proposal for the next large work package: the title's ray tracing on the PC's ray-tracing hardware.** Why now: another project moved the one step the console does in hardware (the ray/node test inside the title's own BVH walk) onto a PC `RayQuery` over PC acceleration structures built right after the title's builds (C108/C109, `2c53574`, `9f5dcdf`, `c606106`). Their numbers on an RTX 4070: the frame's nine ray programs 3.4 ms instead of 33–190 ms, ~36,000 real hits instead of a few hundred, and the picture whole. XCL still emulates the node test in HLSL, and native hardware features are where all current projects leave the most on the table (wave64 on 32-lane GPUs, two-pass mesh, emulated ray tests). What exists in XCL already: @rison1337's stack (#2186 → #2187 → #2188 → #2189, plus #1815's timing test) builds native acceleration structures and connects one verified shadow traversal to an opt-in `RayQuery` bound for #1751. It conflicts with `main` now, and #2189 says no retail fps gain is established yet. Suggested shape (each a PR under the size rules): 1. rebase rison1337's native-AS preparation (#2186/#2187) and measure the build cost in the world; 2. answer the node test generally (not only the shadow region) from a PC `RayQuery`, behind a switch, as another project does — the title's walk, hit filters and shading unchanged; 3. structure lifetime: give up PC structures no top level names for N frames (another project's 5.6 GB → 630 MB fix), and return empty pools; 4. measure in the world: GPU ms of the ray programs (`XCL_GPU_PROFILE`), presents/s, and the dark-world rate. @rison1337, would you lead or co-lead this, since it builds on your stack? We can run every step in the world on an RTX 4080 and do merge checks. Please say here who takes which step before coding, so nobody duplicates it. AI use: Claude Code (Claude Opus 5.5).
KDenKC commented 2026-12-01 20:13:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KDenKC on 2026-12-01T20:13:11Z.


@throny +1 to making this the next package. Here is where we stand, and why we think it is essential rather than an extra.

What we have been chasing (RTX 5090, the first interior scene). Our goal has been the dark areas: the cell's window, its walls, the characters, the grain.

  • The window's alternate-frame black box is fixed on our tree by #3094's alias copy together with #3282 (+ #3281); the numbers are in our report on #3282.
  • The room stays dark. A matched pair (only #3282's files differ) shows the room's tile-lighting pass writing a small value on the walls without #3282 (dim grey) and exactly 0 with it (black), while the sunlit yard is the same in both. That extra drop is #3282-specific and is being narrowed with Pipodi on #3282. But even the "good" build only reaches dim grey: the room gets almost no light of its own.
  • To stop chasing single artifacts, we built a whole-frame trace: every pass of two frames with its outputs (share of zeros, NaN, ranges) and every input flagged (never written, alias half, pages unmapped, stand-in shader, ray program), ranked and grouped by cause. Its first runs are next on our rig.

Why ray tracing is most likely essential. In the build we run, the title's indirect light (probes, bounce, reflections) and the shadows of its lamps and sun come from its own ray tracing in compute code: builder programs that build and refit its structures every frame, trace programs that walk them, and the one node test (IMAGE_BVH*_INTERSECT_RAY) that is hardware on the console. A prior implementation's notes say the same and describe the result without working hits: everything the sun does not reach directly goes black (interiors, the shaded side of a face, lamp-lit rooms). That is exactly our picture: the sunlit yard looks right; the room and the characters' shaded sides do not. We have found no path in this build that lights interiors without it, so we do not expect a correct world without ray tracing. We read it as part of "the picture is right", not only as a speed-up.

What a first look at xcl shows (code + our logs, not yet a world measurement).

  • The node test exists (HLSL, both forms, GPU-tested against a CPU mirror) but is not bit-exact: approximations at the watertight triangle test, NaN/equality edges and return modes.
  • Raw-address title memory for shaders exists (the UMA windows).
  • Our shader corpus has 8 compute programs with the node test, all translating; we expected far more trace programs, and the gap is unexplained.
  • The builder programs can't be counted from our logs yet (pipelines are logged by hash, not by source module), and nothing stops the builder stages from running while some builder pipelines still compile on stand-ins: a partial build would leave empty structures, every ray would miss, and interiors would be black.

What we are doing now / can take.

  • Tagging builder and trace pipelines by their creating module so the next run counts how many get host pipelines (or are refused / stand-ins), whether the node test returns hits in the world, and whether the irradiance-cache program runs. We'll post that table here.
  • A bit-exact reference for the node test (ray/node cases compared with a plain CPU reference), so its approximations can be checked rather than guessed.
  • Our whole-frame trace now tags ray-program passes and follows the room's lighting inputs back to them, so it should show directly whether the interior's light depends on them.
  • We can take step 4 (in-world measurement: ray programs' GPU time, presents/s, and the interior's light) on the 5090, and test each step's PRs in the world.

In short: we think ray tracing has to stay on for the title to be playable (without it the interiors and everything out of direct sun stay black), and we don't think the project reaches the performance it is looking for unless the ray programs get far cheaper than today's emulated node test. Both point at the same package: correct hits first, then hardware-speed ray tests.

One note on the source: the fork you cite is no longer reachable on GitHub (HTTP 451 for us today), and we found no public mirror with C108/C109 (2c53574, 9f5dcdf, c606106). So unless someone still holds those commits under their GPL-3.0 terms, step 2 likely means rebuilding the approach from your description on top of rison1337's stack rather than porting it; given the takedown, a clean rebuild may be the safer route for XCL anyway.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.

<!-- greyfinch-sync:ivall/xcl:comment:7324276301 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7324276301). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-12-01T20:13:11Z. --- @throny +1 to making this the next package. Here is where we stand, and why we think it is essential rather than an extra. **What we have been chasing (RTX 5090, the first interior scene).** Our goal has been the dark areas: the cell's window, its walls, the characters, the grain. - The window's alternate-frame black box is fixed on our tree by #3094's alias copy together with #3282 (+ #3281); the numbers are in our report on #3282. - The room stays dark. A matched pair (only #3282's files differ) shows the room's tile-lighting pass writing a small value on the walls without #3282 (dim grey) and exactly 0 with it (black), while the sunlit yard is the same in both. That extra drop is #3282-specific and is being narrowed with Pipodi on #3282. But even the "good" build only reaches dim grey: the room gets almost no light of its own. - To stop chasing single artifacts, we built a whole-frame trace: every pass of two frames with its outputs (share of zeros, NaN, ranges) and every input flagged (never written, alias half, pages unmapped, stand-in shader, ray program), ranked and grouped by cause. Its first runs are next on our rig. **Why ray tracing is most likely essential.** In the build we run, the title's indirect light (probes, bounce, reflections) and the shadows of its lamps and sun come from its own ray tracing in compute code: builder programs that build and refit its structures every frame, trace programs that walk them, and the one node test (`IMAGE_BVH*_INTERSECT_RAY`) that is hardware on the console. A prior implementation's notes say the same and describe the result without working hits: everything the sun does not reach directly goes black (interiors, the shaded side of a face, lamp-lit rooms). That is exactly our picture: the sunlit yard looks right; the room and the characters' shaded sides do not. We have found no path in this build that lights interiors without it, so we do not expect a correct world without ray tracing. We read it as part of "the picture is right", not only as a speed-up. **What a first look at xcl shows (code + our logs, not yet a world measurement).** - The node test exists (HLSL, both forms, GPU-tested against a CPU mirror) but is not bit-exact: approximations at the watertight triangle test, NaN/equality edges and return modes. - Raw-address title memory for shaders exists (the UMA windows). - Our shader corpus has 8 compute programs with the node test, all translating; we expected far more trace programs, and the gap is unexplained. - The builder programs can't be counted from our logs yet (pipelines are logged by hash, not by source module), and nothing stops the builder stages from running while some builder pipelines still compile on stand-ins: a partial build would leave empty structures, every ray would miss, and interiors would be black. **What we are doing now / can take.** - Tagging builder and trace pipelines by their creating module so the next run counts how many get host pipelines (or are refused / stand-ins), whether the node test returns hits in the world, and whether the irradiance-cache program runs. We'll post that table here. - A bit-exact reference for the node test (ray/node cases compared with a plain CPU reference), so its approximations can be checked rather than guessed. - Our whole-frame trace now tags ray-program passes and follows the room's lighting inputs back to them, so it should show directly whether the interior's light depends on them. - We can take step 4 (in-world measurement: ray programs' GPU time, presents/s, and the interior's light) on the 5090, and test each step's PRs in the world. **In short:** we think ray tracing has to stay on for the title to be playable (without it the interiors and everything out of direct sun stay black), and we don't think the project reaches the performance it is looking for unless the ray programs get far cheaper than today's emulated node test. Both point at the same package: correct hits first, then hardware-speed ray tests. One note on the source: the fork you cite is no longer reachable on GitHub (HTTP 451 for us today), and we found no public mirror with C108/C109 (`2c53574`, `9f5dcdf`, `c606106`). So unless someone still holds those commits under their GPL-3.0 terms, step 2 likely means rebuilding the approach from your description on top of rison1337's stack rather than porting it; given the takedown, a clean rebuild may be the safer route for XCL anyway. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.
throny commented 2026-12-01 20:15:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T20:15:59Z.


@KDenKC thanks, that settles why: if the title's interior light and lamp shadows come from its own ray tracing, then a node test that misses (or builder stages running on stand-ins) gives exactly our picture, sunlit yard right and rooms black. One data point from our side that fits: on an RTX 4080 our runs alternate between a dark and a lit start room (about a quarter dark today), so a partial structure build decided once per run is a good suspect for that too.

Split as you propose: you take the module tagging, the bit-exact node-test reference and step 4 on the 5090; we run every step in the world on the RTX 4080 (Ada, 16 GB) with XCL_GPU_PROFILE and the dark/lit grade, and do merge checks. Steps 1–3 wait for @rison1337's answer on whether he leads them on top of his stack; if he does not answer by tomorrow, we'll start step 1 (rebasing #2186/#2187) and claim it here first.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7324365309 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7324365309). Originally posted by [throny](https://github.com/throny) on 2026-12-01T20:15:59Z. --- @KDenKC thanks, that settles why: if the title's interior light and lamp shadows come from its own ray tracing, then a node test that misses (or builder stages running on stand-ins) gives exactly our picture, sunlit yard right and rooms black. One data point from our side that fits: on an RTX 4080 our runs alternate between a dark and a lit start room (about a quarter dark today), so a partial structure build decided once per run is a good suspect for that too. Split as you propose: you take the module tagging, the bit-exact node-test reference and step 4 on the 5090; we run every step in the world on the RTX 4080 (Ada, 16 GB) with `XCL_GPU_PROFILE` and the dark/lit grade, and do merge checks. Steps 1–3 wait for @rison1337's answer on whether he leads them on top of his stack; if he does not answer by tomorrow, we'll start step 1 (rebasing #2186/#2187) and claim it here first. AI use: Claude Code (Claude Opus 5.5).
KDenKC commented 2026-12-01 20:16:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KDenKC on 2026-12-01T20:16:29Z.


@throny one addition to the comment above, since edits don't notify: in short, we think ray tracing has to stay on for the title to be playable, and that the project won't reach its performance target unless the ray programs get far cheaper than today's emulated node test. Also, the fork you cite answers HTTP 451 for us now and we found no public mirror with C108/C109, so step 2 likely means a clean rebuild of the approach rather than a port. Details are in the edit.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.

<!-- greyfinch-sync:ivall/xcl:comment:7324383366 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7324383366). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-12-01T20:16:29Z. --- @throny one addition to the comment above, since edits don't notify: in short, we think ray tracing has to stay on for the title to be playable, and that the project won't reach its performance target unless the ray programs get far cheaper than today's emulated node test. Also, the fork you cite answers HTTP 451 for us now and we found no public mirror with C108/C109, so step 2 likely means a clean rebuild of the approach rather than a port. Details are in the edit. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.
KDenKC commented 2026-12-01 20:18:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KDenKC on 2026-12-01T20:18:46Z.


@throny on ordering: before we take a ray-tracing step, we have committed to the unified native mesh path you asked for under C4. @Kalmarv's direct-DXIL wave64 mesh translator will come as its own PR stacked on our #3327 (runtime / PSO / ExecuteIndirect plumbing and the two-pass fallback; rebased on main today, head 1e65e6a2), and we review and test that pair in the world first. Until then, on ray tracing we keep to measuring (the pipeline counts and the whole-frame trace above) and the step-4 runs; we'll say here before starting any code step so it doesn't overlap with @rison1337 or anyone else.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.

<!-- greyfinch-sync:ivall/xcl:comment:7324459594 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7324459594). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-12-01T20:18:46Z. --- @throny on ordering: before we take a ray-tracing step, we have committed to the unified native mesh path you asked for under C4. @Kalmarv's direct-DXIL wave64 mesh translator will come as its own PR stacked on our #3327 (runtime / PSO / ExecuteIndirect plumbing and the two-pass fallback; rebased on `main` today, head `1e65e6a2`), and we review and test that pair in the world first. Until then, on ray tracing we keep to measuring (the pipeline counts and the whole-frame trace above) and the step-4 runs; we'll say here before starting any code step so it doesn't overlap with @rison1337 or anyone else. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.
throny commented 2026-12-01 20:39:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T20:39:12Z.


New upstream candidates from another project (another project, GPL-3.0; read, not built; no numbers in their messages):

  • C113 3cf0c18: when a texture's mips are marked dirty, read only the byte span of the selected subresources from title memory instead of the whole texture (falls back to a full copy otherwise), with a test against the full detile. ~170 lines. Possibly relevant to the missing glyph letters (#1049: CPU-written textures in an unwatched range).
  • C114 606b788: sparse shadow refreshes keep separate ranges per submission instead of one min/max span that merges unrelated ranges. ~415 lines (would need splitting). Same area.
  • (e5759a8, host-RAM snapshot pool under memory pressure, is small and host-RAM only.)

another project's newest commit is a squashed import of a whole new project ("another project", ~238k lines), nothing to port as such.

AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.

<!-- greyfinch-sync:ivall/xcl:comment:7325048105 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7325048105). Originally posted by [throny](https://github.com/throny) on 2026-12-01T20:39:12Z. --- New upstream candidates from **another project** (another project, GPL-3.0; read, not built; no numbers in their messages): - **C113** `3cf0c18`: when a texture's mips are marked dirty, read only the byte span of the selected subresources from title memory instead of the whole texture (falls back to a full copy otherwise), with a test against the full detile. ~170 lines. Possibly relevant to the missing glyph letters (#1049: CPU-written textures in an unwatched range). - **C114** `606b788`: sparse shadow refreshes keep separate ranges per submission instead of one min/max span that merges unrelated ranges. ~415 lines (would need splitting). Same area. - (`e5759a8`, host-RAM snapshot pool under memory pressure, is small and host-RAM only.) another project's newest commit is a squashed import of a whole new project ("another project", ~238k lines), nothing to port as such. AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
throny commented 2026-12-01 22:13:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T22:13:28Z.


@KDenKC agreed on both: ray tracing stays on, and step 2 is a clean re-implementation in XCL, not a port. We read that approach before it went offline, so we can write it up as a short design note here (where the PC structures come from, how the node test is answered from a RayQuery, the lifetime rule for unnamed structures, the numbers it reported) as a basis for whoever takes step 2 — words and measurements only, no code. I'll post it tomorrow unless you already have one.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7327448165 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7327448165). Originally posted by [throny](https://github.com/throny) on 2026-12-01T22:13:28Z. --- @KDenKC agreed on both: ray tracing stays on, and step 2 is a clean re-implementation in XCL, not a port. We read that approach before it went offline, so we can write it up as a short design note here (where the PC structures come from, how the node test is answered from a `RayQuery`, the lifetime rule for unnamed structures, the numbers it reported) as a basis for whoever takes step 2 — words and measurements only, no code. I'll post it tomorrow unless you already have one. AI use: Claude Code (Claude Opus 5.5).
KDenKC commented 2026-12-01 22:17:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KDenKC on 2026-12-01T22:17:33Z.


@throny findings so far on our side of the split (RTX 5090, read from our logs and code; the in-world runs that test the fixes are next on our rig).

The title's own ray tracing runs here, so true ray tracing is open to us. Layers that turn ray tracing off on NVIDIA do so because the title's BVH builder (64-lane programs) is refused there; every ray then misses and the interiors need a stand-in light. In XCL on the 5090 nothing is refused: in our room run 1,531 compute pipelines were made, 0 refused, and the 64-lane programs run in XCL's split 2x32 form (106 programs), with console threads taken from a group counter, so NVIDIA's 2-D warp layout does not split console waves wrongly. So the job here is to make the title's own rays correct (and then fast, your step 2), not to replace them.

What is wrong today, found so far:

  1. The node test reports triangle hits behind the ray's origin. Both the HLSL bvh_intersect and the direct-DXIL lowering check the barycentric signs but never the sign of the distance; hardware reports hits ahead only. A shadow ray that starts on a surface then counts the triangles behind it as blockers, which would darken exactly the indirect-lit and lamp-shadowed areas. Fix: 9 lines (t >= 0 for det > 0, t <= 0 for det < 0), with our own test (a triangle ahead is hit, one behind the origin is missed, both windings, both shader paths); it fails without the fix. Checked against a broader set of ray/node cases, behind-origin hits went to 0 and agreement rose from 436 to 448 of 474; the rest differ at exact box faces, triangle edges and node kinds the instruction doesn't read, reported not asserted. PR after the in-world run.
  2. Indirect mesh dispatch records written as (X, 0, 0) are dropped. The title's terrain tessellation writes them; D3D12 runs nothing for Y or Z = 0, on our two-pass path and on the native one. A switch runs them as (X, 1, 1) on both paths (tests on both); an even stronger rule, the console reading X alone whatever Y and Z hold, is a second value of the same switch. Effect expected on the near ground (black with specks), not on the rooms.
  3. Shader reads of unmapped title memory are silent. A ray program reading a node outside every memory window, or on an unmapped tile, reads zero, so a partly built or partly mapped structure looks like empty space. A counter for the direct-DXIL node test (XCL_RAY_UNMAPPED=1: node tests, nodes outside every window, nodes on unmapped tiles, plus box/triangle tests and hits) is in the next runs; if it is high, a fault-drain (map what rays asked for, next frame) is the next build.

Module tagging (our step): builder pipelines are tagged at creation (console compute slot 62) and every builder dispatch is counted, including the ones that ran on a stand-in while their pipeline compiled; the first 16 such are logged with the present they hit. That should show directly whether a run's structures were built in part, which fits your "about a quarter of starts dark" on the RTX 4080.

Whole-frame trace: each pass is tagged as a ray program when one of its shaders has the node test, and the room's lighting inputs are followed back to the ray passes that wrote them, so the first runs show whether the interior's light depends on them, pass by pass.

Next on our rig (in order): (a) the node-test fix + the mesh-dispatch switch on a tree without #3282 (does the room brighten; hit shares and unmapped counts), (b) the same on our best tree, (c) Pipodi's #3282 placement check. We'll post the numbers here and the dark/lit grade per run.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.

<!-- greyfinch-sync:ivall/xcl:comment:7327561914 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7327561914). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-12-01T22:17:33Z. --- @throny findings so far on our side of the split (RTX 5090, read from our logs and code; the in-world runs that test the fixes are next on our rig). **The title's own ray tracing runs here, so true ray tracing is open to us.** Layers that turn ray tracing off on NVIDIA do so because the title's BVH builder (64-lane programs) is refused there; every ray then misses and the interiors need a stand-in light. In XCL on the 5090 nothing is refused: in our room run 1,531 compute pipelines were made, 0 refused, and the 64-lane programs run in XCL's split 2x32 form (106 programs), with console threads taken from a group counter, so NVIDIA's 2-D warp layout does not split console waves wrongly. So the job here is to make the title's own rays correct (and then fast, your step 2), not to replace them. **What is wrong today, found so far:** 1. **The node test reports triangle hits behind the ray's origin.** Both the HLSL `bvh_intersect` and the direct-DXIL lowering check the barycentric signs but never the sign of the distance; hardware reports hits ahead only. A shadow ray that starts on a surface then counts the triangles behind it as blockers, which would darken exactly the indirect-lit and lamp-shadowed areas. Fix: 9 lines (t >= 0 for det > 0, t <= 0 for det < 0), with our own test (a triangle ahead is hit, one behind the origin is missed, both windings, both shader paths); it fails without the fix. Checked against a broader set of ray/node cases, behind-origin hits went to 0 and agreement rose from 436 to 448 of 474; the rest differ at exact box faces, triangle edges and node kinds the instruction doesn't read, reported not asserted. PR after the in-world run. 2. **Indirect mesh dispatch records written as (X, 0, 0) are dropped.** The title's terrain tessellation writes them; D3D12 runs nothing for Y or Z = 0, on our two-pass path and on the native one. A switch runs them as (X, 1, 1) on both paths (tests on both); an even stronger rule, the console reading X alone whatever Y and Z hold, is a second value of the same switch. Effect expected on the near ground (black with specks), not on the rooms. 3. **Shader reads of unmapped title memory are silent.** A ray program reading a node outside every memory window, or on an unmapped tile, reads zero, so a partly built or partly mapped structure looks like empty space. A counter for the direct-DXIL node test (`XCL_RAY_UNMAPPED=1`: node tests, nodes outside every window, nodes on unmapped tiles, plus box/triangle tests and hits) is in the next runs; if it is high, a fault-drain (map what rays asked for, next frame) is the next build. **Module tagging (our step):** builder pipelines are tagged at creation (console compute slot 62) and every builder dispatch is counted, including the ones that ran on a stand-in while their pipeline compiled; the first 16 such are logged with the present they hit. That should show directly whether a run's structures were built in part, which fits your "about a quarter of starts dark" on the RTX 4080. **Whole-frame trace:** each pass is tagged as a ray program when one of its shaders has the node test, and the room's lighting inputs are followed back to the ray passes that wrote them, so the first runs show whether the interior's light depends on them, pass by pass. **Next on our rig (in order):** (a) the node-test fix + the mesh-dispatch switch on a tree without #3282 (does the room brighten; hit shares and unmapped counts), (b) the same on our best tree, (c) Pipodi's #3282 placement check. We'll post the numbers here and the dark/lit grade per run. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.
throny commented 2026-12-01 22:23:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T22:23:51Z.


@KDenKC the behind-origin hits are a strong lead for the dark rooms. As soon as the node-test fix and the mesh-dispatch switch are on a branch or PR, we'll run them first on the RTX 4080 (it goes ahead of our baseline runs): same save and inputs, 900 s, lit/dark grade on the wall cells, presents/s and the profile of the ray programs. Tonight's queue is measuring the dark-start rate on current main + #3617 as the baseline for exactly that comparison.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7327773839 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7327773839). Originally posted by [throny](https://github.com/throny) on 2026-12-01T22:23:51Z. --- @KDenKC the behind-origin hits are a strong lead for the dark rooms. As soon as the node-test fix and the mesh-dispatch switch are on a branch or PR, we'll run them first on the RTX 4080 (it goes ahead of our baseline runs): same save and inputs, 900 s, lit/dark grade on the wall cells, presents/s and the profile of the ray programs. Tonight's queue is measuring the dark-start rate on current `main` + #3617 as the baseline for exactly that comparison. AI use: Claude Code (Claude Opus 5.5).
throny commented 2026-12-02 02:13:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T02:13:58Z.


Baseline for the ray-tracing comparison, as promised: current main 1c8b5514 + #3617, RTX 4080 16 GB, XCL_RESIDENCY_PRIORITY=1, six 900 s runs of the same save and inputs overnight: 1 of 6 starts dark (left wall cells 13 % bright vs 43–66 % in the lit ones), no device removal, no draws skipped, 3.01–3.23 presents/s. When the node-test fix and the mesh-dispatch switch exist on a branch, we run the same six-run block on them.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7332614042 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7332614042). Originally posted by [throny](https://github.com/throny) on 2026-12-02T02:13:58Z. --- Baseline for the ray-tracing comparison, as promised: current `main` `1c8b5514` + #3617, RTX 4080 16 GB, `XCL_RESIDENCY_PRIORITY=1`, six 900 s runs of the same save and inputs overnight: **1 of 6 starts dark** (left wall cells 13 % bright vs 43–66 % in the lit ones), no device removal, no draws skipped, 3.01–3.23 presents/s. When the node-test fix and the mesh-dispatch switch exist on a branch, we run the same six-run block on them. AI use: Claude Code (Claude Opus 5.5).
throny commented 2026-12-02 02:39:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T02:39:45Z.


New upstream candidates (another project each; read, not built here):

  • C115 5e5b56c: lazily committed allocations are split into sections of at most 64 MB, so a thread no longer waits on one large section's lock per page; its message: 225 such waits took 342 of 367 ms in one profiled stretch. ~230 lines. Worth a look if XCL's large lazy allocations hit the same single-section lock (check first).
  • C116 2092559: the submit thread finds the view copies that reach a written range through a sorted index instead of scanning all of them (~3,900 copies, 1.35 ms a frame saved). Large (+2.1k lines, five parts); only the index idea is worth taking, with its own measurement of XCL's copy scan.

AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.

<!-- greyfinch-sync:ivall/xcl:comment:7333067743 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7333067743). Originally posted by [throny](https://github.com/throny) on 2026-12-02T02:39:45Z. --- New upstream candidates (another project each; read, not built here): - **C115** `5e5b56c`: lazily committed allocations are split into sections of at most 64 MB, so a thread no longer waits on one large section's lock per page; its message: 225 such waits took 342 of 367 ms in one profiled stretch. ~230 lines. Worth a look if XCL's large lazy allocations hit the same single-section lock (check first). - **C116** `2092559`: the submit thread finds the view copies that reach a written range through a sorted index instead of scanning all of them (~3,900 copies, 1.35 ms a frame saved). Large (+2.1k lines, five parts); only the index idea is worth taking, with its own measurement of XCL's copy scan. AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
throny commented 2026-12-02 06:25:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T06:25:34Z.


#3011 step 2: answering the ray/node test from a PC RayQuery

Based on another project's approach (since offline), read before it went down. Numbers are its reported ones (one RTX 4070), not XCL measurements.

What the node test returns, and what XCL does today

One instruction tests one 64-byte node against one ray and returns four dwords:

  • Box node: ids of up to four children hit within the ray extent, closest first when the sort bit is set; misses all-ones.
  • Triangle node: distance and determinant numerators plus barycentric numerators or a triangle id; a miss is infinity over 1.
  • Instance nodes: all-ones; the title's own compute code walks instances and the stack.

XCL emulates this per node (HLSL emitter and direct-DXIL lowering), reading console-format nodes from title memory: one dependent memory step per node. Its triangle test has no t >= 0 check, so triangles behind the origin can be reported as hits.

Where the PC structures come from

The title builds its structures into title memory with its own compute builder. Right after each build, two small passes read the nodes and write PC-builder input:

  • BLAS: each triangle node becomes two PC triangles (a missing one is NaN), in node order, so PC primitive 2n+t is triangle t of node n. One PC BLAS per title BLAS, keyed by title address; a title refit is a PC refit, a title copy a copy.
  • TLAS: instance nodes become PC instances in node order: the stored world-to-object transform is inverted, all mask bits, the PC BLAS found by sorted lookup of the title address, the BLAS's first triangle node as id. The pass also writes the TLAS root (it moves every build) into a small table shaders read.
  • TLASes are rebuilt every build (fast-build); BLASes only when the title rebuilds, refit when it refits. The host learns what was built from the title's builder library (kind, address, node count, update).

How the node test is answered; the walk stays the title's

Every triangle is a candidate (no culling, no opaque decision, no procedural), so the title's masks, culling, any-hit code and shading run unchanged. One RayQuery per instruction site:

  • TLAS root box: the next candidate: two children, the candidate's instance node and the root again; none when exhausted. A ray extent shorter than the committed distance means the title took the last candidate: commit first. A new root or ray starts a new query.
  • Box after an instance: one child, the candidate's triangle node.
  • Triangle node: the candidate's distance and weights with determinant +1 (front) or -1 (back) if the pointer names it; otherwise a miss.

The walk visits two nodes per hit triangle instead of every box. This relies on the standard console walk: its stack takes any children and stops when a pop finds none. The PC order is not strictly nearest first; the title's own nearest-hit logic keeps the closest committed hit.

Lifetime rule

The first version never gave structures up: 5.6 GB of card memory, a lost card at 13.6 minutes. Rule:

  • The TLAS pass marks every BLAS a TLAS names (with the frame count); marks are read back a few frames later.
  • A BLAS no TLAS named for 300 frames leaves the lookup at once; its memory goes 96 frames later (every TLAS is rebuilt within 32).
  • A BLAS named after all is remade from title memory on demand.
  • A pool with nothing live for 120 frames is returned to the card (empty pools returned, not kept).

Numbers reported

  • One recorded frame: nine ray programs 3.4 ms against 33 ms (good run) to 190 ms (bad run) emulated.
  • About 36,000 real hits against a few hundred (most emulated rays hit the walk's step limit).
  • After the fix: structures about 630 MB over 20 minutes (2.6 GB of pools made in a streaming burst); building 2-6 ms a frame (was 21-92 ms).

Requirements

DXR tier 1.1 (checked at start; otherwise the emulated path stays), a shader-visible table of TLAS roots (16 reserved view slots), and a switch, off at first.

Risks for XCL

  • Behind-origin hits: KDenKC found XCL's node test reports triangle hits behind the ray origin. The PC query will not, so the paths differ; decide which is right (hardware returns no negative t) and fix the emulation first, or exclude those rays from the comparison.
  • Partial builds: while builder pipelines compile on stand-ins, builds are empty or partial. The passes must refuse headers or counts that look unfinished (empty BLAS, instance without PC address), and drop zero, NaN or infinite transforms.
  • Memory budget: a second copy of every structure plus build scratch. On 8-12 GB cards the lifetime rule is part of the feature, not polish.
  • Wrong primitive/id mapping fails silently as wrong shading; test sparse and rotated triangles.

Suggested PR split (each under ~400 lines)

  • (a) PC structure build from the title's builds behind a switch (off): both passes, BLAS/TLAS maps, refit and copy, refusals; a card test against the CPU reading of the same nodes.
  • (b) RayQuery-answered node test behind a second switch: the three cases; a per-instruction GPU test running the same rays through the emulated and PC paths, skipping without DXR 1.1 (behind-origin rays excluded until settled).
  • (c) Lifetime: marks, 300/96-frame give-up, remake on demand, empty pools returned; card tests (kept while named, given up when unnamed, remade, same hits).
  • (d) In-world measurement: counters and a log line (structures held, pools returned, build ms); a 20-minute run on the retail title with memory and frame numbers; decide the default from them.

@KDenKC @rison1337 as promised; corrections welcome before anyone claims step 2.

AI use: Claude Code (Claude Opus 5.5); drafted by a Claude Sonnet 5.5 sub-agent from a read of that code, no code copied.

<!-- greyfinch-sync:ivall/xcl:comment:7336999791 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7336999791). Originally posted by [throny](https://github.com/throny) on 2026-12-02T06:25:34Z. --- ## #3011 step 2: answering the ray/node test from a PC RayQuery Based on another project's approach (since offline), read before it went down. Numbers are its reported ones (one RTX 4070), not XCL measurements. ### What the node test returns, and what XCL does today One instruction tests one 64-byte node against one ray and returns four dwords: - **Box node:** ids of up to four children hit within the ray extent, closest first when the sort bit is set; misses all-ones. - **Triangle node:** distance and determinant numerators plus barycentric numerators or a triangle id; a miss is infinity over 1. - **Instance nodes:** all-ones; the title's own compute code walks instances and the stack. XCL emulates this per node (HLSL emitter and direct-DXIL lowering), reading console-format nodes from title memory: one dependent memory step per node. Its triangle test has no `t >= 0` check, so triangles behind the origin can be reported as hits. ### Where the PC structures come from The title builds its structures into title memory with its own compute builder. Right after each build, two small passes read the nodes and write PC-builder input: - **BLAS:** each triangle node becomes two PC triangles (a missing one is NaN), in node order, so PC primitive `2n+t` is triangle `t` of node `n`. One PC BLAS per title BLAS, keyed by title address; a title refit is a PC refit, a title copy a copy. - **TLAS:** instance nodes become PC instances in node order: the stored world-to-object transform is inverted, all mask bits, the PC BLAS found by sorted lookup of the title address, the BLAS's first triangle node as id. The pass also writes the TLAS root (it moves every build) into a small table shaders read. - TLASes are rebuilt every build (fast-build); BLASes only when the title rebuilds, refit when it refits. The host learns what was built from the title's builder library (kind, address, node count, update). ### How the node test is answered; the walk stays the title's Every triangle is a candidate (no culling, no opaque decision, no procedural), so the title's masks, culling, any-hit code and shading run unchanged. One RayQuery per instruction site: - **TLAS root box:** the next candidate: two children, the candidate's instance node and the root again; none when exhausted. A ray extent shorter than the committed distance means the title took the last candidate: commit first. A new root or ray starts a new query. - **Box after an instance:** one child, the candidate's triangle node. - **Triangle node:** the candidate's distance and weights with determinant +1 (front) or -1 (back) if the pointer names it; otherwise a miss. The walk visits two nodes per hit triangle instead of every box. This relies on the standard console walk: its stack takes any children and stops when a pop finds none. The PC order is not strictly nearest first; the title's own nearest-hit logic keeps the closest committed hit. ### Lifetime rule The first version never gave structures up: 5.6 GB of card memory, a lost card at 13.6 minutes. Rule: - The TLAS pass marks every BLAS a TLAS names (with the frame count); marks are read back a few frames later. - A BLAS no TLAS named for 300 frames leaves the lookup at once; its memory goes 96 frames later (every TLAS is rebuilt within 32). - A BLAS named after all is remade from title memory on demand. - A pool with nothing live for 120 frames is returned to the card (empty pools returned, not kept). ### Numbers reported - One recorded frame: nine ray programs 3.4 ms against 33 ms (good run) to 190 ms (bad run) emulated. - About 36,000 real hits against a few hundred (most emulated rays hit the walk's step limit). - After the fix: structures about 630 MB over 20 minutes (2.6 GB of pools made in a streaming burst); building 2-6 ms a frame (was 21-92 ms). ### Requirements DXR tier 1.1 (checked at start; otherwise the emulated path stays), a shader-visible table of TLAS roots (16 reserved view slots), and a switch, off at first. ### Risks for XCL - **Behind-origin hits:** KDenKC found XCL's node test reports triangle hits behind the ray origin. The PC query will not, so the paths differ; decide which is right (hardware returns no negative t) and fix the emulation first, or exclude those rays from the comparison. - **Partial builds:** while builder pipelines compile on stand-ins, builds are empty or partial. The passes must refuse headers or counts that look unfinished (empty BLAS, instance without PC address), and drop zero, NaN or infinite transforms. - **Memory budget:** a second copy of every structure plus build scratch. On 8-12 GB cards the lifetime rule is part of the feature, not polish. - Wrong primitive/id mapping fails silently as wrong shading; test sparse and rotated triangles. ### Suggested PR split (each under ~400 lines) - **(a)** PC structure build from the title's builds behind a switch (off): both passes, BLAS/TLAS maps, refit and copy, refusals; a card test against the CPU reading of the same nodes. - **(b)** RayQuery-answered node test behind a second switch: the three cases; a per-instruction GPU test running the same rays through the emulated and PC paths, skipping without DXR 1.1 (behind-origin rays excluded until settled). - **(c)** Lifetime: marks, 300/96-frame give-up, remake on demand, empty pools returned; card tests (kept while named, given up when unnamed, remade, same hits). - **(d)** In-world measurement: counters and a log line (structures held, pools returned, build ms); a 20-minute run on the retail title with memory and frame numbers; decide the default from them. @KDenKC @rison1337 as promised; corrections welcome before anyone claims step 2. AI use: Claude Code (Claude Opus 5.5); drafted by a Claude Sonnet 5.5 sub-agent from a read of that code, no code copied.
throny commented 2026-12-02 07:57:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T07:57:26Z.


Candidates from a read of another project's code (GPL-3.0; read, not built or run; its numbers, not ours). The headline: on an RTX 4060 Ti 16 GB at 1440p output it reports 50–56 ms of GPU time per frame (16–18 rendered fps, ~10,500 draws, frame generation not counted), against ~0.8 s per frame for XCL on an RTX 4080 at 4K Series X — and its GPU time barely changes between 1080p and 1440p, so the gap is not resolution. Its per-draw cost is ~4 µs; XCL's small operations cost ~45 µs each in our profile.

  • C117 a paired-lane wave64 form for whole programs including memory and LDS: one 32-lane host wave runs one 64-lane console wave, each thread lowering two lanes, with no exchange, group barrier or spin. Its numbers: one compute program 2.85 → 0.03 ms, another 2.5 → 1.4 ms (a wave-wide alternative 37 ms). Our folded-form experiment (#3529/#3530/#3543, closed) refused memory and LDS, so it never reached the expensive programs — this says the idea is worth finishing for them. Large (~800–1,500 lines), 4 PRs.
  • C118 a render-scale lever: the title is run at a lower internal resolution (it measures 2.1–2.9 GB of render targets at 1440p against ~6.4 GB at 4K in our runs), which alone would bring XCL near the video-memory budget. ~100–200 lines, opt-in.
  • C119 ray tracing on DXR 1.1 (host BLAS/TLAS builds, traversal answered by RayQuery), one report 22–25 fps vs 6 in software — the same direction as the design note above.

AI use: Claude Code (Claude Opus 5.5), with a Claude Sonnet 5.5 sub-agent reading the code.

<!-- greyfinch-sync:ivall/xcl:comment:7338823120 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7338823120). Originally posted by [throny](https://github.com/throny) on 2026-12-02T07:57:26Z. --- Candidates from a read of another project's code (GPL-3.0; read, not built or run; its numbers, not ours). The headline: on an RTX 4060 Ti 16 GB at 1440p output it reports **50–56 ms of GPU time per frame** (16–18 rendered fps, ~10,500 draws, frame generation not counted), against ~0.8 s per frame for XCL on an RTX 4080 at 4K Series X — and its GPU time barely changes between 1080p and 1440p, so the gap is not resolution. Its per-draw cost is ~4 µs; XCL's small operations cost ~45 µs each in our profile. - **C117** a paired-lane wave64 form *for whole programs including memory and LDS*: one 32-lane host wave runs one 64-lane console wave, each thread lowering two lanes, with no exchange, group barrier or spin. Its numbers: one compute program 2.85 → 0.03 ms, another 2.5 → 1.4 ms (a wave-wide alternative 37 ms). Our folded-form experiment (#3529/#3530/#3543, closed) refused memory and LDS, so it never reached the expensive programs — this says the idea is worth finishing for them. Large (~800–1,500 lines), 4 PRs. - **C118** a render-scale lever: the title is run at a lower internal resolution (it measures 2.1–2.9 GB of render targets at 1440p against ~6.4 GB at 4K in our runs), which alone would bring XCL near the video-memory budget. ~100–200 lines, opt-in. - **C119** ray tracing on DXR 1.1 (host BLAS/TLAS builds, traversal answered by `RayQuery`), one report 22–25 fps vs 6 in software — the same direction as the design note above. AI use: Claude Code (Claude Opus 5.5), with a Claude Sonnet 5.5 sub-agent reading the code.
throny commented 2026-12-02 08:00:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T08:00:08Z.


claim: C117 (whole-program paired-lane wave64 form, including memory and LDS, on 32-lane GPUs), as a re-implementation in XCL's direct-DXIL translator. First only a prototype behind a switch on the most expensive "split in halves" program of our profile, with one in-world A/B; the PR series follows only if that program gets substantially cheaper. Builds on our earlier folded-form work (#3529/#3530/#3543).

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7338878858 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7338878858). Originally posted by [throny](https://github.com/throny) on 2026-12-02T08:00:08Z. --- claim: C117 (whole-program paired-lane wave64 form, including memory and LDS, on 32-lane GPUs), as a re-implementation in XCL's direct-DXIL translator. First only a prototype behind a switch on the most expensive "split in halves" program of our profile, with one in-world A/B; the PR series follows only if that program gets substantially cheaper. Builds on our earlier folded-form work (#3529/#3530/#3543). AI use: Claude Code (Claude Opus 5.5).
throny commented 2026-12-02 09:16:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T09:16:57Z.


C117 prototype result, and releasing the claim: a paired-lane form (one 32-lane host wave runs a whole 64-lane console wave, memory, LDS, DPP, swizzle and permlanex included) was built for the most expensive "split in halves" program of our profile and matches the split form bit for bit in a GPU test. In the world (RTX 4080, 900 s each) that program cost 19.0 ms per call paired vs 20.0 ms split — its time is its own work, not the exchange between halves. Applied to all programs it could take (154), the run got slower (3.19 → 1.06 presents/s): programs with several console waves per group (16x16x1, 256x1x1) cost 32–100 ms per call paired, cause not investigated. So on this card the exchange is not where the time goes, and a PR series is not worth it for speed as measured; the code stays on our side if someone wants to pick up the multi-wave case.

AI use: Claude Code (Claude Opus 5.5); the prototype and runs by a Claude Fable 5.2 sub-agent.

<!-- greyfinch-sync:ivall/xcl:comment:7340650433 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7340650433). Originally posted by [throny](https://github.com/throny) on 2026-12-02T09:16:57Z. --- C117 prototype result, and releasing the claim: a paired-lane form (one 32-lane host wave runs a whole 64-lane console wave, memory, LDS, DPP, swizzle and permlanex included) was built for the most expensive "split in halves" program of our profile and matches the split form bit for bit in a GPU test. In the world (RTX 4080, 900 s each) that program cost **19.0 ms per call paired vs 20.0 ms split** — its time is its own work, not the exchange between halves. Applied to all programs it could take (154), the run got slower (3.19 → 1.06 presents/s): programs with several console waves per group (16x16x1, 256x1x1) cost 32–100 ms per call paired, cause not investigated. So on this card the exchange is not where the time goes, and a PR series is not worth it for speed as measured; the code stays on our side if someone wants to pick up the multi-wave case. AI use: Claude Code (Claude Opus 5.5); the prototype and runs by a Claude Fable 5.2 sub-agent.
throny commented 2026-12-02 17:43:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T17:43:33Z.


New candidates from another project's commits, 2026-12-02. Words only; none has been checked here yet.

  • C120 (another project, bebdd4cbf + the sender code it switches on; 32331a664 records the compare on that thread, +116/-2): prepared command lists are submitted by a thread of their own, not the title's. Its own numbers, one PC: frame median −0.8 to −2.0 ms, submitting thread −1.3 to −2.5 ms.
  • C121 (another project, 2ce2bafe3 + the code it switches on): the write-watch journal is recorded in parts with its own locks, so threads wait on it less. Its own numbers: frame median −1.4 ms, submitting thread −0.8 to −1.3 ms.

Low priority for XCL now: we spend ~330 ms per frame (~3 presents/s), so a 1–2 ms gain does not show yet. These are worth taking once the frame is near 33 ms. Not taken: full shader and pipeline precompilation by default (e71aa0ef1; launcher only, no numbers), but it is close to our slow-start problem (pipelines the driver evicted are rebuilt at ~5/s, see #3633).

AI use: Claude Code. Claude Haiku 5.5 read the commits; Claude Opus 5.5 wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7353581379 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7353581379). Originally posted by [throny](https://github.com/throny) on 2026-12-02T17:43:33Z. --- New candidates from another project's commits, 2026-12-02. Words only; none has been checked here yet. - **C120** (another project, `bebdd4cbf` + the sender code it switches on; `32331a664` records the compare on that thread, +116/-2): prepared command lists are submitted by a thread of their own, not the title's. Its own numbers, one PC: frame median −0.8 to −2.0 ms, submitting thread −1.3 to −2.5 ms. - **C121** (another project, `2ce2bafe3` + the code it switches on): the write-watch journal is recorded in parts with its own locks, so threads wait on it less. Its own numbers: frame median −1.4 ms, submitting thread −0.8 to −1.3 ms. Low priority for XCL now: we spend ~330 ms per frame (~3 presents/s), so a 1–2 ms gain does not show yet. These are worth taking once the frame is near 33 ms. Not taken: full shader and pipeline precompilation by default (`e71aa0ef1`; launcher only, no numbers), but it is close to our slow-start problem (pipelines the driver evicted are rebuilt at ~5/s, see #3633). *AI use: Claude Code. Claude Haiku 5.5 read the commits; Claude Opus 5.5 wrote this.*
throny commented 2026-12-02 23:39:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T23:39:12Z.


New candidates from other projects' commits, 2026-12-03. Words only, not checked here yet.

  • C122 (another project, 3d23727, +320/-92): 64-lane programs that reach across their halves run as pairs (one host thread runs two console lanes, so the whole wave stays in one host wave); halves are used only where nothing crosses. This targets XCL's split-wave64 problem on 32-lane GPUs: halves falling out of step after skipped swaps and reading zeros (see #505, XCL_X64_ALL_MASKS). Our own paired-lane prototype (C117) showed no speed gain, but correctness is the point here.
  • C123 (another project, 0b2b861, +316/-32): a real-GPU timing test of halves vs pairs per program. It would let us choose the layout per program by measurement.
  • C124 (another project, aa1aaf1 / f09cb86): a fence-retired texture pool (16 MiB) and two-tier pooling, for memory over the video budget. Caution: the same project reverted its decommit part in 4549a57 because it broke pictures, so only the pooling is a candidate.

AI use: Claude Code. Claude Haiku 5.5 read the commits; Claude Opus 5.5 wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7362263626 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7362263626). Originally posted by [throny](https://github.com/throny) on 2026-12-02T23:39:12Z. --- New candidates from other projects' commits, 2026-12-03. Words only, not checked here yet. - **C122** (another project, `3d23727`, +320/-92): 64-lane programs that reach across their halves run as pairs (one host thread runs two console lanes, so the whole wave stays in one host wave); halves are used only where nothing crosses. This targets XCL's split-wave64 problem on 32-lane GPUs: halves falling out of step after skipped swaps and reading zeros (see #505, `XCL_X64_ALL_MASKS`). Our own paired-lane prototype (C117) showed no speed gain, but correctness is the point here. - **C123** (another project, `0b2b861`, +316/-32): a real-GPU timing test of halves vs pairs per program. It would let us choose the layout per program by measurement. - **C124** (another project, `aa1aaf1` / `f09cb86`): a fence-retired texture pool (16 MiB) and two-tier pooling, for memory over the video budget. **Caution:** the same project reverted its decommit part in `4549a57` because it broke pictures, so only the pooling is a candidate. *AI use: Claude Code. Claude Haiku 5.5 read the commits; Claude Opus 5.5 wrote this.*
throny commented 2026-12-03 05:39:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-03T05:39:28Z.


New candidate from another project's commits, 2026-12-03. Words only, not checked here yet.

  • C125 (another project, 5ccd6e4, about 180 lines of its library code is the portable part): the pipeline library is split into a read-only base and a delta that takes the new pipelines, so a save writes only the delta. Its message: 800 MB to 1.35 GB of library rewrites in mid-game are gone. It also batches the pipeline build by shader (pixel first). This fits #3633 (runtime runtime.plib): today that file is rewritten as a whole every 30 s while it grows (over 1 GB on the retail title). It does not make a translator change cheaper: that project also rebuilds everything after a translator bump, only faster and in parallel.

AI use: Claude Code. Claude Haiku 5.5 read the commit; Claude Opus 5.5 wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7368972921 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7368972921). Originally posted by [throny](https://github.com/throny) on 2026-12-03T05:39:28Z. --- New candidate from another project's commits, 2026-12-03. Words only, not checked here yet. - **C125** (another project, `5ccd6e4`, about 180 lines of its library code is the portable part): the pipeline library is split into a read-only **base** and a **delta** that takes the new pipelines, so a save writes only the delta. Its message: 800 MB to 1.35 GB of library rewrites in mid-game are gone. It also batches the pipeline build by shader (pixel first). This fits #3633 (runtime `runtime.plib`): today that file is rewritten as a whole every 30 s while it grows (over 1 GB on the retail title). It does **not** make a translator change cheaper: that project also rebuilds everything after a translator bump, only faster and in parallel. *AI use: Claude Code. Claude Haiku 5.5 read the commit; Claude Opus 5.5 wrote this.*
KOLESNiii commented 2026-12-03 06:27:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-12-03T06:27:41Z.


@Grimkaaah: is the FFX upscaler claim above still active? I can't find the first draft PR yet. Here is a measurement that adds to the case for it, from NVIDIA (wave32), where today's path is the recompiled console FSR4 network.

Measured: one interior frame of the retail game, PIX GPU capture, replayed with pixtool save-event-list and NVIDIA's plugin counters (gpu__cycles_elapsed.sum per event; PIX's own timing collection fails on this capture). Total 1,752.6 M GPU cycles.

  • The 20 FSPX (console FSR4) dispatches take 16.6 % of the frame's GPU cycles.
  • One pass takes 15.1 % alone (60x34 groups of 256, 1,073 dot4AddPacked, 296 textureLoad in its DXIL). 99 % of its warp stalls are long-scoreboard, with one 256-thread group per SM.
  • An earlier live run with XCL_GPU_PROFILE put the same pass at 175-200 ms per call.

Live ceiling (local ablation, not a fix): a build that leaves all 20 FSPX dispatches out (XCL_SKIP_CS extended to console-list dispatches; the upscaled image is wrong by design) showed 827 presents over 500-1300 s of the world against 674 for the same build without the skip (+22.7 %), one 1300 s run each. A second run without the skip gave 679. That is what an interception could gain at most here, before the cost of the replacement upscaler.

Setup: RTX 2070 SUPER (driver 621.40), Windows 11 26300, release build of a diagnostics branch on top of 775f6dce plus XCL_PIX_MARKERS (b9e5c45e), XCL_DIRECT_DXIL=0 (the FSPX passes through the HLSL path), Series S device type. The replay serialises events and the frame exceeds this card's VRAM, so take the shares, not absolute times.

Not tested: AMD, other scenes, any replacement upscaler. These are shares from one replayed frame.

Hardware for the live runs: same RTX 2070 SUPER, build 1b93a9f5 (775f6dce plus Prime1997's split-wave64 PRs), XCL_DIRECT_DXIL=0, 1300 s runs with scripted presses, presents counted from XCL_ACTIVITY lines.

Tool: Claude Code (Claude Opus 5.5) ran the replays and the timed runs, did the aggregation and drafted this. The PIX capture was taken by hand.

<!-- greyfinch-sync:ivall/xcl:comment:7369860406 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7369860406). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-12-03T06:27:41Z. --- @Grimkaaah: is the FFX upscaler claim above still active? I can't find the first draft PR yet. Here is a measurement that adds to the case for it, from NVIDIA (wave32), where today's path is the recompiled console FSR4 network. **Measured:** one interior frame of the retail game, PIX GPU capture, replayed with `pixtool save-event-list` and NVIDIA's plugin counters (`gpu__cycles_elapsed.sum` per event; PIX's own timing collection fails on this capture). Total 1,752.6 M GPU cycles. - The 20 FSPX (console FSR4) dispatches take **16.6 %** of the frame's GPU cycles. - One pass takes 15.1 % alone (60x34 groups of 256, 1,073 `dot4AddPacked`, 296 `textureLoad` in its DXIL). 99 % of its warp stalls are long-scoreboard, with one 256-thread group per SM. - An earlier live run with `XCL_GPU_PROFILE` put the same pass at 175-200 ms per call. **Live ceiling (local ablation, not a fix):** a build that leaves all 20 FSPX dispatches out (`XCL_SKIP_CS` extended to console-list dispatches; the upscaled image is wrong by design) showed **827 presents over 500-1300 s of the world against 674 for the same build without the skip (+22.7 %)**, one 1300 s run each. A second run without the skip gave 679. That is what an interception could gain at most here, before the cost of the replacement upscaler. **Setup:** RTX 2070 SUPER (driver 621.40), Windows 11 26300, release build of a diagnostics branch on top of 775f6dce plus `XCL_PIX_MARKERS` (b9e5c45e), `XCL_DIRECT_DXIL=0` (the FSPX passes through the HLSL path), Series S device type. The replay serialises events and the frame exceeds this card's VRAM, so take the shares, not absolute times. **Not tested:** AMD, other scenes, any replacement upscaler. These are shares from one replayed frame. Hardware for the live runs: same RTX 2070 SUPER, build 1b93a9f5 (775f6dce plus Prime1997's split-wave64 PRs), `XCL_DIRECT_DXIL=0`, 1300 s runs with scripted presses, presents counted from `XCL_ACTIVITY` lines. Tool: Claude Code (Claude Opus 5.5) ran the replays and the timed runs, did the aggregation and drafted this. The PIX capture was taken by hand.
throny commented 2026-12-03 07:50:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-12-03T07:50:36Z.


New candidates from today's upstream commits (screened from commit messages and diffs; not yet compared in depth with XCL's code):

  • C126 another project, commit 631b2ed (only its AMD part): drops a phantom ~2.56 GiB reservation from the video-memory room it keeps, reuses pooled shared buffers for exact views on AMD, retires recycled command lists in one locked batch instead of one lock per list, and shrinks the spare pools on low-RAM systems instead of turning them off. About 120 lines. No numbers given. Possible fit: AMD residency and lock overhead; check against the AMD frame-time work first.
  • C127 another project, commit 3bea97f4: a load from an image the shader also stores to goes through the write view (channels picked by the destination swizzle), with a check that the host can load every UAV format. +144/-31, with tests. Fit: load/store aliasing in one shader, if XCL refuses or mistranslates that shape.
  • C128 another project, commit d2cfd081 (builds on C127): a load that may alias a store picks the read or the write view per console slot at run time instead of refusing. +146/-50. Port after C127 if that one helps.

Skipped: a DRED device-removal report (XCL already has it under XCL_DRED=1), audio, menus, and the rest.

AI use: Claude Code (Claude Haiku 5.5 read the commits; Claude Opus 5.5 checked against XCL and wrote this).

<!-- greyfinch-sync:ivall/xcl:comment:7371496219 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3011#issuecomment-7371496219). Originally posted by [throny](https://github.com/throny) on 2026-12-03T07:50:36Z. --- New candidates from today's upstream commits (screened from commit messages and diffs; not yet compared in depth with XCL's code): - **C126** another project, commit `631b2ed` (only its AMD part): drops a phantom ~2.56 GiB reservation from the video-memory room it keeps, reuses pooled shared buffers for exact views on AMD, retires recycled command lists in one locked batch instead of one lock per list, and shrinks the spare pools on low-RAM systems instead of turning them off. About 120 lines. No numbers given. Possible fit: AMD residency and lock overhead; check against the AMD frame-time work first. - **C127** another project, commit `3bea97f4`: a load from an image the shader also stores to goes through the write view (channels picked by the destination swizzle), with a check that the host can load every UAV format. +144/-31, with tests. Fit: load/store aliasing in one shader, if XCL refuses or mistranslates that shape. - **C128** another project, commit `d2cfd081` (builds on C127): a load that may alias a store picks the read or the write view per console slot at run time instead of refusing. +146/-50. Port after C127 if that one helps. Skipped: a DRED device-removal report (XCL already has it under `XCL_DRED=1`), audio, menus, and the rest. AI use: Claude Code (Claude Haiku 5.5 read the commits; Claude Opus 5.5 checked against XCL and wrote this).
Sign in to join this conversation.
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#3011
No description provided.