d3d12: log every quad mask SetSampleMaskX ignores, with a count #636
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/636"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-12-01T18:57:12Z.
A
SetSampleMaskXmask 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.python tuxbox.py checkof207dd1d6(GE-Proton11-15): RTX 5090 (10de:2b85) 211 pass, AMD iGPU (1002:13c0) 210 pass; the one failure on each islanes-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