upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/testing.md
diff options
context:
space:
mode:
authorSashaTun <SashaTun@users.noreply.github.com>2026-11-22 22:28:37 +0300
committerSashaTun <SashaTun@users.noreply.github.com>2026-11-22 22:28:37 +0300
commit24418795b84b96efed9b4c65882ae1dc08a4b9b8 (patch)
tree41f72fa34687ad3d1e7bbd382eeed35296443fcc /docs/testing.md
parent162821017ea3c286c8bec860f3ff94f037912061 (diff)
test: judge the swizzle sources that run in a narrow pixel shader (#618)
ps_bitmask_perm is skipped when a driver runs the wave32 pixel shader narrower than 32 lanes (#1318), because the "pippi" pattern reads lanes 16-31, which then do not run and have no defined value. The skip excused the whole test, including the sources that do run: at 16 lanes wide every lane reads lane ^ 9, which is inside the running lanes for lanes 0-7, so a wrong word there went unnoticed on Intel. The skip now excuses only the sources that are not there. Where the source lane runs, its word has to be right, so a narrow run is judged instead of skipped. At 8 lanes wide every "pippi" source is lane 8 or above, nothing can be judged, and the test still skips. The translator change this depends on is #2780: a source lane that is not running reads 0 instead of an undefined value, which is what makes the narrow run judgeable at all. Until it lands the note in docs/testing.md describes a behaviour that main does not have yet. Tested: python -I tests/test_shader_checks.py (70 tests, OK, on main 16282101). No GPU, no game files. AI-assisted.
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md
index 060da9905..4af1d523a 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -170,6 +170,12 @@ To test the wave64 emulation that makes them exact on these GPUs, set `LEONIDA_W
170`check.py`, the shaders are checked against the emulated expectations without being emulated, and every wave64 test 170`check.py`, the shaders are checked against the emulated expectations without being emulated, and every wave64 test
171fails. 171fails.
172 172
173`ps_bitmask_perm` is a wave32 pixel shader, and a pixel shader's width can't be requested on every device. Intel
174drivers report subgroups of 8..32 and may run it 8 or 16 wide; its second pattern reads lanes 16-31, which then
175don't run. The test skips when the frame shows that (#1318), and the translation gives 0 for a source lane that
176isn't running instead of an undefined value (#618). At 16 wide the first pattern stays inside the running lanes, so
177it is still checked before the skip.
178
173## Wave64 pixel, vertex and geometry shaders (`w64_graphics.py`) 179## Wave64 pixel, vertex and geometry shaders (`w64_graphics.py`)
174 180
175Graphics stages have no emulation: on a 32-wide subgroup a wave64 VS, PS or GS runs as two 32-lane halves, and the 181Graphics stages have no emulation: on a 32-wide subgroup a wave64 VS, PS or GS runs as two 32-lane halves, and the