Shaders: console containers are walked without decoding instructions #1073

Merged
TG0000 merged 1 commit from upstream-pr/1082 into main 2026-11-30 01:37:23 +00:00
TG0000 commented 2026-11-24 11:24:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by TG0000 on 2026-11-24T11:24:10Z.


While a title loads, every console shader it submits goes through xbox::parse, and once through the instruction statistics of shader::capture. Both only need an instruction's length, whether it ends the program, its branch offset and its mnemonic, but they used rdna2::decode for that: three Vecs, SipHash lookups and bit-at-a-time field reads per instruction, with each program decoded in full three times.

I sampled a retail title's running threads for its first 40 s on main (6efdabc): xbox::parse was in 20.3 % of the samples and InstStats::add_shader in 10.8 %, on the threads that make the title's pipelines.

This adds rdna2_scan::step, which walks code from tables built from the decoder's own tables and does not allocate. decode() is unchanged and stays the reference that the tests compare against.

A whole retail pack: 26 503 shaders, 44.4 M instructions, one thread before after
xbox::parse (about 2 s of both is inflate) 38.1 s 4.7 s 8.1x
instruction statistics 23.3 s 1.8 s 13x

A digest over the Debug output of every parsed shader and of its statistics is the same before and after, for the whole pack.

Synthetic benchmark (bench_scan, release, three runs, other load on the machine). "Before" is the old walk, kept in the tests as the reference:

ns / instruction before after
split_segments 230 - 253 21 - 22 11 - 12x
branch_targets 346 - 370 20 - 22 17 - 18x
statistics 408 - 466 21 - 22 19 - 21x

