kernelx: XCL_TRACE_WAITS names what the title's waiting threads wait on #918

Open
Xeltax wants to merge 2 commits from upstream-pr/924 into main
Xeltax commented 2026-11-24 08:26:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Xeltax on 2026-11-24T08:26:40Z.


XCL_TRACE_WAITS=1: at each thread dump (XCL_THREAD_DUMP_AT, a crash), XCL lists the title's threads that have waited 2 s or more on the title's own events and semaphores. For each one it gives the handles, where in the title each handle was made, and when and from where it was last set or released ("never" when the title never signaled it). The thread stacks say where each thread is; this says which object a waiting thread is waiting for, and so which other thread it depends on. Part of #505.

What is in it

  • a2b5007: each dump starts with the size of the tracer's two tables (handles known, threads waiting), after a Wine run in this thread saw host memory grow with the variable set.
  • crates/xcl/src/hle/waits.rs (new):
    • wrappers for the title's CreateEventA/W, CreateEventExW, CreateSemaphoreW, CreateSemaphoreExW, SetEvent, ReleaseSemaphore, CloseHandle, WaitForSingleObject(Ex) and WaitForMultipleObjects(Ex). Each calls Windows, then records the handle's maker and last signaler, and the calling thread's wait.
    • long_waits() builds the report lines. A handle not made through these imports is named by its kernel type (NtQueryObject). Polls (timeout 0) are not recorded as waits.
  • crates/xcl/src/hle/mod.rs: with the variable set, the wrappers join kernelx's exports, so the title's kernel-family imports reach them. Without it, the import table is unchanged.
  • crates/xcl/src/eh.rs: dump_threads logs the list after the thread stacks.
  • Tests (unit, real Windows objects):
    • a_thread_waiting_on_an_event_nobody_set_is_listed_until_the_event_is_set
    • a_poll_is_not_a_wait_and_semaphores_count_releases
    • an_object_made_elsewhere_is_named_by_its_kernel_type

