xshader: select exact paired execution for split-EXEC wave64 row scans #493
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/493"
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 MathiewMay on 2026-11-29T16:16:31Z.
Dependency
Stacked on PR #492, now including its
66a2977dhigh-watchdog review revision. The top commit adds only row-scan selection and its tests. Review/merge the prerequisite first.Summary
Execute a proven wave64 row scan through the existing exact paired interpreter when the ordinary reduction recognizer refuses its shuffle sequence. An exclusive scan is not a whole-wave sum. Preserve every row shift, mask change, cross-row permute and lane read rather than replacing the algorithm.
Recognize adjacent constant EXEC_LO/EXEC_HI moves as a wave64 mask only when neither a narrow operation nor a branch entering the high-word move makes the width ambiguous. This split-EXEC proof is enabled for row scans, not the prerequisite's readlane fallback. Partial/unproved widths, unsupported control flow and unsafe group barriers remain refused.
The revised prerequisite retains 2^24 (16,777,216) watchdog ceilings on paired structured loops and dispatch, as requested in review. Nonzero-entry paired dispatch has its own counter; ordinary guards remain unchanged. This is a runaway safety ceiling, not a measured maximum guest workload. No scan-specific production code or fixtures changed during the rebase.
Tests
fa1b9cf6control: 1 regression fails / 1 negative control passes.python tuxbox.py check --no-gpu: all seven groups passed.Final results belong to
9a16ea04, directly on revised prerequisite66a2977d, with upstream baselinefa1b9cf6. Unchanged native providers have separately recorded baseline provenance; compiler/helpers come from this exact immutable source. The complete chain is rerun after the watchdog rebase, not inferred from the originalce1fdfafresults. Original artifacts and public-head backup refs are preserved.The paired GPU fixture includes six automatic-selection scan programs: 64/128/256-thread groups, with ordinary and console OP_SEL[3] encodings. Every returned word is checked against exclusive sums, including empty/full/sparse/one-half masks and 32-bit wraparound. An instruction interpreter is independently checked against that arithmetic oracle. Negative unit controls cover partial groups, a wave32 save-EXEC, an unpaired high-word write, a branch entering between the halves and an explicitly narrow profile. The prerequisite's >65,536-trip GPU case remains included; no deliberately endless GPU workload was launched.
The host-profile record adds
split-exec-row-scan-two-waveswith the same exact paired translation for all three profiles. Regeneration after rebase preserves the prerequisite's reviewed high-watchdog hashes; this top commit adds only the three scan records.No new Lanes scenario: the exact DPP/EXEC encoding and exclusive per-lane result are exercised by the synthetic translator checker; existing Lanes suites provide integration coverage. No title shaders or captures are included.
The wrappers pin immutable source/helpers/providers by SHA and run sequentially in an authenticated hidden/offline display with the stopped fixture prefix, without copies or a retail launch. No retail rendering/performance claim.
Local GPU/backend: AMD Radeon RX 9070 (1002:7550, RADV GFX1201), Mesa 26.2.7, GE-Proton11-14 on Linux.
Maintainer NVIDIA results cover the original uncapped #493 stack on
mainat065a7f9a: RTX 4070 Ti SUPER (10de:2705), driver 620.x, GE-Proton11-14; 65/65 translator groups and 72 paired programs / 4,718,592 words / zero mismatches. NVIDIA confirmation of the revised watchdog stack remains outstanding before merge; no local NVIDIA run is claimed.