The same sampling on this PR's head (one run each): 2150 samples of running threads instead of 3570; xbox::parse and InstStats::add_shader are below 12 % each over the run (no longer in the sampler's top 26; on one thread and 4 s window parse still had 13.5 %, inflate included). shader::capture itself is still visible (its lock and hashing, which #1026 is about). One run each, so take it as a direction, not a figure.

Related: #1026 moves the statistics of shader::capture to a worker thread (shader.rs only, no shared file). This PR makes that work cheaper, and also the parse that every pipeline translation does on its own thread. #479 speeds up decode() itself. Both change rdna2.rs; I have not tried merging them together.

What is in it (one commit)

  • gpu/rdna2_scan.rs (new): the tables, step, and its tests.
  • gpu/xbox.rs: split_segments, branch_targets, is_data_block and InstStats use it. A segment with s_getpc_b64 three instructions before an s_setpc_b64 (where resolve_far_jumps may find a far jump) still goes through decode. Mnemonics are counted by number and named once per shader.
  • gpu/rdna2.rs: three helpers are visible to the sibling module; mnemonic is split into mnemonic_of. No change in behaviour.
  • build.rs: the new file is part of the translator's source identity. As with any change to these sources, the translation cache is rebuilt once.

It is over 400 changed lines because more than half of them are the tests and the old walks they compare with.

Tested

  • AMD Radeon RX 6800 (driver 32.0.21045.29003), Ryzen 9 5900X, Windows 11 build 26300, Rust 1.100.0 stable-x86_64-pc-windows-msvc.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 (debug): 741 passed, 3 failed, 42 ignored. The three failures are title_textures::placed_title_textures_share_vram_and_preserve_pixels, title_textures::transitions_apply_when_their_list_is_submitted and vram::d32s8_targets_take_their_own_size_of_video_memory; the same three fail on main (384f7f7) on this machine.
  • SKIPPED: test_title_draws_with_a_root_signature_under_the_debug_layer and uploads_start_from_each_subresources_state (no D3D12 debug layer).
  • New tests: every_opcode_steps_as_it_decodes (every opcode of every primary encoding, assigned or not, with literals, SDWA / DPP and cut short), random_dwords_step_as_they_decode (100 000), programs_and_statistics_are_as_decoded (3 000 random programs with branches, far jumps, data blocks and padding: segments, branch targets, data blocks and statistics against the old walks).
  • cargo test --release -p xcl --lib scan_tests -- --ignored --nocapture for the benchmark.
  • A retail title reaches the same 60 presents per 2 s as main. The frame counts of these runs vary too much from run to run (earlier runs of 6efdabc gave 416 and 928) to show the gain.

Regression run

The title: line of both blocks is replaced by a neutral name; the rest is as scripts/smoke.ps1 printed it. The main block is from a run on the same machine by another session.

main:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: AMD Radeon RX 6800
title: retail-title-1.0.2.1
seconds: 45
exit: 0x0
frames shown: 954 (PresentX 954)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15118 MB

PR:

xcl-smoke v1
commit: 3c325a9080790815bae0e79349ac24d93f2bb52b
gpu: AMD Radeon RX 6800
title: retail-title-1.0.2.1
seconds: 45
exit: 0x0
frames shown: 1030 (PresentX 1030)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15102 MB

Not tested

  • NVIDIA and Intel GPUs, Wine, XCL_DUMP_SHADERS=1.
  • Load time as a user sees it: I have no stable number for it.
  • Merged together with #479, #1026 or the other open PRs on rdna2.rs.

AI use

  • Claude Code with Claude Opus 5.5 found the cost with a sampling profiler of its own, wrote the change, the tests and this description, and ran everything above.
<!-- greyfinch-sync:ivall/xcl:issue:5471207912 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1082). Originally posted by [TG0000](https://github.com/TG0000) on 2026-11-24T11:24:10Z. --- While a title loads, every console shader it submits goes through `xbox::parse`, and once through the instruction statistics of `shader::capture`. Both only need an instruction's length, whether it ends the program, its branch offset and its mnemonic, but they used `rdna2::decode` for that: three `Vec`s, SipHash lookups and bit-at-a-time field reads per instruction, with each program decoded in full three times. I sampled a retail title's running threads for its first 40 s on `main` (6efdabc): `xbox::parse` was in 20.3 % of the samples and `InstStats::add_shader` in 10.8 %, on the threads that make the title's pipelines. This adds `rdna2_scan::step`, which walks code from tables built from the decoder's own tables and does not allocate. `decode()` is unchanged and stays the reference that the tests compare against. | A whole retail pack: 26 503 shaders, 44.4 M instructions, one thread | before | after | | |---|---|---|---| | `xbox::parse` (about 2 s of both is inflate) | 38.1 s | 4.7 s | 8.1x | | instruction statistics | 23.3 s | 1.8 s | 13x | A digest over the `Debug` output of every parsed shader and of its statistics is the same before and after, for the whole pack. Synthetic benchmark (`bench_scan`, release, three runs, other load on the machine). "Before" is the old walk, kept in the tests as the reference: | ns / instruction | before | after | | |---|---|---|---| | `split_segments` | 230 - 253 | 21 - 22 | 11 - 12x | | `branch_targets` | 346 - 370 | 20 - 22 | 17 - 18x | | statistics | 408 - 466 | 21 - 22 | 19 - 21x | The same sampling on this PR's head (one run each): 2150 samples of running threads instead of 3570; `xbox::parse` and `InstStats::add_shader` are below 12 % each over the run (no longer in the sampler's top 26; on one thread and 4 s window `parse` still had 13.5 %, inflate included). `shader::capture` itself is still visible (its lock and hashing, which #1026 is about). One run each, so take it as a direction, not a figure. Related: #1026 moves the statistics of `shader::capture` to a worker thread (`shader.rs` only, no shared file). This PR makes that work cheaper, and also the `parse` that every pipeline translation does on its own thread. #479 speeds up `decode()` itself. Both change `rdna2.rs`; I have not tried merging them together. **What is in it** (one commit) - `gpu/rdna2_scan.rs` (new): the tables, `step`, and its tests. - `gpu/xbox.rs`: `split_segments`, `branch_targets`, `is_data_block` and `InstStats` use it. A segment with `s_getpc_b64` three instructions before an `s_setpc_b64` (where `resolve_far_jumps` may find a far jump) still goes through `decode`. Mnemonics are counted by number and named once per shader. - `gpu/rdna2.rs`: three helpers are visible to the sibling module; `mnemonic` is split into `mnemonic_of`. No change in behaviour. - `build.rs`: the new file is part of the translator's source identity. As with any change to these sources, the translation cache is rebuilt once. It is over 400 changed lines because more than half of them are the tests and the old walks they compare with. **Tested** - AMD Radeon RX 6800 (driver 32.0.21045.29003), Ryzen 9 5900X, Windows 11 build 26300, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`. - `cargo test --workspace --no-fail-fast -- --test-threads=4` (debug): 741 passed, 3 failed, 42 ignored. The three failures are `title_textures::placed_title_textures_share_vram_and_preserve_pixels`, `title_textures::transitions_apply_when_their_list_is_submitted` and `vram::d32s8_targets_take_their_own_size_of_video_memory`; the same three fail on `main` (384f7f7) on this machine. - SKIPPED: `test_title_draws_with_a_root_signature_under_the_debug_layer` and `uploads_start_from_each_subresources_state` (no D3D12 debug layer). - New tests: `every_opcode_steps_as_it_decodes` (every opcode of every primary encoding, assigned or not, with literals, SDWA / DPP and cut short), `random_dwords_step_as_they_decode` (100 000), `programs_and_statistics_are_as_decoded` (3 000 random programs with branches, far jumps, data blocks and padding: segments, branch targets, data blocks and statistics against the old walks). - `cargo test --release -p xcl --lib scan_tests -- --ignored --nocapture` for the benchmark. - A retail title reaches the same 60 presents per 2 s as `main`. The frame counts of these runs vary too much from run to run (earlier runs of 6efdabc gave 416 and 928) to show the gain. **Regression run** The `title:` line of both blocks is replaced by a neutral name; the rest is as `scripts/smoke.ps1` printed it. The main block is from a run on the same machine by another session. main: ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: AMD Radeon RX 6800 title: retail-title-1.0.2.1 seconds: 45 exit: 0x0 frames shown: 954 (PresentX 954) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15118 MB ``` PR: ``` xcl-smoke v1 commit: 3c325a9080790815bae0e79349ac24d93f2bb52b gpu: AMD Radeon RX 6800 title: retail-title-1.0.2.1 seconds: 45 exit: 0x0 frames shown: 1030 (PresentX 1030) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15102 MB ``` **Not tested** - NVIDIA and Intel GPUs, Wine, `XCL_DUMP_SHADERS=1`. - Load time as a user sees it: I have no stable number for it. - Merged together with #479, #1026 or the other open PRs on `rdna2.rs`. **AI use** - Claude Code with Claude Opus 5.5 found the cost with a sampling profiler of its own, wrote the change, the tests and this description, and ran everything above.
fromthemoonx commented 2026-11-24 13:03:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-24T12:09:33Z.


NVIDIA run, since Not tested lists NVIDIA. The change is CPU-side; this covers the suite, the equivalence tests repeated, and the benchmark on another CPU.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (32-lane waves), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974), Graphics Tools installed; rustc 1.100.0 stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17

  • Exact head 3c325a9080790815bae0e79349ac24d93f2bb52b, which is on current main 47efa2e (so also the merged result), debug: cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 744 passed, 0 failed, 42 ignored (lib 701 / 0 / 22; the extra ignored test is bench_scan). New tests passed: rdna2_scan::tests::every_opcode_steps_as_it_decodes, rdna2_scan::tests::random_dwords_step_as_they_decode, xbox::scan_tests::programs_and_statistics_are_as_decoded.

  • gpu::rdna2_scan + gpu::xbox + gpu::rdna2 + gpu::pack lib tests, 10 runs (the random-dword comparison included): 10 of 10 passed (25 passed, 1 ignored each)

  • Integration tests on parsed containers, 3 runs: disasm_e2e, console_shaders, rpf_e2e: 3 of 3 passed

  • bench_scan, release (cargo test --release -p xcl --lib gpu::xbox::scan_tests::bench_scan -- --ignored --nocapture), 3 runs, ns per instruction:

    before after
    split_segments 205 – 220 19.7 – 20.6 10 – 11×
    branch_targets 271 – 277 18.1 – 19.6 14 – 15×
    statistics 260 – 266 18.2 – 18.6 14 – 15×

    Close to your numbers. The old walk is a little faster on this CPU, so the ratios are a bit lower.

  • SKIPPED (no wave64 on this adapter): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware

  • XCL_SAMPLE_* not set, so the retail-pack tests did nothing

