[GH #76] NVIDIA GeForce RTX 5060 Laptop #76

Open
opened 2026-11-25 09:08:55 +00:00 by jhincromwel-star · 0 comments
jhincromwel-star commented 2026-11-25 09:08:55 +00:00 (Migrated from github.com)

Imported from Zettrox/ztrx. Originally posted by jhincromwel-star on 2026-11-25T08:25:40Z.


Update — re-run on current main @ 568e7db (the four failures are still there; a fix is attached)

Same machine as below (NVIDIA GeForce RTX 5060 Laptop GPU, Blackwell, driver 32.0.16.2124; Intel Core 7 240H; Windows 11 Pro 10.0.26300; Rust 1.98.1; debug; DXC 1.9.2602.17). XCL_ADAPTER=nvidia. No XCL_SAMPLE_*.

main @ 568e7db passed failed ignored notes
as is, cargo test -p xcl --lib 1094 4 26 fuzz_validate_and_gpu_0..3, seeds 70, 545, 1019, 1507: CreateComputePipelineState → 0x8007000E
with the change below, .\scripts\test.ps1 1155 0 46 25 GPU tests SKIPPED (20 "no wave64", 3 "per-lane form: refused", 1 "cannot disable the driver cache" (Developer Mode), 1 "no heap windows")

scripts/test.ps1 stops at the first failing target, so the integration binaries did not run in the "as is" row.

The change (the same one as before, rebased onto 568e7db; only recomp/tests.rs needed a hand edit, because main changed the end of that file): group-shared and texel sub go through the compare-exchange loop that rsub, smin and fmin already use (recomp/emit.rs, dxil/lower_mem.rs), the fuzz emitter does the same, and a new test gpu_ds_sub_rtn_u32_with_a_variable_operand (64 lanes take their own number off one dword) fails without it and passes with it on this GPU, both with XCL_DIRECT_DXIL unset and =1. Four files, 72 insertions, 14 deletions. The four fuzz tests also pass with XCL_ADAPTER=intel (integrated GPU), before and after.

Correction to the first version of this report: the skip breakdown on 689f2db was wrong. The 23 skips there were 18 "no wave64" (7 unnamed + 11 named after a wave64 case), 3 "per-lane form: refused", 1 driver cache, 1 heap windows.

What is behind the four failures (unchanged from the first version): of seeds 0..2000, 56 fail on this GPU, and every one contains a group-shared Sub with a non-constant operand. None without one fails (594 of 594 seeds with no group-shared atomic pass), and a Sub with a constant operand always passes (11 of 11). The pipeline is refused whenever a group-shared atomicrmw add takes a negated runtime value. The existing workaround (0 - v instead of atomicrmw sub) does not avoid it, and neither does (v ^ -1) + 1. The production lowering does the same in both paths, so a real RDNA2 program with ds_sub_rtn_u32 and a per-lane operand fails the same way here.

Not tested: AMD, other NVIDIA generations, a driver other than 32.0.16.2124, release builds, any retail title (only the repository's own tests ran), and the performance of the compare-exchange loop under contention.

AI use: Claude Code (Claude Sonnet 5.5) ran the test commands, scanned the seeds, found the cause, wrote the change and its test, and rebased it. The numbers above come from those runs.

If a PR for this is welcome, I can open one from the patch.


(Keep below this line the original report from the first version if you want it as history, or delete it: the update above replaces its numbers.)

<!-- greyfinch-sync:Zettrox/ztrx:issue:6600318312 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/76). Originally posted by [jhincromwel-star](https://github.com/jhincromwel-star) on 2026-11-25T08:25:40Z. --- **Update — re-run on current `main` @ `568e7db` (the four failures are still there; a fix is attached)** Same machine as below (NVIDIA GeForce RTX 5060 Laptop GPU, Blackwell, driver 32.0.16.2124; Intel Core 7 240H; Windows 11 Pro 10.0.26300; Rust 1.98.1; debug; DXC 1.9.2602.17). `XCL_ADAPTER=nvidia`. No `XCL_SAMPLE_*`. | `main @ 568e7db` | passed | failed | ignored | notes | |---|---|---|---|---| | as is, `cargo test -p xcl --lib` | 1094 | **4** | 26 | `fuzz_validate_and_gpu_0..3`, seeds 70, 545, 1019, 1507: `CreateComputePipelineState` → `0x8007000E` | | with the change below, `.\scripts\test.ps1` | **1155** | **0** | 46 | 25 GPU tests SKIPPED (20 "no wave64", 3 "per-lane form: refused", 1 "cannot disable the driver cache" (Developer Mode), 1 "no heap windows") | `scripts/test.ps1` stops at the first failing target, so the integration binaries did not run in the "as is" row. **The change** (the same one as before, rebased onto `568e7db`; only `recomp/tests.rs` needed a hand edit, because `main` changed the end of that file): group-shared and texel `sub` go through the compare-exchange loop that `rsub`, `smin` and `fmin` already use (`recomp/emit.rs`, `dxil/lower_mem.rs`), the fuzz emitter does the same, and a new test `gpu_ds_sub_rtn_u32_with_a_variable_operand` (64 lanes take their own number off one dword) fails without it and passes with it on this GPU, both with `XCL_DIRECT_DXIL` unset and `=1`. Four files, 72 insertions, 14 deletions. The four fuzz tests also pass with `XCL_ADAPTER=intel` (integrated GPU), before and after. **Correction to the first version of this report:** the skip breakdown on `689f2db` was wrong. The 23 skips there were 18 "no wave64" (7 unnamed + 11 named after a wave64 case), 3 "per-lane form: refused", 1 driver cache, 1 heap windows. **What is behind the four failures** (unchanged from the first version): of seeds 0..2000, 56 fail on this GPU, and every one contains a group-shared `Sub` with a non-constant operand. None without one fails (594 of 594 seeds with no group-shared atomic pass), and a `Sub` with a constant operand always passes (11 of 11). The pipeline is refused whenever a group-shared `atomicrmw add` takes a negated runtime value. The existing workaround (`0 - v` instead of `atomicrmw sub`) does not avoid it, and neither does `(v ^ -1) + 1`. The production lowering does the same in both paths, so a real RDNA2 program with `ds_sub_rtn_u32` and a per-lane operand fails the same way here. **Not tested:** AMD, other NVIDIA generations, a driver other than 32.0.16.2124, release builds, any retail title (only the repository's own tests ran), and the performance of the compare-exchange loop under contention. **AI use:** Claude Code (Claude Sonnet 5.5) ran the test commands, scanned the seeds, found the cause, wrote the change and its test, and rebased it. The numbers above come from those runs. If a PR for this is welcome, I can open one from the patch. --- *(Keep below this line the original report from the first version if you want it as history, or delete it: the update above replaces its numbers.)*
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Zettrox/ztrx#76
No description provided.