Direct DXIL: one post-chain pixel shader (ps 31a69f00…) draws a tiled glyph pattern on NVIDIA wave32; clean on HLSL #3788

Open
opened 2026-12-03 14:08:25 +00:00 by KOLESNiii · 0 comments
KOLESNiii commented 2026-12-03 14:08:25 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-12-03T14:08:25Z.


On an RTX 2070 SUPER (wave32 only, driver 621.40), the retail game's post chain shows a tiled glyph/triangle pattern (rows of small "⁊⁊⁊" shapes, about 8 px high at 1080p, inside blocky screen regions) when the direct DXIL path translates its graphics shaders. With XCL_DIRECT_DXIL=0 (all HLSL) the image is clean. By bisecting with a per-program switch, one pixel shader is enough: sending only ps 31a69f00a6df2d7c (dump hash) through HLSL removes the pattern, with every other program still on direct DXIL.

I searched open issues and PRs first. #3772 (entry WaveActiveBallot(true) mask losing live lanes on NVIDIA) and #3689 (direct PS v_readlane / v_readfirstlane read again from the first live lane) are the closest. This shader's direct DXIL builds a first-live-lane read the same way (see below), so it may be the same family. I have not shown that yet.

Measured

Series S profile (XCL_DEVICE_TYPE=lockhart), XCL_UMA_WINDOWS=16, XCL_TWO_PASS_MB=1536, warm cache. Compute programs on HLSL in every run below (XCL_HLSL_PICK=C:1:0), so only graphics programs differ. Each run dumps every render target of one frame at 480 s (XCL_DUMP_TARGETS=2000,2,64). The verdict comes from the 1080p colour-grading pass (ps 0ef7368d…, the first target where the pattern appears).

run graphics programs sent to HLSL pattern
g18 / g20 none yes
g17d all VS/PS no
g21 57 VS/PS of the 37 small post targets no
g22b → g23-a2 → g24b → g25-r1 → g26-r1a halves of those (26 → 13 → 12 → 6 → 3) no
controls g22a, g23-a1, g24a, g25-r2, g26-r1b the other halves yes
g27-ps31a6 only ps 31a69f00a6df2d7c no
g27-vs3fa0 (control) only vs 3fa00b601e8382fb yes

One run per row. Two runs crashed in the title during loading (access violation at ~350 s, video memory ~3.9 GB over budget); both were rerun and are not counted.

  • ps 31a69f00a6df2d7c (2164 B console blob): one fullscreen draw (3 vertices, about 0.7 ms) into a 960×540 R16G16B16A16_FLOAT target; VS cb5b2b8ab61e8524. It uses six SampleLevels and no derivatives.
  • Its direct DXIL (9.6 KB container) differs from the HLSL path mainly in one place. An FMax result is read from the first live lane via WaveActiveBallot(true) → FirstbitLo → WaveReadLaneAt, with a QuadReadLaneAt 0..3 fallback (presumably a v_readfirstlane). HLSL's DXIL has 36 QuadReadLaneAt against 4 on the direct side.

Not known yet

  • The console instruction behind that read, and whether the bad values come from it. I will dump the program's disassembly (XCL_DUMP_SHADERS=31a69f00a6df2d7c) next and add it here.
  • Whether it shows on AMD, where one hardware wave can hold two console waves (wave64), or on other NVIDIA drivers. Results from other GPUs would help.

How to check on your machine

  1. Run the retail game on the direct path until the pattern is visible (a lit interior wall shows it best).
  2. Rerun with XCL_HLSL_PICK_HASHES=31a69f00a6df2d7c (needs the XCL_HLSL_PICK diagnostics switch, not on main yet; branch available on request), or with XCL_DIRECT_DXIL=0 as the coarse check.
  3. Report the GPU, driver, and whether the pattern goes away.

Setup

  • Build: main 9dfbe3ea plus local diagnostics commits (the XCL_HLSL_PICK switch, target-dump pipeline listing), head e3b51051. Not pushed.
  • RTX 2070 SUPER, NVIDIA 621.40, Windows 11. Direct path, wave64 programs split into two 32-lane halves.

AI use: Claude Code (Claude Opus 5.5) ran the bisection, read the DXIL and wrote this.