Not tested

  • The whole-pack digest and timing (no shader pack here), and a title's load.

AI use

  • Claude Code (Claude Opus 5.5) ran the builds, tests and benchmark on the machine above and wrote this report from the output.
<!-- greyfinch-sync:ivall/xcl:comment:7131046972 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1082#issuecomment-7131046972). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-24T12:09:33Z. --- NVIDIA run, since **Not tested** lists NVIDIA. The change is CPU-side; this covers the suite, the equivalence tests repeated, and the benchmark on another CPU. **Tested** - NVIDIA GeForce RTX 3060 12 GB (32-lane waves), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974), Graphics Tools installed; rustc 1.100.0 `stable-x86_64-pc-windows-msvc`; DXC 1.9.2602.17 - **Exact head `3c325a9080790815bae0e79349ac24d93f2bb52b`**, which is on current `main` `47efa2e` (so also the merged result), debug: `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`: **744 passed, 0 failed, 42 ignored** (lib 701 / 0 / 22; the extra ignored test is `bench_scan`). New tests passed: `rdna2_scan::tests::every_opcode_steps_as_it_decodes`, `rdna2_scan::tests::random_dwords_step_as_they_decode`, `xbox::scan_tests::programs_and_statistics_are_as_decoded`. - `gpu::rdna2_scan` + `gpu::xbox` + `gpu::rdna2` + `gpu::pack` lib tests, 10 runs (the random-dword comparison included): **10 of 10 passed** (25 passed, 1 ignored each) - Integration tests on parsed containers, 3 runs: `disasm_e2e`, `console_shaders`, `rpf_e2e`: **3 of 3 passed** - `bench_scan`, release (`cargo test --release -p xcl --lib gpu::xbox::scan_tests::bench_scan -- --ignored --nocapture`), 3 runs, ns per instruction: | | before | after | | |---|---|---|---| | `split_segments` | 205 – 220 | 19.7 – 20.6 | 10 – 11× | | `branch_targets` | 271 – 277 | 18.1 – 19.6 | 14 – 15× | | statistics | 260 – 266 | 18.2 – 18.6 | 14 – 15× | Close to your numbers. The old walk is a little faster on this CPU, so the ratios are a bit lower. - SKIPPED (no wave64 on this adapter): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` - `XCL_SAMPLE_*` not set, so the retail-pack tests did nothing **Not tested** - The whole-pack digest and timing (no shader pack here), and a title's load. **AI use** - Claude Code (Claude Opus 5.5) ran the builds, tests and benchmark on the machine above and wrote this report from the output.
luckyteagirl commented 2026-11-25 04:10:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T03:35:51Z.


