Frosted glass: blinking grey lines and dot grids (a per-lane kill translated as discard plus return) #192

Closed
opened 2026-12-02 14:04:59 +00:00 by github-bot · 0 comments
Owner

@⁠kyle41313 on GitHub · 2026-12-02 14:02 UTC · original

Symptom. Frosted house windows show horizontal grey lines and dot grids that blink. Seen at 3840x2160 and 2560x1440.

Setup. RX 9070 XT, RADV, Proton Experimental 11.0, ray tracing off (VICTORY_BVH_BUILDER=0).

Cause. A pixel program's per-lane kill is translated as discard plus return. Later 2x2 quad reads then take values from the lanes that left. On the console, killed pixels run on as helpers.

Fix: VICTORY_KILL_CONTINUE=1 (#195). The kill becomes a demote, and every lane runs on. In blocks that branch quad-wide or wave-wide, the discard takes each lane's own condition, not the quad's. Off by default; in the shader cache key. Applies to d044248 and compiles without warnings. In game: the lines were gone on the bathroom and bedroom windows (one run each, on 6dbc3e7).

Tests

xmem's shader suite with the patch (on 6dbc3e7): 396 passed, 4 failed (a mask join, the stub pipeline digest, a counter texture size, v_mad_legacy_f32 giving -0.0). None involve kills, and the switch was off for them. Not compared against an unmodified build. The patch's own test, a_killed_pixel_stays_in_its_quad, caught the quad-wide case.

No game files, captures or screenshots included.

Fix: pull request #195.

**@⁠kyle41313** on GitHub · 2026-12-02 14:02 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/192) **Symptom.** Frosted house windows show horizontal grey lines and dot grids that blink. Seen at 3840x2160 and 2560x1440. **Setup.** RX 9070 XT, RADV, Proton Experimental 11.0, ray tracing off (`VICTORY_BVH_BUILDER=0`). **Cause.** A pixel program's per-lane kill is translated as discard plus return. Later 2x2 quad reads then take values from the lanes that left. On the console, killed pixels run on as helpers. **Fix: `VICTORY_KILL_CONTINUE=1`** (#195). The kill becomes a demote, and every lane runs on. In blocks that branch quad-wide or wave-wide, the discard takes each lane's own condition, not the quad's. Off by default; in the shader cache key. Applies to d044248 and compiles without warnings. In game: the lines were gone on the bathroom and bedroom windows (one run each, on 6dbc3e7). <details> <summary>Tests</summary> xmem's shader suite with the patch (on 6dbc3e7): 396 passed, 4 failed (a mask join, the stub pipeline digest, a counter texture size, `v_mad_legacy_f32` giving -0.0). None involve kills, and the switch was off for them. Not compared against an unmodified build. The patch's own test, `a_killed_pixel_stays_in_its_quad`, caught the quad-wide case. </details> No game files, captures or screenshots included. Fix: pull request #195.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 14:04:59 +00:00
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#192
No description provided.