dxil: refuse wave64 VS/PS with upper-lane reads in 32-lane mode (#1895) #2242

Closed
zondy1i wants to merge 1 commit from upstream-pr/2252 into main
zondy1i commented 2026-11-25 11:24:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by zondy1i on 2026-11-25T11:24:23Z.


What is in it
Fixes the remaining item (item 1) of #1895 (item 2, XCL_DXIL_NO_OPT, was already merged in #2013):

  • crates/xcl/src/gpu/dxil/kernel.rs: in translate_on_this_thread, when lowering a Vertex or Pixel entry with o.wave64 && o.split (32-lane hardware waves such as NVIDIA), run upper_lanes::analyze(&cfg.insts) and refuse the shader ("wave64 VS / PS in 32-lane waves: a read of lanes 32–63") if any read is non-Native (matching recomp::lower::lower_graphics).
  • crates/xcl/src/gpu/recomp/pso.rs: pass split_wave64 from compile_console_shader into direct_graphics and set split: wave64 && split_wave64 in KernelOptions instead of hardcoding split: false, so XCL_DIRECT_DXIL=all falls back to the HLSL upper_lanes path instead of caching broken wave64-only DXIL under the split=1 disk cache key. Modifying kernel.rs also advances XCL_DIRECT_DXIL_SOURCE_ID automatically so stale XCL_DIRECT_DXIL=all cache entries are invalidated.
  • crates/xcl/src/gpu/dxil/coverage.rs: stop overriding split: false for Mode::Vertex / Mode::Pixel in translate_mode so --direct --split 1 accurately reports 32-lane graphics refusals.
  • crates/xcl/src/gpu/dxil/core_tests.rs: add wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode covering translate_vertex, translate_pixel, and coverage::translate_mode for both split: true and split: false, with and without upper-lane reads.

Impact on a 2,000-program sample (--direct --sample 2000 --max-bytes 0, seed 1):

  • --split 1 (32-lane waves): 50 of 874 pixel shaders (5.7%) that read lanes 32–63 are now cleanly refused (wave64 VS / PS in 32-lane waves: a read of lanes 32–63) instead of silently emitting broken wave64-only DXIL; the remaining 824 PS and 178/178 VS still translate directly (1950 / 2000 total, 0 panics).
  • --split 0 (native wave64): 2000 / 2000 (100.0%) still translate directly (no change on native wave64).

Fixes #1895.

Tested

  • Hardware: NVIDIA GeForce RTX 3060 Ti (driver 621.01), AMD Ryzen 5 7500F, rustc 1.100.0, DXC / dxil.dll 1.9.2602.17, debug & release builds.
  • cargo test -p xcl --lib -- gpu::dxil::core_tests gpu::dxil::coverage on da82f10: 25 passed, 0 failed, 1 ignored (including new wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode).
  • cargo test --workspace -- --test-threads=4 on da82f10: 1436 passed, 0 failed, 47 ignored across 37 test binaries.
  • Translation sweeps below were run on the pre-rebase head 2a6d713; the rebase onto current main only resolved a conflict in pso.rs (split_wave64 is threaded through direct_graphics next to fssm_wave64).
  • xcl shaders <pack> --direct --split 1 --sample 2000 --max-bytes 0: 1950 / 2000 translated, 50 PS refused for lanes 32–63, 0 panics.
  • xcl shaders <pack> --direct --split 0 --sample 2000 --max-bytes 0: 2000 / 2000 translated, 0 panics.

Regression run
Baseline (main 568e7db):

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: NVIDIA GeForce RTX 3060 Ti
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1580 (PresentX 1580)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15495 MB

PR (da82f10):

xcl-smoke v1
commit: da82f106813bc7700a4d4ed7cdc93a806ee97b1d
gpu: NVIDIA GeForce RTX 3060 Ti
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1549 (PresentX 1549)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 15536 MB

Not tested

  • Native wave64 GPU execution (AMD RDNA2/RDNA3 hardware; only --split 0 translation coverage verified locally on NVIDIA).
  • Translation sweeps (--sample 2000) were not re-run on the rebased head da82f10; the numbers above are from 2a6d713.

AI use

  • Antigravity (Gemini 4 Neon) assisted with implementing the upper_lanes guard in kernel.rs, threading split_wave64 through pso.rs and coverage.rs, writing the unit test, and running the sweeps and smoke test.
<!-- greyfinch-sync:ivall/xcl:issue:5490399884 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252). Originally posted by [zondy1i](https://github.com/zondy1i) on 2026-11-25T11:24:23Z. --- **What is in it** Fixes the remaining item (item 1) of #1895 (item 2, `XCL_DXIL_NO_OPT`, was already merged in #2013): - **`crates/xcl/src/gpu/dxil/kernel.rs`**: in `translate_on_this_thread`, when lowering a `Vertex` or `Pixel` entry with `o.wave64 && o.split` (32-lane hardware waves such as NVIDIA), run `upper_lanes::analyze(&cfg.insts)` and refuse the shader (`"wave64 VS / PS in 32-lane waves: a read of lanes 32–63"`) if any read is non-`Native` (matching `recomp::lower::lower_graphics`). - **`crates/xcl/src/gpu/recomp/pso.rs`**: pass `split_wave64` from `compile_console_shader` into `direct_graphics` and set `split: wave64 && split_wave64` in `KernelOptions` instead of hardcoding `split: false`, so `XCL_DIRECT_DXIL=all` falls back to the HLSL `upper_lanes` path instead of caching broken wave64-only DXIL under the `split=1` disk cache key. Modifying `kernel.rs` also advances `XCL_DIRECT_DXIL_SOURCE_ID` automatically so stale `XCL_DIRECT_DXIL=all` cache entries are invalidated. - **`crates/xcl/src/gpu/dxil/coverage.rs`**: stop overriding `split: false` for `Mode::Vertex` / `Mode::Pixel` in `translate_mode` so `--direct --split 1` accurately reports 32-lane graphics refusals. - **`crates/xcl/src/gpu/dxil/core_tests.rs`**: add `wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode` covering `translate_vertex`, `translate_pixel`, and `coverage::translate_mode` for both `split: true` and `split: false`, with and without upper-lane reads. Impact on a 2,000-program sample (`--direct --sample 2000 --max-bytes 0`, seed 1): - `--split 1` (32-lane waves): 50 of 874 pixel shaders (5.7%) that read lanes 32–63 are now cleanly refused (`wave64 VS / PS in 32-lane waves: a read of lanes 32–63`) instead of silently emitting broken wave64-only DXIL; the remaining 824 PS and 178/178 VS still translate directly (1950 / 2000 total, 0 panics). - `--split 0` (native wave64): 2000 / 2000 (100.0%) still translate directly (no change on native wave64). Fixes #1895. **Tested** - Hardware: NVIDIA GeForce RTX 3060 Ti (driver 621.01), AMD Ryzen 5 7500F, `rustc 1.100.0`, DXC / `dxil.dll` 1.9.2602.17, debug & release builds. - `cargo test -p xcl --lib -- gpu::dxil::core_tests gpu::dxil::coverage` on `da82f10`: 25 passed, 0 failed, 1 ignored (including new `wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode`). - `cargo test --workspace -- --test-threads=4` on `da82f10`: 1436 passed, 0 failed, 47 ignored across 37 test binaries. - Translation sweeps below were run on the pre-rebase head `2a6d713`; the rebase onto current `main` only resolved a conflict in `pso.rs` (`split_wave64` is threaded through `direct_graphics` next to `fssm_wave64`). - `xcl shaders <pack> --direct --split 1 --sample 2000 --max-bytes 0`: 1950 / 2000 translated, 50 PS refused for `lanes 32–63`, 0 panics. - `xcl shaders <pack> --direct --split 0 --sample 2000 --max-bytes 0`: 2000 / 2000 translated, 0 panics. **Regression run** Baseline (`main` `568e7db`): ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: NVIDIA GeForce RTX 3060 Ti title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1580 (PresentX 1580) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15495 MB ``` PR (`da82f10`): ``` xcl-smoke v1 commit: da82f106813bc7700a4d4ed7cdc93a806ee97b1d gpu: NVIDIA GeForce RTX 3060 Ti title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1549 (PresentX 1549) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 15536 MB ``` **Not tested** - Native wave64 GPU execution (AMD RDNA2/RDNA3 hardware; only `--split 0` translation coverage verified locally on NVIDIA). - Translation sweeps (`--sample 2000`) were not re-run on the rebased head `da82f10`; the numbers above are from `2a6d713`. **AI use** - Antigravity (Gemini 4 Neon) assisted with implementing the `upper_lanes` guard in `kernel.rs`, threading `split_wave64` through `pso.rs` and `coverage.rs`, writing the unit test, and running the sweeps and smoke test.
DarkPanda69 commented 2026-11-25 12:06:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-25T11:39:05Z.


The AMD native wave64 run listed as untested, plus an RTX 3060, paired against main with the direct translator on for the whole GPU suite. On native wave64 hardware the new refusal must not kick in, and nothing that ran before is refused now.

Head 2a6d713 applied on main 426a5a7, debug, Windows 11 Pro 26200, XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu:: --test-threads=4, on main and on this PR for each card:

main this PR
RX 9070 XT (RDNA4, 32.0.32029.2010, native wave64) 626 passed, 3 failed, 22 ignored, 6 SKIPPED 627 passed, 3 failed, 22 ignored, 6 SKIPPED
RTX 3060 (32.0.16.1088, wave32, split wave64) 629 passed, 0 failed, 22 ignored, 23 SKIPPED 630 passed, 0 failed, 22 ignored, 23 SKIPPED

Per-test comparison: on both cards the only difference is the new wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode (ok). No existing test changes result, and the SKIPPED lines are identical, so no graphics program that ran before is refused now on either card. The RX 9070 XT failures are on main too: gpu_image_get_resinfo_past_last_level (reported on #2054) and the fuzz seeds tracked in #2115.

Not tested: a title with XCL_DIRECT_DXIL=1, RDNA2/RDNA3.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7161321771 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7161321771). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-25T11:39:05Z. --- The AMD native wave64 run listed as untested, plus an RTX 3060, paired against `main` with the direct translator on for the whole GPU suite. On native wave64 hardware the new refusal must not kick in, and nothing that ran before is refused now. Head `2a6d713` applied on `main` `426a5a7`, debug, Windows 11 Pro 26200, `XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu:: --test-threads=4`, on `main` and on this PR for each card: | | `main` | this PR | |---|---|---| | RX 9070 XT (RDNA4, 32.0.32029.2010, native wave64) | 626 passed, 3 failed, 22 ignored, 6 SKIPPED | 627 passed, 3 failed, 22 ignored, 6 SKIPPED | | RTX 3060 (32.0.16.1088, wave32, split wave64) | 629 passed, 0 failed, 22 ignored, 23 SKIPPED | 630 passed, 0 failed, 22 ignored, 23 SKIPPED | Per-test comparison: on both cards the only difference is the new `wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode` (ok). No existing test changes result, and the SKIPPED lines are identical, so no graphics program that ran before is refused now on either card. The RX 9070 XT failures are on `main` too: `gpu_image_get_resinfo_past_last_level` ([reported on #2054](https://github.com/xcl-dev/xcl/pull/2054#issuecomment-7160350010)) and the fuzz seeds tracked in #2115. Not tested: a title with `XCL_DIRECT_DXIL=1`, RDNA2/RDNA3. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
jennydeth commented 2026-11-25 15:07:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jennydeth on 2026-11-25T14:14:13Z.


Full workspace run on this head (listed under Not tested). Two failures, both also on the PR's base, so not from this PR.

Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head 2a6d713, base f087b99.

Result: cargo test --workspace -- --test-threads=4: 1173 passed, 2 failed, 26 ignored.

gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator (left 68, right 1)
hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa (format 85 kept: left 28, right 85)
Both fail the same way on the base f087b99 alone, and pass on current main 1a0bbe3, so a rebase onto main should clear them. SKIPPED: 18 GPU tests for no wave64 (expected on this card).

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7164966862 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7164966862). Originally posted by [jennydeth](https://github.com/jennydeth) on 2026-11-25T14:14:13Z. --- Full workspace run on this head (listed under Not tested). Two failures, both also on the PR's base, so not from this PR. Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head 2a6d713, base f087b99. Result: cargo test --workspace -- --test-threads=4: 1173 passed, 2 failed, 26 ignored. gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator (left 68, right 1) hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa (format 85 kept: left 28, right 85) Both fail the same way on the base f087b99 alone, and pass on current main 1a0bbe3, so a rebase onto main should clear them. SKIPPED: 18 GPU tests for no wave64 (expected on this card). AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
throny commented 2026-11-25 15:08:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-25T14:54:03Z.


Two contributors checked independently and found that #1913 solves the same problem (for #1895) in a different way: #1607, group D74. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7165990946 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7165990946). Originally posted by [throny](https://github.com/throny) on 2026-11-25T14:54:03Z. --- <!-- xcl-1607-hint:D74 --> Two contributors checked independently and found that #1913 solves the same problem (for #1895) in a different way: #1607, group D74. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
S1m0ne1997 commented 2026-11-25 16:12:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by S1m0ne1997 on 2026-11-25T15:11:33Z.


Test report for 2a6d71336ad89de71dad83f125344dcf60bb740e (this PR's head), for #1607.

Tested

  • NVIDIA GeForce RTX 4090 24 GB (driver 621.40), AMD Ryzen 9 9950X3D, 47 GB RAM, Windows 11 Home 10.0.26300, rustc 1.100.0 (0ef1bc386 2026-11-09) x86_64-pc-windows-msvc, debug.
  • cargo build --workspace, then cargo test --workspace -- --test-threads=4 at the head: 1173 passed, 2 failed, 26 ignored.
  • SKIPPED (14): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu (no wave64), coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu (no wave64), cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu (no wave64), the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu (no wave64), a_per_lane_2d_or_3d_group_runs_on_the_gpu (no wave64), const_and_null_mask_operands_agree_with_hlsl_on_the_gpu (const_mask, wave64: no wave64), f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)); f16 arithmetic, wave64: no wave64), f32_programs_on_the_gpu (f32 arithmetic, wave64: no wave64; f32 compares, wave64: no wave64), f64_programs_on_the_gpu (f64, wave64: no wave64), integer_programs_on_the_gpu (integer arithmetic, wave64: no wave64; integer carries, wave64: no wave64), mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (mask_ff0_flbit, wave64: no wave64), gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu_wave32_program_in_wave64_hardware (no wave64), pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache (Windows Developer Mode is required): L'applicazione ha richiesto un'operazione che dipende da un componente SDK mancante o non corrispondente. (0x887A002D)).
  • Failed: gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator, hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa

The 2 failures are in this PR's base, not in its change. Both fail the same way on its merge base f087b99 without this PR (rerouted_disk_entries_follow_the_direct_translator: left 68, right 1; pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa: format 85 kept, 28 expected), and both pass on current main 06c9f55. They are the two tests of #2242 / #2248, fixed on main since (#2243 for the first). A rebase onto current main should clear them.

Regression run (retail title, scripts/smoke.ps1 -Seconds 60, release; main built from the commit in its block, this PR from its head with no changes to crates/, both run with the scripts/smoke.ps1 of main, which hashes the name of the game folder)

main:

xcl-smoke v1
commit: 06c9f5505f63f10c5ec49ef932d75b2c28177324
gpu: NVIDIA GeForce RTX 4090
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1599 (PresentX 1599)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16384 MB

this PR:

xcl-smoke v1
commit: 2a6d71336ad89de71dad83f125344dcf60bb740e
gpu: NVIDIA GeForce RTX 4090
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1608 (PresentX 1608)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 18229 MB

Not tested

  • AMD, other NVIDIA cards and drivers, Linux. I did not review the diff; this report is the build, the suite and the regression run only.

AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request.

<!-- greyfinch-sync:ivall/xcl:comment:7166448864 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7166448864). Originally posted by [S1m0ne1997](https://github.com/S1m0ne1997) on 2026-11-25T15:11:33Z. --- Test report for `2a6d71336ad89de71dad83f125344dcf60bb740e` (this PR's head), for #1607. **Tested** - NVIDIA GeForce RTX 4090 24 GB (driver 621.40), AMD Ryzen 9 9950X3D, 47 GB RAM, Windows 11 Home 10.0.26300, `rustc 1.100.0 (0ef1bc386 2026-11-09)` `x86_64-pc-windows-msvc`, debug. - `cargo build --workspace`, then `cargo test --workspace -- --test-threads=4` at the head: **1173 passed, 2 failed, 26 ignored**. - SKIPPED (14): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu` (no wave64), `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu` (no wave64), `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu` (no wave64), `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu` (no wave64), `a_per_lane_2d_or_3d_group_runs_on_the_gpu` (no wave64), `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` (const_mask, wave64: no wave64), `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)); f16 arithmetic, wave64: no wave64), `f32_programs_on_the_gpu` (f32 arithmetic, wave64: no wave64; f32 compares, wave64: no wave64), `f64_programs_on_the_gpu` (f64, wave64: no wave64), `integer_programs_on_the_gpu` (integer arithmetic, wave64: no wave64; integer carries, wave64: no wave64), `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` (mask_ff0_flbit, wave64: no wave64), `gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64), `gpu_wave32_program_in_wave64_hardware` (no wave64), `pso_measurement_compiles_an_exact_synthetic_record` (cannot disable the driver cache (Windows Developer Mode is required): L'applicazione ha richiesto un'operazione che dipende da un componente SDK mancante o non corrispondente. (0x887A002D)). - Failed: `gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator`, `hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa` **The 2 failures are in this PR's base, not in its change.** Both fail the same way on its merge base `f087b99` without this PR (`rerouted_disk_entries_follow_the_direct_translator`: left 68, right 1; `pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa`: format 85 kept, 28 expected), and both pass on current `main` `06c9f55`. They are the two tests of #2242 / #2248, fixed on `main` since (#2243 for the first). A rebase onto current `main` should clear them. **Regression run** (retail title, `scripts/smoke.ps1 -Seconds 60`, release; `main` built from the commit in its block, this PR from its head with no changes to `crates/`, both run with the `scripts/smoke.ps1` of `main`, which hashes the name of the game folder) main: ``` xcl-smoke v1 commit: 06c9f5505f63f10c5ec49ef932d75b2c28177324 gpu: NVIDIA GeForce RTX 4090 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1599 (PresentX 1599) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16384 MB ``` this PR: ``` xcl-smoke v1 commit: 2a6d71336ad89de71dad83f125344dcf60bb740e gpu: NVIDIA GeForce RTX 4090 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1608 (PresentX 1608) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 18229 MB ``` **Not tested** - AMD, other NVIDIA cards and drivers, Linux. I did not review the diff; this report is the build, the suite and the regression run only. *AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request.*
zondy1i commented 2026-11-25 16:12:17 +00:00 (Migrated from github.com)

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


Comparison for #1607 (group D74: #2252 vs #1913):

Both PRs are MERGEABLE, CI-green, and fix the remaining #1895 item (wave64 VS/PS reading lanes 32-63 on 32-lane GPUs):

  • #2252 places the upper_lanes::analyze(&cfg.insts) guard directly inside dxil::kernel::translate_on_this_thread (matching recomp::lower::lower_graphics), avoiding a second full decode pass and protecting every direct translate_vertex / translate_pixel caller (not only pso.rs and coverage.rs). It is compact (+70/-5) and verified on AMD RDNA4 (RX 9070 XT), RTX 3060 / 3060 Ti, and RTX 4090.
  • #1913 was opened earlier and adds a needs_upper_lanes(code) pre-check in recomp/mod.rs called from pso.rs and coverage.rs (plus an XCL_DXIL_NO_OPT line in pso.rs that already landed in #2013), leaving translate_vertex / translate_pixel itself unguarded.

Only one of the two should be merged - if maintainers prefer #1913, I'm happy to close #2252 in its favour.

<!-- greyfinch-sync:ivall/xcl:comment:7167001332 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7167001332). Originally posted by [zondy1i](https://github.com/zondy1i) on 2026-11-25T15:32:27Z. --- Comparison for #1607 (group D74: #2252 vs #1913): Both PRs are `MERGEABLE`, CI-green, and fix the remaining #1895 item (wave64 VS/PS reading lanes 32-63 on 32-lane GPUs): - **#2252** places the `upper_lanes::analyze(&cfg.insts)` guard directly inside `dxil::kernel::translate_on_this_thread` (matching `recomp::lower::lower_graphics`), avoiding a second full decode pass and protecting every direct `translate_vertex` / `translate_pixel` caller (not only `pso.rs` and `coverage.rs`). It is compact (+70/-5) and verified on AMD RDNA4 (RX 9070 XT), RTX 3060 / 3060 Ti, and RTX 4090. - **#1913** was opened earlier and adds a `needs_upper_lanes(code)` pre-check in `recomp/mod.rs` called from `pso.rs` and `coverage.rs` (plus an `XCL_DXIL_NO_OPT` line in `pso.rs` that already landed in #2013), leaving `translate_vertex` / `translate_pixel` itself unguarded. Only one of the two should be merged - if maintainers prefer #1913, I'm happy to close #2252 in its favour.
DavidM1911 commented 2026-11-25 17:07:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T16:58:40Z.


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

  • cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7168816530 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7168816530). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T16:58:40Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun. Thanks!