Tested

  • Exact PR head 3c325a9080790815bae0e79349ac24d93f2bb52b on Windows 11 build 26200, Ryzen 9 5980HX, Rust 1.99.0 MSVC. The focused scanner tests are CPU tests; they did not exercise the RX 6800M GPU.
  • cargo test --locked -p xcl --lib -j 2 gpu::rdna2_scan::tests:: -- --test-threads=1 --show-output: 2 passed, 0 failed, 0 ignored. These compare the scanner with the reference decoder across opcode encodings and random dwords.
  • Same command with filter scan_tests: 1 passed, 0 failed, 1 ignored. The passing test compares split segments, branch targets, data-block detection, and instruction statistics against the old decoding walks over 3,000 generated programs. The ignored test is the benchmark.
  • cargo build --locked --workspace -j 2: passed.

Not tested

  • The ignored benchmark, retail shader-pack throughput, title startup or world load, full workspace suite, or interaction with #479 and #1026. These results verify correctness cases and buildability, not the reported speedup.

AI use

OpenAI Codex (GPT-6, exact variant not exposed in this session) reviewed the exact diff, ran the scanner suites and workspace build, checked the logs, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7152062453 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1082#issuecomment-7152062453). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T03:35:51Z. --- **Tested** - Exact PR head `3c325a9080790815bae0e79349ac24d93f2bb52b` on Windows 11 build 26200, Ryzen 9 5980HX, Rust 1.99.0 MSVC. The focused scanner tests are CPU tests; they did not exercise the RX 6800M GPU. - `cargo test --locked -p xcl --lib -j 2 gpu::rdna2_scan::tests:: -- --test-threads=1 --show-output`: **2 passed, 0 failed, 0 ignored**. These compare the scanner with the reference decoder across opcode encodings and random dwords. - Same command with filter `scan_tests`: **1 passed, 0 failed, 1 ignored**. The passing test compares split segments, branch targets, data-block detection, and instruction statistics against the old decoding walks over 3,000 generated programs. The ignored test is the benchmark. - `cargo build --locked --workspace -j 2`: passed. **Not tested** - The ignored benchmark, retail shader-pack throughput, title startup or world load, full workspace suite, or interaction with #479 and #1026. These results verify correctness cases and buildability, not the reported speedup. **AI use** OpenAI Codex (GPT-6, exact variant not exposed in this session) reviewed the exact diff, ran the scanner suites and workspace build, checked the logs, and drafted this report.
DavidM1911 commented 2026-11-25 09:08:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:36:50Z.


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:7157255037 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1082#issuecomment-7157255037). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T08:36:50Z. --- 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!
thehollowedone commented 2026-11-25 13:05:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-25T12:52:41Z.


