d3d12: log every quad mask SetSampleMaskX ignores, with a count #636

Merged
NickStallman merged 1 commit from upstream-pr/636 into main 2026-12-01 20:32:52 +00:00
NickStallman commented 2026-12-01 18:57:12 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-12-01T18:57:12Z.


A SetSampleMaskX mask that differs between the four pixels of a quad has no desktop equivalent, so the draw keeps full coverage. Until now only the first such mask in a process was logged, once. In recorded runs of one title the masks clear one pixel of each quad and rotate between frames: four distinct masks were seen across runs.

Each distinct mask is now logged the first time it is set and whenever its count reaches a power of two. Past 64 distinct masks the rest share one count. Behaviour is unchanged.

Refs #533.

Tests

  • tests/commands/graphics.rs: the first use, the power-of-two counts and the shared count past 64.
  • Full python tuxbox.py check of 207dd1d6 (GE-Proton11-15): RTX 5090 (10de:2b85) 211 pass, AMD iGPU (1002:13c0) 210 pass; the one failure on each is lanes-selftest-texture-publication (#625, fails on main too).
  • python tuxbox.py check --no-gpu: Evidence: TuxBox check of 207dd1d6f1f9, no uncommitted changes, no GPU checks: 13 passed, 0 failed, 0 not run

🤖 Generated with Claude Code

<!-- greyfinch-sync:brcly/TuxBox:issue:5592415155 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/636). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-12-01T18:57:12Z. --- A `SetSampleMaskX` mask that differs between the four pixels of a quad has no desktop equivalent, so the draw keeps full coverage. Until now only the first such mask in a process was logged, once. In recorded runs of one title the masks clear one pixel of each quad and rotate between frames: four distinct masks were seen across runs. Each distinct mask is now logged the first time it is set and whenever its count reaches a power of two. Past 64 distinct masks the rest share one count. Behaviour is unchanged. Refs #533. ## Tests - `tests/commands/graphics.rs`: the first use, the power-of-two counts and the shared count past 64. - Full `python tuxbox.py check` of 207dd1d6 (GE-Proton11-15): RTX 5090 (`10de:2b85`) 211 pass, AMD iGPU (`1002:13c0`) 210 pass; the one failure on each is `lanes-selftest-texture-publication` (#625, fails on main too). - `python tuxbox.py check --no-gpu`: `Evidence: TuxBox check of 207dd1d6f1f9, no uncommitted changes, no GPU checks: 13 passed, 0 failed, 0 not run` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
brcly/TuxBox!636
No description provided.