upstream-sync closed this pull request 2026-11-25 23:08:09 +00:00
CalvyPZ commented 2026-11-25 23:09:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by CalvyPZ on 2026-11-25T22:43:53Z.


This PR has been marked as a duplicate and closed after multiple agreeing checks in #1607. If you believe this is incorrect please re-open with why.

<!-- greyfinch-sync:ivall/xcl:comment:7176720065 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7176720065). Originally posted by [CalvyPZ](https://github.com/CalvyPZ) on 2026-11-25T22:43:53Z. --- This PR has been marked as a duplicate and closed after multiple agreeing checks in #1607. If you believe this is incorrect please re-open with why.
upstream-sync reopened this pull request 2026-11-26 00:04:54 +00:00
zondy1i commented 2026-11-26 03:06:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by zondy1i on 2026-11-26T02:48:18Z.


Rebased onto current main (b49be183); the only conflict was in pso.rs (kept fssm_wave64 and threaded split_wave64 through direct_graphics). Re-ran the unit tests, the full workspace suite (1436 passed, 0 failed) and a 60 s smoke on the new head da82f10; description updated with the new smoke block.

<!-- greyfinch-sync:ivall/xcl:comment:7181134105 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7181134105). Originally posted by [zondy1i](https://github.com/zondy1i) on 2026-11-26T02:48:18Z. --- Rebased onto current `main` (`b49be183`); the only conflict was in `pso.rs` (kept `fssm_wave64` and threaded `split_wave64` through `direct_graphics`). Re-ran the unit tests, the full workspace suite (1436 passed, 0 failed) and a 60 s smoke on the new head `da82f10`; description updated with the new smoke block.
Decodere commented 2026-11-27 08:09:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T08:09:40Z.


Independent desktop NVIDIA verification of PR #2252 at head da82f106813bc7700a4d4ed7cdc93a806ee97b1d (1 commit; exact parent & merge-base: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (da82f106)

Command Result
cargo test --release -p xcl --lib wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1336 filtered out × 3 (0.01s × 3, 0 skipped)
cargo test --release -p xcl --lib gpu::dxil:: -- --test-threads=4 (3 consecutive runs) 185 passed; 0 failed; 3 ignored; 1149 filtered out × 3 (5.69s, 5.87s, 5.49s; 1 self-skipped: gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole — no wave64 on Wave32-only Ada; 184 executed)
cargo test --release -p xcl --lib gpu::recomp::pso:: (3 consecutive runs) 27 passed; 0 failed; 1 ignored; 1309 filtered out × 3 (0.10s, 0.11s, 0.10s, 0 skipped)
cargo build --release -p xcl Clean build (1m 46s, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1518 (PresentX 1518)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14018 MB

PR #2252 (da82f106813bc7700a4d4ed7cdc93a806ee97b1d):

xcl-smoke v1
commit: da82f106813bc7700a4d4ed7cdc93a806ee97b1d
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1515 (PresentX 1515)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13972 MB

Runtime log observations (xcl.log)

  • 9218 log lines, 0 [ERROR] / device-removal / panic lines (dxil_cache: 460 hits, 0 misses, 0 compilation failures; 228 background pipelines, 0 failures).
  • Final draw/memory telemetry in log: 19255 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 13971 MB committed by the process; video memory 6116 MB local, 4650 MB non-local.

Limits of coverage

  • Refusal of wave64 VS/PS direct-DXIL shaders with upper-lane reads in 32-lane mode was directly verified via wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode (3/3), gpu::dxil:: (184 executed, 0 failed, 1 Wave64-only test self-skipped on Wave32-only Ada), and gpu::recomp::pso:: (27/27 × 3).
  • The 60 s retail smoke confirms zero runtime regression on Wave32-only desktop RTX 4060 (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR); native Wave64 hardware acceptance was not exercised on Wave32-only Ada.

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7213216964 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7213216964). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T08:09:40Z. --- Independent desktop NVIDIA verification of **PR #2252** at head `da82f106813bc7700a4d4ed7cdc93a806ee97b1d` (`1` commit; exact parent & merge-base: `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`da82f106`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1336 filtered out` × 3 (`0.01s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib gpu::dxil:: -- --test-threads=4` (3 consecutive runs) | `185 passed; 0 failed; 3 ignored; 1149 filtered out` × 3 (`5.69s`, `5.87s`, `5.49s`; `1` self-skipped: `gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole` — `no wave64` on Wave32-only Ada; `184` executed) | | `cargo test --release -p xcl --lib gpu::recomp::pso::` (3 consecutive runs) | `27 passed; 0 failed; 1 ignored; 1309 filtered out` × 3 (`0.10s`, `0.11s`, `0.10s`, `0` skipped) | | `cargo build --release -p xcl` | Clean build (`1m 46s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, cached baseline on the same machine): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1518 (PresentX 1518) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14018 MB ``` PR #2252 (`da82f106813bc7700a4d4ed7cdc93a806ee97b1d`): ``` xcl-smoke v1 commit: da82f106813bc7700a4d4ed7cdc93a806ee97b1d gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1515 (PresentX 1515) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13972 MB ``` ### Runtime log observations (`xcl.log`) - `9218` log lines, `0` `[ERROR]` / device-removal / panic lines (`dxil_cache`: `460` hits, `0` misses, `0` compilation failures; `228` background pipelines, `0` failures). - Final draw/memory telemetry in log: `19255 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `13971 MB committed by the process; video memory 6116 MB local, 4650 MB non-local`. ### Limits of coverage - Refusal of wave64 VS/PS direct-DXIL shaders with upper-lane reads in 32-lane mode was directly verified via `wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode` (`3/3`), `gpu::dxil::` (`184` executed, `0` failed, `1` Wave64-only test self-skipped on Wave32-only Ada), and `gpu::recomp::pso::` (`27/27` × 3). - The 60 s retail smoke confirms zero runtime regression on Wave32-only desktop RTX 4060 (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR); native Wave64 hardware acceptance was not exercised on Wave32-only Ada. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
futurepro62 commented 2026-11-27 17:54:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-27T17:54:15Z.


NVIDIA and AMD full-suite run, to go with the reports above by Decodere, since none of them covers AMD. Tested exact head da82f106 (on its base b49be18).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1424 passed, 0 failed, 45 ignored. SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, dispatch_chain_native_wave64_builds_whole, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • The new tests ran and passed: wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1435 passed, 0 failed, 47 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main 6089122a too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7224909451 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7224909451). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-27T17:54:15Z. --- NVIDIA and AMD full-suite run, to go with the reports above by Decodere, since none of them covers AMD. Tested exact head `da82f106` (on its base `b49be18`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **1424 passed, 0 failed, 45 ignored**. SKIPPED (no wave64): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `dispatch_chain_native_wave64_builds_whole`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - The new tests ran and passed: `wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **1435 passed, 0 failed, 47 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `--skip` leaves out tests that fail on main `6089122a` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Foniass commented 2026-12-01 07:40:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:40:33Z.


Triage (#1607) – head da82f10

Main commit 50e85c5 ("Recompiler: reject unsafe direct wave64 graphics reads") says it adapts this PR. It adds the same refusal in kernel.rs::translate_on_this_thread, with the same "lanes 32–63" error. It also passes split through for VS/PS in coverage.rs::translate_mode and pso.rs::direct_graphics, and adds wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode to core_tests.rs. #1913, the other PR for #1895, is closed.
Recommendation: close (superseded by main commit 50e85c5).

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:7304345110 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7304345110). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:40:33Z. --- **Triage (#1607)** – head da82f10 Main commit 50e85c5 ("Recompiler: reject unsafe direct wave64 graphics reads") says it adapts this PR. It adds the same refusal in `kernel.rs::translate_on_this_thread`, with the same "lanes 32–63" error. It also passes `split` through for VS/PS in `coverage.rs::translate_mode` and `pso.rs::direct_graphics`, and adds `wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode` to `core_tests.rs`. #1913, the other PR for #1895, is closed. Recommendation: close (superseded by main commit 50e85c5). AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
throny commented 2026-12-01 12:51:09 +00:00 (Migrated from github.com)

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


Closing as superseded: this change is already on main (50e85c5b). main kernel.rs refuses wave64 VS/PS with upper-lane reads in 32-lane mode (kernel.rs ~310-315), pso.rs passes split_wave64 into direct DXIL, test wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode in core_tests.rs (50e85c5b adapted from #2252)

Two independent checks found this: Foniass's close list on #1607 and ours against current main. If something here is still missing on main, say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

<!-- greyfinch-sync:ivall/xcl:comment:7311739737 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2252#issuecomment-7311739737). Originally posted by [throny](https://github.com/throny) on 2026-12-01T12:51:09Z. --- Closing as superseded: this change is already on `main` (50e85c5b). main kernel.rs refuses wave64 VS/PS with upper-lane reads in 32-lane mode (kernel.rs ~310-315), pso.rs passes split_wave64 into direct DXIL, test wave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode in core_tests.rs (50e85c5b adapted from #2252) Two independent checks found this: Foniass's close list on #1607 and ours against current `main`. If something here is still missing on `main`, say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

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