Independent Windows/NVIDIA workspace run on clean 3c325a9.

Tested
Windows 11 build 26300, RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug. cargo build --offline --locked --workspace passed. cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture reported 744 passed, 0 failed, 42 ignored. The scanner matched the decoder in the primary-opcode and random-dword fixtures. The console shader-container test also matched decoded program and statistics results. Cargo’s passed count includes two wave64 skip notices.

Not tested
Retail shader-pack timing, world load, and other GPUs.

AI-assisted. Codex (GPT-6, exact variant unavailable) ran the tests and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7162980895 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1082#issuecomment-7162980895). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-25T12:52:41Z. --- Independent Windows/NVIDIA workspace run on clean [3c325a9](https://github.com/xcl-dev/xcl/commit/3c325a9080790815bae0e79349ac24d93f2bb52b). **Tested** Windows 11 build 26300, RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug. `cargo build --offline --locked --workspace` passed. `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture` reported **744 passed, 0 failed, 42 ignored**. The scanner matched the decoder in the primary-opcode and random-dword fixtures. The console shader-container test also matched decoded program and statistics results. Cargo’s passed count includes two wave64 skip notices. **Not tested** Retail shader-pack timing, world load, and other GPUs. AI-assisted. Codex (GPT-6, exact variant unavailable) ran the tests and drafted this report.
ClosetPie107 commented 2026-11-25 18:04:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-25T17:42:18Z.


Independent AMD RDNA4 / Linux (RADV, native wave64) test report for head 3c325a9080790815bae0e79349ac24d93f2bb52b (merged locally onto main 68a284a, clean merge).

Hardware & environment

  • AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1, native wave64), Ryzen 5 9600X, 30 GiB RAM, CachyOS Linux
  • Proton Experimental (experimental-11.0-20261112), vkd3d-proton master ec207194 (3.2.0) + dxil-spirv b540c8a2 + relaxed-vtable patch (-Db_ndebug=true), DXVK v3.1.1-209, DXC 1.9.2609.5, Rust x86_64-pc-windows-gnu (debug)