What it showed on the retail title of #505 (RTX 4080, main 1ec4c98 + this change, XCL_THREAD_DUMP_AT=88,98, A pressed through XCL_PRESS_AT; frames stop at ~74 s, +0x23cf683 at ~104 s)
The dumps give one chain of waits, from the main thread down to a compute bind:

  • The main thread (+0x23cf735) waits on semaphore 0xff8. The frame-loop thread released it 619 times, from +0x23cf2c9, the last time at 73.6 s.
  • The frame-loop thread (+0x23cf104; it makes the first ListX #101 call) waits from ~85 s until the abort at +0x43c3d5d. It waits on an event of a 128-entry ring made at start (+0x43c39dc, one event per entry). The title never sets that event through SetEvent.
  • That ring's worker thread (+0x43c4314 ← +0x43c4591) builds compute pipelines in its binds during the stall: 31 builds on its own thread between 74 and 96.6 s, per the log lines.
  • The other ~45 title threads wait on job-system events that were set until ~74 s, then go idle.
  • With #891 (XCL_PSO_WAIT_MS=50) merged locally, the frame-loop thread's wait ends after ~25 s.

This agrees with the compute-bind waits that throny (#232), leondood1298 and emusynths (#505) found in thread stacks. The new part is the objects and which thread each wait depends on.

Tested

  • NVIDIA GeForce RTX 4080 (driver 621.01), AMD Ryzen 9 9900X, Windows 11 Pro 26200, rustc 1.100.0, DXC 1.9.2609.5; tests in debug, the title in release
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on a2b5007: 719 passed, 0 failed, 41 ignored. SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64).
    • Earlier runs of dc0fb78 failed placed_title_textures_share_vram_and_preserve_pixels and the two tests whose mutex it poisons (#718, #343). Those fail the same way on main 09940bb on this machine; this change does not touch them.
  • cargo test -p xcl --lib waits: the 3 new tests pass.
  • The retail title with XCL_TRACE_WAITS=1: the runs above.

Regression run (60 s, XCL_TRACE_WAITS unset)

main:

xcl-smoke v1
commit: 09940bb87fa11bc394fd9e5de570c2b7cfd16323
gpu: NVIDIA GeForce RTX 4080
title: RetailTitle
seconds: 60
exit: 0x0
frames shown: 1629 (PresentX 1629)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 16479 MB

PR:

xcl-smoke v1
commit: a2b500731907c40f1171520af53820d70918312f
gpu: NVIDIA GeForce RTX 4080
title: RetailTitle
seconds: 60
exit: 0x0
frames shown: 1644 (PresentX 1644)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 17742 MB

Not tested

  • AMD and Intel GPUs. The change does not touch the GPU path, but no run was made there.
  • Waits that do not go through the title's imports: SleepConditionVariable*, SleepEx, WaitOnAddress, and handles waited on inside system DLLs.
  • What sets the ring's events. It is neither the title's SetEvent nor ID3D12Fence::SetEventOnCompletion (checked with a local hook that is not part of this PR).

@throny: here is the branch, as you offered to run it.

AI use

  • Claude Code (Claude Opus 5.5) wrote the code, the tests and this description, ran the title and the tests, and read the logs.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:6577693223 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/924). Originally posted by [Xeltax](https://github.com/Xeltax) on 2026-11-24T08:26:40Z. --- `XCL_TRACE_WAITS=1`: at each thread dump (`XCL_THREAD_DUMP_AT`, a crash), XCL lists the title's threads that have waited 2 s or more on the title's own events and semaphores. For each one it gives the handles, where in the title each handle was made, and when and from where it was last set or released ("never" when the title never signaled it). The thread stacks say where each thread is; this says which object a waiting thread is waiting for, and so which other thread it depends on. Part of #505. **What is in it** - `a2b5007`: each dump starts with the size of the tracer's two tables (handles known, threads waiting), after a Wine run in this thread saw host memory grow with the variable set. - `crates/xcl/src/hle/waits.rs` (new): - wrappers for the title's `CreateEventA/W`, `CreateEventExW`, `CreateSemaphoreW`, `CreateSemaphoreExW`, `SetEvent`, `ReleaseSemaphore`, `CloseHandle`, `WaitForSingleObject(Ex)` and `WaitForMultipleObjects(Ex)`. Each calls Windows, then records the handle's maker and last signaler, and the calling thread's wait. - `long_waits()` builds the report lines. A handle not made through these imports is named by its kernel type (`NtQueryObject`). Polls (timeout 0) are not recorded as waits. - `crates/xcl/src/hle/mod.rs`: with the variable set, the wrappers join kernelx's exports, so the title's kernel-family imports reach them. Without it, the import table is unchanged. - `crates/xcl/src/eh.rs`: `dump_threads` logs the list after the thread stacks. - Tests (unit, real Windows objects): - `a_thread_waiting_on_an_event_nobody_set_is_listed_until_the_event_is_set` - `a_poll_is_not_a_wait_and_semaphores_count_releases` - `an_object_made_elsewhere_is_named_by_its_kernel_type` **What it showed on the retail title of #505** (RTX 4080, `main` `1ec4c98` + this change, `XCL_THREAD_DUMP_AT=88,98`, A pressed through `XCL_PRESS_AT`; frames stop at ~74 s, `+0x23cf683` at ~104 s) The dumps give one chain of waits, from the main thread down to a compute bind: - The main thread (`+0x23cf735`) waits on semaphore `0xff8`. The frame-loop thread released it 619 times, from `+0x23cf2c9`, the last time at 73.6 s. - The frame-loop thread (`+0x23cf104`; it makes the first `ListX #101` call) waits from ~85 s until the abort at `+0x43c3d5d`. It waits on an event of a 128-entry ring made at start (`+0x43c39dc`, one event per entry). The title never sets that event through `SetEvent`. - That ring's worker thread (`+0x43c4314 ← +0x43c4591`) builds compute pipelines in its binds during the stall: 31 builds on its own thread between 74 and 96.6 s, per the log lines. - The other ~45 title threads wait on job-system events that were set until ~74 s, then go idle. - With #891 (`XCL_PSO_WAIT_MS=50`) merged locally, the frame-loop thread's wait ends after ~25 s. This agrees with the compute-bind waits that `throny` (#232), `leondood1298` and `emusynths` (#505) found in thread stacks. The new part is the objects and which thread each wait depends on. **Tested** - NVIDIA GeForce RTX 4080 (driver 621.01), AMD Ryzen 9 9900X, Windows 11 Pro 26200, rustc 1.100.0, DXC 1.9.2609.5; tests in debug, the title in release - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `a2b5007`: 719 passed, 0 failed, 41 ignored. SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64). - Earlier runs of `dc0fb78` failed `placed_title_textures_share_vram_and_preserve_pixels` and the two tests whose mutex it poisons (#718, #343). Those fail the same way on `main` `09940bb` on this machine; this change does not touch them. - `cargo test -p xcl --lib waits`: the 3 new tests pass. - The retail title with `XCL_TRACE_WAITS=1`: the runs above. **Regression run** (60 s, `XCL_TRACE_WAITS` unset) main: ``` xcl-smoke v1 commit: 09940bb87fa11bc394fd9e5de570c2b7cfd16323 gpu: NVIDIA GeForce RTX 4080 title: RetailTitle seconds: 60 exit: 0x0 frames shown: 1629 (PresentX 1629) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 16479 MB ``` PR: ``` xcl-smoke v1 commit: a2b500731907c40f1171520af53820d70918312f gpu: NVIDIA GeForce RTX 4080 title: RetailTitle seconds: 60 exit: 0x0 frames shown: 1644 (PresentX 1644) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 17742 MB ``` **Not tested** - AMD and Intel GPUs. The change does not touch the GPU path, but no run was made there. - Waits that do not go through the title's imports: `SleepConditionVariable*`, `SleepEx`, `WaitOnAddress`, and handles waited on inside system DLLs. - What sets the ring's events. It is neither the title's `SetEvent` nor `ID3D12Fence::SetEventOnCompletion` (checked with a local hook that is not part of this PR). @throny: here is the branch, as you offered to run it. **AI use** - Claude Code (Claude Opus 5.5) wrote the code, the tests and this description, ran the title and the tests, and read the logs. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
frozht commented 2026-11-24 11:05:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by frozht on 2026-11-24T10:23:04Z.


Correction: this report was wrong. The memory growth was not caused by #924.

Between runs, the earlier-run pipeline list (used-pipelines.txt, which #690 preloads) grew from 397 to 1010 entries. Preloading 1010 entries runs the same build out of memory at about 170 s with XCL_TRACE_WAITS unset. With the list trimmed back to 397, memory is 7.6 GB at 300 s. The run I reported here preloaded the larger list, so it says nothing about XCL_TRACE_WAITS. Sorry for the noise. I'll post a new result here only after a run with the same list.

Previous text: XCL_TRACE_WAITS=1 grows host memory: 16 GB at 121 s against 8.7 GB, OOM at 318 s.

  • Correction written with Claude Code (Claude Opus 5.5).
<!-- greyfinch-sync:ivall/xcl:comment:7128703854 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/924#issuecomment-7128703854). Originally posted by [frozht](https://github.com/frozht) on 2026-11-24T10:23:04Z. --- **Correction: this report was wrong.** The memory growth was not caused by #924. Between runs, the earlier-run pipeline list (`used-pipelines.txt`, which #690 preloads) grew from 397 to 1010 entries. Preloading 1010 entries runs the same build out of memory at about 170 s with `XCL_TRACE_WAITS` unset. With the list trimmed back to 397, memory is 7.6 GB at 300 s. The run I reported here preloaded the larger list, so it says nothing about `XCL_TRACE_WAITS`. Sorry for the noise. I'll post a new result here only after a run with the same list. ~~Previous text:~~ `XCL_TRACE_WAITS=1` grows host memory: 16 GB at 121 s against 8.7 GB, OOM at 318 s. - Correction written with Claude Code (Claude Opus 5.5).
Xeltax commented 2026-11-24 11:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Xeltax on 2026-11-24T10:30:53Z.


Thanks for the run, @frozht. I can't reproduce the growth on Windows, and the tracer's own tables stay small:

  • Commit with and without the variable (RTX 4080, Windows 11, 1ec4c98 + this change, world loading):

    20 s 40 s 60 s 80 s 100 s
    without XCL_TRACE_WAITS 15.1 GB 16.5 GB 19.6 GB 28.1 GB 28.8 GB
    with it 15.4 GB 16.5 GB 19.8 GB 28.2 GB 28.5 GB
  • The tables themselves. I pushed a2b5007, which makes each dump start with the size of the two tables. On Windows, with XCL_THREAD_DUMP_AT=60,120 and the abort at 115 s, they held 851 and 878 handles, and 42 and 44 waiting threads. Both are keyed by handle and by thread, and an entry goes with CloseHandle or when its wait returns.

So if the 7 GB you see comes from this code, it is not these tables. Could you rerun a2b5007 under Wine with XCL_THREAD_DUMP_AT=60?

  • If the counts are small there too, the growth is somewhere the wrappers call into.
  • A guess, not checked: Wine's RtlCaptureStackBackTrace, which every recorded wait calls once to find the title's caller. If that is it, recording the caller only for waits that last could be the fix. I'd rather measure first.

AI use: Claude Code (Claude Opus 5.5) ran the comparison and wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7128881714 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/924#issuecomment-7128881714). Originally posted by [Xeltax](https://github.com/Xeltax) on 2026-11-24T10:30:53Z. --- Thanks for the run, @frozht. I can't reproduce the growth on Windows, and the tracer's own tables stay small: - **Commit with and without the variable** (RTX 4080, Windows 11, `1ec4c98` + this change, world loading): | | 20 s | 40 s | 60 s | 80 s | 100 s | |---|---|---|---|---|---| | without `XCL_TRACE_WAITS` | 15.1 GB | 16.5 GB | 19.6 GB | 28.1 GB | 28.8 GB | | with it | 15.4 GB | 16.5 GB | 19.8 GB | 28.2 GB | 28.5 GB | - **The tables themselves.** I pushed `a2b5007`, which makes each dump start with the size of the two tables. On Windows, with `XCL_THREAD_DUMP_AT=60,120` and the abort at 115 s, they held 851 and 878 handles, and 42 and 44 waiting threads. Both are keyed by handle and by thread, and an entry goes with `CloseHandle` or when its wait returns. So if the 7 GB you see comes from this code, it is not these tables. Could you rerun `a2b5007` under Wine with `XCL_THREAD_DUMP_AT=60`? - If the counts are small there too, the growth is somewhere the wrappers call into. - A guess, not checked: Wine's `RtlCaptureStackBackTrace`, which every recorded wait calls once to find the title's caller. If that is it, recording the caller only for waits that last could be the fix. I'd rather measure first. AI use: Claude Code (Claude Opus 5.5) ran the comparison and wrote this reply.
SlopTart commented 2026-11-24 11:05:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T10:37:31Z.


Linux / AMD RDNA3 datapoint.

Merged state: head dc0fb78 onto main 02bfd1d, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 719 passed, 11 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). XCL_TRACE_WAITS naming green.

Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.

Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross x86_64-pc-windows-gnu, XCL_NETWORK=0, release profile, --test-threads=4. My Linux rows: #42 / #718.

AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7129028481 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/924#issuecomment-7129028481). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-24T10:37:31Z. --- Linux / AMD RDNA3 datapoint. **Merged state:** head `dc0fb78` onto main `02bfd1d`, clean merge. **Full suite, `cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4`:** **719 passed, 11 failed, 41 ignored**; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). XCL_TRACE_WAITS naming green. **Not tested:** retail titles (none here), Windows, RDNA4. Counts only, no game data. **Machine:** RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross `x86_64-pc-windows-gnu`, `XCL_NETWORK=0`, release profile, `--test-threads=4`. My Linux rows: #42 / #718. AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
throny commented 2026-11-25 09:08:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-25T08:53:56Z.


Test report for exact head a2b5007. No other report on this head yet, and it carries goal:world-load.

Tested

  • Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 4080 (driver 610.88, 32-lane waves), Intel i9-12900K, 64 GB; Rust 1.100.0 MSVC; DXC 1.9.2602.17; tests in debug, title runs in release.
  • cargo build --workspace && cargo test --workspace -- --test-threads=4 on a2b5007 as it is (its own base): 719 passed, 0 failed, 41 ignored, first run. SKIPPED: 2 lines (no wave64 on this adapter, and the like).
  • scripts/smoke.ps1, the retail title, 60 s, release builds, main 568e7db first, then this head (XCL_TRACE_WAITS unset, so the default path):

main:

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: NVIDIA GeForce RTX 4080
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1603 (PresentX 1603)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15860 MB

PR:

xcl-smoke v1
commit: a2b500731907c40f1171520af53820d70918312f
gpu: NVIDIA GeForce RTX 4080
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1593 (PresentX 1593)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 16599 MB

Not tested: XCL_TRACE_WAITS=1 on a title run, AMD, the head merged onto current main.

AI use: Claude Code (Claude Opus 5.5) ran this and wrote the report; the diff was read for safety by a Claude Opus 5.5 sub-agent before it was built.

<!-- greyfinch-sync:ivall/xcl:comment:7157610212 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/924#issuecomment-7157610212). Originally posted by [throny](https://github.com/throny) on 2026-11-25T08:53:56Z. --- Test report for exact head `a2b5007`. No other report on this head yet, and it carries `goal:world-load`. **Tested** - Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 4080 (driver 610.88, 32-lane waves), Intel i9-12900K, 64 GB; Rust 1.100.0 MSVC; DXC 1.9.2602.17; tests in debug, title runs in release. - `cargo build --workspace && cargo test --workspace -- --test-threads=4` on `a2b5007` as it is (its own base): **719 passed, 0 failed, 41 ignored**, first run. `SKIPPED`: 2 lines (no wave64 on this adapter, and the like). - `scripts/smoke.ps1`, the retail title, 60 s, release builds, `main` `568e7db` first, then this head (`XCL_TRACE_WAITS` unset, so the default path): main: ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: NVIDIA GeForce RTX 4080 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1603 (PresentX 1603) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15860 MB ``` PR: ``` xcl-smoke v1 commit: a2b500731907c40f1171520af53820d70918312f gpu: NVIDIA GeForce RTX 4080 title: retail-title seconds: 60 exit: 0x0 frames shown: 1593 (PresentX 1593) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 16599 MB ``` **Not tested:** `XCL_TRACE_WAITS=1` on a title run, AMD, the head merged onto current `main`. AI use: Claude Code (Claude Opus 5.5) ran this and wrote the report; the diff was read for safety by a Claude Opus 5.5 sub-agent before it was built.
DavidM1911 commented 2026-11-25 10:10:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:30:59Z.


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

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

Thanks!

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

Imported from ivall/xcl. Originally posted by 4usphs on 2026-11-25T11:52:33Z.


AMD run on the exact head a2b5007 (a2b5007319), as pushed on its base 09940bb (not merged onto current main), on two AMD adapters with native 64-lane waves: RDNA4 and the console's generation, RDNA2.

Tested

  • Ryzen 7 9800X3D, Windows 11 Pro 26200, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug, clean checkout, XCL_TRANSLATED_CACHE=0; adapter picked with XCL_ADAPTER.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4:
    • AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32029.2010: 716 passed, 3 failed, 41 ignored
    • AMD Radeon(TM) Graphics, the 9800X3D's iGPU (RDNA2, gfx1036), driver 32.0.21045.29003: 716 passed, 3 failed, 41 ignored
  • No SKIPPED tests on either adapter.
  • This PR's tests a_thread_waiting_on_an_event_nobody_set_is_listed_until_the_event_is_set, a_poll_is_not_a_wait_and_semaphores_count_releases, an_object_made_elsewhere_is_named_by_its_kernel_type run and pass on both adapters.
  • The 3 failures on each adapter are the title-texture group (placed_title_textures_share_vram_and_preserve_pixels at its cubemap reuse check, transitions_apply_when_their_list_is_submitted, d32s8_targets_take_their_own_size_of_video_memory): the intermittent failure of #718, which takes the other two with it (#673), not this PR. They pass on their own on this head, and cargo test -p xcl --lib -- --test-threads=4 on the base 09940bb fails the same 3 on both adapters.

Not tested

  • smoke or a retail title (I have none), a release build, Linux.

AI use

  • Claude Code (Claude Opus 5.5) read the diff, ran the tests and the base-commit controls on my PC and wrote this report. I have not reviewed the code.
<!-- greyfinch-sync:ivall/xcl:comment:7161620110 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/924#issuecomment-7161620110). Originally posted by [4usphs](https://github.com/4usphs) on 2026-11-25T11:52:33Z. --- AMD run on the exact head `a2b5007` (a2b500731907c40f1171520af53820d70918312f), as pushed on its base `09940bb` (not merged onto current `main`), on two AMD adapters with native 64-lane waves: RDNA4 and the console's generation, RDNA2. **Tested** - Ryzen 7 9800X3D, Windows 11 Pro 26200, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug, clean checkout, `XCL_TRANSLATED_CACHE=0`; adapter picked with `XCL_ADAPTER`. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: - AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32029.2010: **716 passed, 3 failed, 41 ignored** - AMD Radeon(TM) Graphics, the 9800X3D's iGPU (RDNA2, `gfx1036`), driver 32.0.21045.29003: **716 passed, 3 failed, 41 ignored** - No `SKIPPED` tests on either adapter. - This PR's tests `a_thread_waiting_on_an_event_nobody_set_is_listed_until_the_event_is_set`, `a_poll_is_not_a_wait_and_semaphores_count_releases`, `an_object_made_elsewhere_is_named_by_its_kernel_type` run and pass on both adapters. - The 3 failures on each adapter are the title-texture group (`placed_title_textures_share_vram_and_preserve_pixels` at its cubemap reuse check, `transitions_apply_when_their_list_is_submitted`, `d32s8_targets_take_their_own_size_of_video_memory`): the intermittent failure of #718, which takes the other two with it (#673), not this PR. They pass on their own on this head, and `cargo test -p xcl --lib -- --test-threads=4` on the base `09940bb` fails the same 3 on both adapters. **Not tested** - smoke or a retail title (I have none), a release build, Linux. **AI use** - Claude Code (Claude Opus 5.5) read the diff, ran the tests and the base-commit controls on my PC and wrote this report. I have not reviewed the code.
ClosetPie107 commented 2026-11-25 13:05:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-25T12:28:22Z.


Linux / AMD RDNA4 (RADV) test report for head a2b5007 merged locally onto main 1a0bbe3 (clean merge).

Environment

  • AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS
  • Proton Experimental (experimental-11.0-20261112), vkd3d-proton v3.1 (#257 + dxil-spirv 53aac418), DXVK v3.1.1-209, DXC 1.9.2609.5, x86_64-pc-windows-gnu cross-compile

Tested (debug test binary under Wine, --test-threads=1 --nocapture)

  • hle::waits::tests: 3 passed, 0 failed, 0 ignored, 0 skipped (0.01 s).

Not tested: full workspace suite, retail title run, native Windows.

AI use: T3 Code / Antigravity (Gemini 4 Neon) merged, built, ran the tests on this machine, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7162419119 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/924#issuecomment-7162419119). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-25T12:28:22Z. --- Linux / AMD RDNA4 (RADV) test report for head `a2b5007` merged locally onto `main` `1a0bbe3` (clean merge). **Environment** - AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS - Proton Experimental (`experimental-11.0-20261112`), vkd3d-proton v3.1 (`#257` + `dxil-spirv` `53aac418`), DXVK `v3.1.1-209`, DXC `1.9.2609.5`, `x86_64-pc-windows-gnu` cross-compile **Tested** (debug test binary under Wine, `--test-threads=1 --nocapture`) - `hle::waits::tests`: **3 passed, 0 failed, 0 ignored, 0 skipped** (0.01 s). **Not tested:** full workspace suite, retail title run, native Windows. **AI use:** T3 Code / Antigravity (Gemini 4 Neon) merged, built, ran the tests on this machine, and drafted this report.
Prime1997 commented 2026-11-26 14:02:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T13:16:04Z.

Review: COMMENTED


Exact reviewed head: a2b500731907c40f1171520af53820d70918312f.

Needs a diagnostic correction; retain the tracing work. ReleaseSemaphore records signaled(h) before calling Windows, and describe labels that record as “last released”. A valid semaphore already at its maximum rejects another release, but this code still increments its signal count and replaces the last-signaler record. That can name a failed operation as the producer that should have woken a stalled thread. SetEvent has the same pre-call recording order.

Please distinguish attempts from successful signals, or update the successful-signal record only after a nonzero Windows return while preserving the caller's last-error value.

This is a source review of the exact head above, especially crates/xcl/src/hle/waits.rs:201–210 and 283–285; no native test or retail run was performed for this finding. Current main has no corresponding tracer, so this is not a duplicate. The earlier public memory-growth allegation was retracted by its author and is not evidence for this finding.

AI use: Codex (GPT-6) reviewed the source and checked the stated evidence. Optional temporary Discord for coordinating contributor work, testing and comparing results.

<!-- greyfinch-sync:ivall/xcl:review:6074766207 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/924#pullrequestreview-6074766207). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T13:16:04Z. **Review:** COMMENTED --- Exact reviewed head: `a2b500731907c40f1171520af53820d70918312f`. **Needs a diagnostic correction; retain the tracing work.** `ReleaseSemaphore` records `signaled(h)` before calling Windows, and `describe` labels that record as “last released”. A valid semaphore already at its maximum rejects another release, but this code still increments its signal count and replaces the last-signaler record. That can name a failed operation as the producer that should have woken a stalled thread. `SetEvent` has the same pre-call recording order. Please distinguish attempts from successful signals, or update the successful-signal record only after a nonzero Windows return while preserving the caller's last-error value. This is a source review of the exact head above, especially `crates/xcl/src/hle/waits.rs:201–210` and `283–285`; **no native test or retail run was performed for this finding**. Current main has no corresponding tracer, so this is not a duplicate. The earlier public memory-growth allegation was retracted by its author and is not evidence for this finding. AI use: Codex (GPT-6) reviewed the source and checked the stated evidence. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing and comparing results.
Foniass commented 2026-12-01 04:30:21 +00:00 (Migrated from github.com)

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


Triage (#1607) – head a2b5007

No open or merged PR adds a wait tracer. Other #505 diagnostics (#1123, #1323, #1811) work on GPU queues or thread names, not on the title's events and semaphores. Off by default: the wrappers are only added to the kernel export table when XCL_TRACE_WAITS is set, and kernelx exports none of these names itself, so nothing is replaced. No problems found in the diff.

Recommendation: keep open.

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

<!-- greyfinch-sync:ivall/xcl:comment:7300801798 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/924#issuecomment-7300801798). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:30:21Z. --- **Triage (#1607)** – head a2b5007 No open or merged PR adds a wait tracer. Other #505 diagnostics (#1123, #1323, #1811) work on GPU queues or thread names, not on the title's events and semaphores. Off by default: the wrappers are only added to the kernel export table when XCL_TRACE_WAITS is set, and kernelx exports none of these names itself, so nothing is replaced. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.

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

git switch 'main'
git merge --no-ff 'upstream-pr/924'
git switch 'upstream-pr/924'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/924'
git switch 'upstream-pr/924'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/924'
git switch 'main'
git merge --squash 'upstream-pr/924'
git switch 'main'
git merge --ff-only 'upstream-pr/924'
git switch 'main'
git merge 'upstream-pr/924'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!918
No description provided.