<!-- greyfinch-sync:ivall/xcl:issue:6770392980 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3788). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-12-03T14:08:25Z. --- On an RTX 2070 SUPER (wave32 only, driver 621.40), the retail game's post chain shows a tiled glyph/triangle pattern (rows of small "⁊⁊⁊" shapes, about 8 px high at 1080p, inside blocky screen regions) when the direct DXIL path translates its graphics shaders. With `XCL_DIRECT_DXIL=0` (all HLSL) the image is clean. By bisecting with a per-program switch, one pixel shader is enough: sending only `ps 31a69f00a6df2d7c` (dump hash) through HLSL removes the pattern, with every other program still on direct DXIL. I searched open issues and PRs first. #3772 (entry `WaveActiveBallot(true)` mask losing live lanes on NVIDIA) and #3689 (direct PS `v_readlane` / `v_readfirstlane` read again from the first live lane) are the closest. This shader's direct DXIL builds a first-live-lane read the same way (see below), so it may be the same family. I have not shown that yet. ## Measured Series S profile (`XCL_DEVICE_TYPE=lockhart`), `XCL_UMA_WINDOWS=16`, `XCL_TWO_PASS_MB=1536`, warm cache. Compute programs on HLSL in every run below (`XCL_HLSL_PICK=C:1:0`), so only graphics programs differ. Each run dumps every render target of one frame at 480 s (`XCL_DUMP_TARGETS=2000,2,64`). The verdict comes from the 1080p colour-grading pass (`ps 0ef7368d…`, the first target where the pattern appears). | run | graphics programs sent to HLSL | pattern | |---|---|---| | g18 / g20 | none | yes | | g17d | all VS/PS | no | | g21 | 57 VS/PS of the 37 small post targets | no | | g22b → g23-a2 → g24b → g25-r1 → g26-r1a | halves of those (26 → 13 → 12 → 6 → 3) | no | | controls g22a, g23-a1, g24a, g25-r2, g26-r1b | the other halves | yes | | **g27-ps31a6** | **only `ps 31a69f00a6df2d7c`** | **no** | | g27-vs3fa0 (control) | only `vs 3fa00b601e8382fb` | yes | One run per row. Two runs crashed in the title during loading (access violation at ~350 s, video memory ~3.9 GB over budget); both were rerun and are not counted. - `ps 31a69f00a6df2d7c` (2164 B console blob): one fullscreen draw (3 vertices, about 0.7 ms) into a 960×540 `R16G16B16A16_FLOAT` target; VS `cb5b2b8ab61e8524`. It uses six `SampleLevel`s and no derivatives. - Its direct DXIL (9.6 KB container) differs from the HLSL path mainly in one place. An `FMax` result is read from the first live lane via `WaveActiveBallot(true)` → `FirstbitLo` → `WaveReadLaneAt`, with a `QuadReadLaneAt` 0..3 fallback (presumably a `v_readfirstlane`). HLSL's DXIL has 36 `QuadReadLaneAt` against 4 on the direct side. ## Not known yet - The console instruction behind that read, and whether the bad values come from it. I will dump the program's disassembly (`XCL_DUMP_SHADERS=31a69f00a6df2d7c`) next and add it here. - Whether it shows on AMD, where one hardware wave can hold two console waves (wave64), or on other NVIDIA drivers. Results from other GPUs would help. ## How to check on your machine 1. Run the retail game on the direct path until the pattern is visible (a lit interior wall shows it best). 2. Rerun with `XCL_HLSL_PICK_HASHES=31a69f00a6df2d7c` (needs the `XCL_HLSL_PICK` diagnostics switch, not on `main` yet; branch available on request), or with `XCL_DIRECT_DXIL=0` as the coarse check. 3. Report the GPU, driver, and whether the pattern goes away. ## Setup - Build: `main` 9dfbe3ea plus local diagnostics commits (the `XCL_HLSL_PICK` switch, target-dump pipeline listing), head e3b51051. Not pushed. - RTX 2070 SUPER, NVIDIA 621.40, Windows 11. Direct path, wave64 programs split into two 32-lane halves. AI use: Claude Code (Claude Opus 5.5) ran the bisection, read the DXIL and wrote this.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl#3788
No description provided.