Tested (XCL_REQUIRE_GPU=wave64, VKD3D_CONFIG=ignore_shared_fence, --test-threads=1 --nocapture)

  • gpu::rdna2_scan: 2 passed, 0 failed, 0 ignored (0 skipped)
  • gpu::xbox: 10 passed, 0 failed, 1 ignored (0 skipped)
  • gpu::rdna2: 19 passed, 0 failed, 0 ignored (0 skipped)

Not tested

  • Full workspace test suite, release bench_scan timing, retail title smoke run, native Windows.

AI use

  • T3 Code / Antigravity (Gemini 4 Neon) merged the PR locally, ran the tests on this machine, and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7169881543 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1082#issuecomment-7169881543). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-25T17:42:18Z. --- Independent AMD RDNA4 / Linux (RADV, native wave64) test report for head `3c325a9080790815bae0e79349ac24d93f2bb52b` (merged locally onto `main` `68a284a`, clean merge). **Hardware & environment** - AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1, native wave64), Ryzen 5 9600X, 30 GiB RAM, CachyOS Linux - Proton Experimental (`experimental-11.0-20261112`), `vkd3d-proton` `master` `ec207194` (3.2.0) + `dxil-spirv` `b540c8a2` + relaxed-vtable patch (`-Db_ndebug=true`), DXVK `v3.1.1-209`, DXC `1.9.2609.5`, Rust `x86_64-pc-windows-gnu` (debug) **Tested** (`XCL_REQUIRE_GPU=wave64`, `VKD3D_CONFIG=ignore_shared_fence`, `--test-threads=1 --nocapture`) - `gpu::rdna2_scan`: **2 passed, 0 failed, 0 ignored** (0 skipped) - `gpu::xbox`: **10 passed, 0 failed, 1 ignored** (0 skipped) - `gpu::rdna2`: **19 passed, 0 failed, 0 ignored** (0 skipped) **Not tested** - Full workspace test suite, release `bench_scan` timing, retail title smoke run, native Windows. **AI use** - T3 Code / Antigravity (Gemini 4 Neon) merged the PR locally, ran the tests on this machine, and drafted this report.
throny commented 2026-11-27 19:24:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T19:24:28Z.


merge-check claim
head: 3c325a9080

<!-- greyfinch-sync:ivall/xcl:comment:7226496594 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1082#issuecomment-7226496594). Originally posted by [throny](https://github.com/throny) on 2026-11-27T19:24:28Z. --- merge-check claim head: 3c325a9080790815bae0e79349ac24d93f2bb52b
throny commented 2026-11-27 19:43:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T19:43:48Z.


merge-check
base: 6089122a
head: 3c325a9080
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1468 passed, 0 failed, 48 ignored (the extra ignored one is the PR's benchmark) (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored
review: no correctness finding. The scan's table index and opcode slot are bounded by their field widths and the length is checked against the code; the variant order matches the decoder's. The tests compare the scan with decode(). Small: InstCounts::add_code counts all instructions for every program.
performance: load-time CPU work goes down (the PR's numbers, not measured here); nothing per frame. It changes translator sources (rdna2.rs, xbox.rs, new rdna2_scan.rs in TRANSLATOR_SOURCES): every tester re-translates all shaders once after the merge.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7226813893 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1082#issuecomment-7226813893). Originally posted by [throny](https://github.com/throny) on 2026-11-27T19:43:48Z. --- merge-check base: 6089122a head: 3c325a9080790815bae0e79349ac24d93f2bb52b merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1468 passed, 0 failed, 48 ignored (the extra ignored one is the PR's benchmark) (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored review: no correctness finding. The scan's table index and opcode slot are bounded by their field widths and the length is checked against the code; the variant order matches the decoder's. The tests compare the scan with decode(). Small: InstCounts::add_code counts all instructions for every program. performance: load-time CPU work goes down (the PR's numbers, not measured here); nothing per frame. It changes translator sources (rdna2.rs, xbox.rs, new rdna2_scan.rs in TRANSLATOR_SOURCES): every tester re-translates all shaders once after the merge. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
KOLESNiii commented 2026-11-28 01:12:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T01:12:01Z.


merge-check claim
head: 3c325a9080

<!-- greyfinch-sync:ivall/xcl:comment:7231493231 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1082#issuecomment-7231493231). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T01:12:01Z. --- merge-check claim head: 3c325a9080790815bae0e79349ac24d93f2bb52b
akimfomin commented 2026-11-28 02:04:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by akimfomin on 2026-11-28T02:04:33Z.


Source-only comparison with Xbox2Windows #3198: early parser refusals change the downstream census as well as execution. A useful low-cost control is one synthetic container accepted for statistics but refused by the translator, beside one truncated container and one accepted by both paths. Compare refusal counts as well as parsed instruction lengths.

<!-- greyfinch-sync:ivall/xcl:comment:7232112888 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1082#issuecomment-7232112888). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-28T02:04:33Z. --- Source-only comparison with [Xbox2Windows #3198](https://github.com/R0Y00/Xbox2Windows/pull/3198): early parser refusals change the downstream census as well as execution. A useful low-cost control is one synthetic container accepted for statistics but refused by the translator, beside one truncated container and one accepted by both paths. Compare refusal counts as well as parsed instruction lengths.
KOLESNiii commented 2026-11-28 02:44:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T02:44:13Z.


merge-check
base: 753e8b1a25
head: 3c325a9080
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1515 passed, 0 failed, 48 ignored, 25 SKIPPED: 21 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 1 no heap windows; failing: none. The suite ran on this PC at the same time as 6 other PRs' suites, in one queued job.
review: none. Whole diff read (build.rs, gpu/mod.rs, rdna2.rs visibility + mnemonic_of, new rdna2_scan.rs, xbox.rs branch_targets / is_data_block / split_segments / InstCounts + scan_tests). step() is built from the decoder's own tables and checked against rdna2::decode for every opcode of every primary encoding and 100 000 random inputs; branch_targets falls back to the decoded walk where an s_getpc/s_setpc far jump ends, and the old walks are kept in the tests as the reference.
Re-frozen on main 753e8b1a before posting (main changed this PR's files: README / build.rs / pso.rs / pso_async.rs, in code this PR does not touch); the merge diff was read again against it.
performance: reasoned, not measured here: container parsing and instruction statistics no longer decode each instruction (the PR measures 31 % of a retail game's early samples there); rdna2_scan.rs joins TRANSLATOR_SOURCES, so the translator revision (and the DXIL cache key) changes once, as with any translator change.
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge 39fed5e700075b0b15dd884ac07a8f67ab4c0dbe (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).

<!-- greyfinch-sync:ivall/xcl:comment:7232560612 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1082#issuecomment-7232560612). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T02:44:13Z. --- merge-check base: 753e8b1a2568c37248133880328f5fe1d5220193 head: 3c325a9080790815bae0e79349ac24d93f2bb52b merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1515 passed, 0 failed, 48 ignored, 25 SKIPPED: 21 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 1 no heap windows; failing: none. The suite ran on this PC at the same time as 6 other PRs' suites, in one queued job. review: none. Whole diff read (build.rs, gpu/mod.rs, rdna2.rs visibility + mnemonic_of, new rdna2_scan.rs, xbox.rs branch_targets / is_data_block / split_segments / InstCounts + scan_tests). step() is built from the decoder's own tables and checked against rdna2::decode for every opcode of every primary encoding and 100 000 random inputs; branch_targets falls back to the decoded walk where an s_getpc/s_setpc far jump ends, and the old walks are kept in the tests as the reference. Re-frozen on main 753e8b1a before posting (main changed this PR's files: README / build.rs / pso.rs / pso_async.rs, in code this PR does not touch); the merge diff was read again against it. performance: reasoned, not measured here: container parsing and instruction statistics no longer decode each instruction (the PR measures 31 % of a retail game's early samples there); rdna2_scan.rs joins TRANSLATOR_SOURCES, so the translator revision (and the DXIL cache key) changes once, as with any translator change. verdict: safe to merge hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge 39fed5e700075b0b15dd884ac07a8f67ab4c0dbe (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).
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!1073
No description provided.