pixel_aot: export only the enabled channels (EXP enable mask as pipeline state) #355
Open
opened 2026-11-21 23:21:08 +00:00 by MoonYueya
·
16 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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
R0Y00/Xbox2Windows#355
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 R0Y00/Xbox2Windows. Originally posted by MoonYueya on 2026-11-21T23:21:08Z.
Question
tools/pixel_aot.pylowers a colour export in exactly one form:In that form all four channels are enabled, two packed f16 pairs are exported, and the target is
mrt0.lower()rejects every other export asUnsupported instruction. Rejecting is the safe outcome, since nothing is mistranslated. But it means a program that writes only some channels cannot be translated at all.How should the translator represent an export whose enable mask (
EN) is not0xF? What is the smallest first step you would accept? I would like to see this split into the stages below.Evidence so far
All of the following comes from public references. Nothing here was measured in this repository.
ENC_EXP.EN) says: "Compressed export: enables for half-dword export; EN[0] for low 16 bits of VSRC0, EN[1] for high 16 bits of VSRC0, EN[2] for low 16 bits of VSRC1, EN[3] for high 16 bits of VSRC1. Non-float16: enables for VSRCs, EN[N] for VSRC[N]."comprpacks the sources; it does not convert them. LLVM'sint_amdgcn_exp_comprtakes twov2f16/v2i16sources. The lowering bitcasts them and has nofptrunc. This matches the existing fixture, wherev_cvt_pkrtz_f16_f32does the packing andexp ... compronly moves the bits.RenderTargetWriteMaskin the PSO. HLSL cannot leave one component of anSV_Targetreturn unwritten. So, like the denormal mode in #312, the enable mask is really pipeline state carried alongside the shader, not something the HLSL can express on its own.off, for exampleexp mrt0 v0, v0, off, off done compr vm), and whether the assembler accepts that same text back.Options
lower()reports a per-target channel mask, and the harness puts it intoRenderTargetWriteMaskI propose A, built in the stages below.
Proposed stages (one PR each)
Stage 0: research, no translator change. Record how LLVM 15.0.7 disassembles each compressed enable pattern (
0x3,0xC,0x1,0x2,0x0) and each non-compressed one, and confirm that the text round-trips. Add the forms to the rejection tests, so the current behaviour is pinned.Stage 1: compressed exports with
ENin {0x3,0xC,0xF},mrt0only. These enable whole pairs, which keeps the first step simple.lower()returns the channel mask, and the harness setsRenderTargetWriteMask. Everything else is still rejected.Stage 2: compressed half-pair masks (
0x1,0x2,0x4,0x8and their combinations).Stage 3: non-compressed 32-bit exports (
exp mrt0 v0, v1, v2, v3 done vmand partial masks of it), drawn to an R32G32B32A32 target so the bits are kept.These stay out of scope and keep being rejected:
mrt1+,mrtz,null);doneorvm;Completion condition
Each stage is complete when:
tests/pixel_aot_check.pypass the LLVM 15.0.7 assembler round trip.pixel_mismatch:scan_unsupported_shaders.py,docs/coverage/*.tsvand the dashboard, anddocs/experiments.mdare updated.Relation to other work
Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-21T23:58:12Z.
Taking stage 1 (compressed
mrt0exports with EN in {0x3, 0xC, 0xF}) as the first PR:lower()reports the per-target channel mask, the harness setsRenderTargetWriteMask, the target is cleared to a sentinel before the draw, enabled channels compare bit-for-bit against the CPU reference and disabled channels must still hold the sentinel. Negative controls: all-channels-enabled PSO against a partial shader mask, and reading a compressed mask as non-compressed. The LLVM 15 printing survey for these EN patterns (stage 0's question) is folded into the fixture round trips.Dependency: this stacks on #363 (
shader/pixel-fp-mode), which reworks the export branch and the case-file format; #363 must land first, and the PR will name it. Stages 2–3 (half-pair masks, non-compressed partial exports) stay with the proposer.Environment: Windows 11 Pro 26200.9711, RTX 5060 Ti + RX 9060 XT, WARP 10.0.26100.9711, MSVC 14.44.35207, SDK DXC; LLVM 15.0.7 being provisioned for the round trips. Will link the PR here.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-22T00:04:45Z.
Stage-0 printing survey, measured with LLVM 15.0.7 (gfx1013, amdgcn--amdpal), answering the "to confirm" question:
exp mrt0 v16, v16, v17, v17 done compr vmexp mrt0 v16, v16, off, off done compr vmexp mrt0 off, off, v17, v17 done compr vmexp mrt0 v16, off, off, off done compr vmv16, v16, off, offexp mrt0 off, v16, off, off done compr vmexp mrt0 off, off, v17, off done compr vmoff, off, v17, v17exp mrt0 v12, off, off, off done vm(non-compr)LLVM 15 prints disabled sources as
offand the text round-trips. In compressed mode the assembler normalizes half-pair enables to whole pairs, so {0x0, 0x3, 0xC, 0xF} are the only distinguishable compr masks in LLVM 15 text. Stage 2's half-pair masks are not expressible through this syntax and would need a raw-encoding investigation; stage 1's {0x3, 0xC, 0xF} set is exactly the expressible granularity. The stage-1 PR will record this indocs/experiments.md.Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-22T00:20:27Z.
Stage-1 PR up (stacked on #363, which must land first). Verified: LLVM 15.0.7 round trip for the three compr EN programs; sentinel draws bit-exact on WARP 10.0.26100.9711, RX 9060 XT and RTX 5060 Ti — enabled channels match the reference, disabled channels hold the sentinel; both negative controls fail on every backend; form coverage passed. The stage-0 normalization finding is recorded in docs/experiments.md. Stages 2–3 remain open for the proposer.
Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-22T01:36:32Z.
Taking stage 3 (non-compressed partial channel masks), stacked on #398 → #363. Per-channel
offround-trips in LLVM 15.0.7 (measured); the trailer write-mask nibble widens to 0x1..0xF for the uncompressed form, compressed stays {0x3,0xC,0xF}. Sentinel draws + negative controls + LLVM round trip. @MoonYueya flag if you'd rather take this yourself. AI-assisted.Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-22T01:45:13Z.
Stage 3 opened as #429 (stacked on #398 → #363). Non-compressed
exp mrt0 v0, v1, v2, v3 done vmnow takes per-channeloff; masks 0x1..0xF travel in the trailer nibble, compressed stays {0x3,0xC,0xF}. Sentinel draws + negative controls pass on WARP, RX 9060 XT and RTX 5060 Ti; per-channel-off programs joined the LLVM 15 round-trip fixtures. AI-assisted.Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-22T02:06:02Z.
Completed the disassembler half of the stage-2 measurement (LLVM 15.0.7, gfx1013, triple amdgcn--amdpal). Base:
exp mrt0 v16, v16, v17, v17 done compr vm→0f 1c 00 f8 10 11 00 00; EN patched in byte 0 low nibble, then disassembled and the printed text reassembled.Measured: the disassembler does print non-pair EN masks distinctly (e.g. EN=0x5 →
v16, off, v17, off; EN=0xe →off, v16, v17, v17). Reassembling that printed text, however, always normalizes to a whole-pair mask: reassembled EN = raw EN OR-paired per element (each half pair promoted to both, bits {0,1} and {2,3} collapse to 0x3/0xc respectively, 0x5/0xa→0xf, etc.). Only 0x0, 0x3, 0xc, 0xf round-trip.Conclusion (inferred from the measured table): a real disassembly→lower path can observe non-pair compressed EN masks, but the assembler cannot round-trip them — any re-encode collapses to whole pairs, matching the earlier stage-0 normalization finding. So stage-2 (non-pair compressed enable masks) remains unrepresentable in the source-written fixture /
check_binarypath: text fixtures can never express them, and raw-binary EN values would not survive an asm re-encode. Stage 2 stays blocked unless the check path compares raw encodings directly without an assembler round-trip.AI-assisted; measured locally with LLVM 15.0.7.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T02:27:43Z.
@abilliontokens, please open a focused decoding-fixture PR. Generate a reference compressed EXP from source, then independently replace only the four EN bits in the instruction word. Exercise all 16 masks through the normal binary → disassemble → lower path. Check the encoded mask, the unchanged source registers and every bit outside EN. Keep the LLVM round-trip for the forms it can represent. Please describe the measured re-encodings individually:
0x2 → 0x0,0xa → 0x0, and0x5 → 0xf. A pairwise OR rule would mispredict the first two.For now, lowering should explicitly reject non-pair compressed masks and coverage should exclude them. To enable their draw behavior, we need either an ISA definition specific to gfx1013 compressed exports or native execution evidence identifying the channels actually written. Then use distinct RGBA source values, sentinels for unwritten channels and a negative control in a Windows draw. #429’s uncompressed path can proceed independently of this evidence.
Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-22T02:42:04Z.
Acknowledged, and thank you for the correction. Our earlier prose said the re-encoding rule was "OR-paired" over each packed pair's two operands, which mispredicts
0x2and0xa(the raw table itself had0xa → 0x0correct). The measured rule is pair-first-operand presence: a packed pair survives reassembly exactly when its first operand (VSRC0/VSRC2) is enabled, and the duplicated high-half operand never enables its pair — hence0x2 → 0x0,0xa → 0x0and0x5 → 0xfindividually, where OR would give0x3and0xffor the first two.Plan for the focused decoding-fixture PR, stacked on #398:
exp mrt0 v16, v16, v17, v17 done compr vm), then independently replace only the four EN bits in the instruction word for each of the 16 raw values, and run every patched word through the normal binary → disassemble → lower path.offelsewhere), and every bit outside EN — with one measured exception called out: the assembler re-encodes a fully disabled pair's source-VGPR field as zero.0x2 → 0x0,0xa → 0x0and0x5 → 0xf, and assert that a pairwise-OR rule would mispredict the first two.Draw behavior for non-pair compressed masks stays deferred until there is either an ISA definition specific to gfx1013 compressed exports or native execution evidence identifying the channels actually written, then distinct RGBA source values, sentinels for unwritten channels and a negative control in a Windows draw. #429's uncompressed path proceeds independently of this evidence.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-22T02:42:44Z.
Decoding-fixture PR opened as #434, stacked on #398. It exercises all 16 raw EN values through binary → disassemble → lower, asserts the encoded mask, unchanged source registers and every non-EN bit, describes the individual re-encodings (0x2 → 0x0, 0xa → 0x0, 0x5 → 0xf) and the pair-first-operand rule, rejects non-pair compressed masks explicitly and excludes them from coverage.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by MoonYueya on 2026-11-22T10:25:13Z.
On the stage 3 question: I'm passing on it, and I have no objection to @abilliontokens taking it. I'm not planning PRs for any stage.
On the evidence you asked for: I can only contribute public-reference material, and that is already in the issue. I have no console hardware, so a gfx1013-specific definition or native execution evidence for the channels actually written is out of reach for me. I agree with rejecting non-pair compressed masks in lowering and excluding them from coverage, and I would record stage 2 as blocked rather than pending, since what it still needs is draw-behaviour evidence, not more encoding work.
Two corrections to the issue text, plus a measurement that locates the re-encoding:
Stage 2 premise. I assumed half-pair masks could be expressed as text fixtures. They cannot: reassembly keeps a compressed pair exactly when its first operand is present, as #434 asserts.
Disabled channels. I wrote that a channel whose enable bit is clear keeps whatever is already in the render target. That was an inference from the RDNA write-mask semantics, not a measured result, and should be read as unverified for gfx1013.
Where bits 1 and 3 are lost. I reproduced your table (all 16 raw EN values) with LLVM 15.0.7, 21.1.0 and 23.1.6, each built from source with the AMDGPU target, for both
-mcpu=gfx1013andgfx1030. Every row matches. The loss is in the assembler, not the disassembler:AMDGPUAsmParser::cvtExp(15.0.7llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cppL6334; 21.1.0 L7441; 23.1.6 L8066) copies source slot 2 into slot 1 whencompris set and clears slots 2 and 3. It then buildsEnMaskfrom slots 0 and 1 after that copy, that is, from the original slots 0 and 2. Bits 1 and 3 can never survive on their own.AMDGPUInstPrinter::printExpSrcNprints each slot fromEN & (1 << N). The disassembled text therefore keeps all four bits, for exampleexp mrt0 off, v16, off, off done compr vm.Two consequences:
exp mrt0, …), which the currentmrt0,?pattern already accepts.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T08:26:14Z.
Stage 3 landed in #429 (
c1a6589). The uncompressed float RT0 cases compare full FP32 values, preserve sentinel bits in disabled channels, and catch a wrong PSO mask or wrong enabled-channel value. The ordinary API and integer-export path still reject the partial form. Stage 2 remains open for a gfx1013-specific definition or native draw evidence of which channels the non-pair compressed masks actually write. #434 establishes the encoding and rejection controls.Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T17:31:26Z.
Claiming the remaining ordinary API/integer-export path for partial EXP enable masks.
Environment: Windows 11 Pro 26200, Ryzen 5 5500, GTX 1660 SUPER (32.0.16.1074), MSVC 19.52, DXC 1.9.2602.17, CMake/Ninja, Python 3.12,
devandrelease.Scope: after stage 3 (#429), extend
tools/pixel_aot.pyso the ordinary API/integer export path accepts a partialexpenable mask. The first pass is a source-built fixture with a defined PSO write mask, full pixel readback and a wrong-mask negative control; the stage-3 float cases and sentinels stay unchanged. I am not claiming Stage 2's gfx1013-specific mask meaning or native draw evidence here. If the ordinary path needs that definition, I will report the blocker before changing behavior.Overlaps: #361 itself; no open PR references it. Stage 3 landed in #429; #434 is merged. I will link the PR here.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T17:36:39Z.
Please proceed with the source-built ordinary/integer slice using uncompressed RT0 masks, where the active channels are explicit. Keep the existing float fixture unchanged. For the integer case, seed each destination channel differently, use a different source word in each enabled channel, and read back every channel using an integer render target. Keep a wrong PSO mask and a wrong enabled word as separate controls. A compressed non-pair mask has a separate evidence requirement and can stay out of this PR.
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T17:43:47Z.
PR: #931
https://github.com/R0Y00/Xbox2Windows/pull/931
Scope: the remaining ordinary/integer slice of this issue. Partial uncompressed exports now use the explicit RT0-mask opt-in for floating-point and integer targets, and the CLI reports the mask as
t0_write_mask. The integer draw seeds each channel differently, uses a different source word per enabled channel, reads back all four channels through an integer render target, and keeps the wrong-PSO-mask and wrong-enabled-word controls separate. The stage-3 float fixture is unchanged. Non-pair compressed masks remain out of scope.
Validation: dev and
elease, 14/14 selected pixel_aot_* tests including WARP and the GTX 1660 SUPER; docs/bidi/shader census/probe pass. The new CLI round-trip test runs in the LLVM binary job; this machine has no LLVM.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:34:54Z.
#931 merged. The ordinary path now has an explicit RT0 write-mask opt-in for uncompressed exports. The integer readback preserves the seeded values in disabled channels and detects both a wrong PSO mask and a wrong enabled word. The packed float fixtures still pass. The remaining scope here is the gfx1013 compressed non-pair masks. For that slice, the next evidence is a native source-built draw showing which destination components are written with distinct source values and prefilled destination sentinels, or an ISA definition specific enough to distinguish those encodings.
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T18:48:58Z.
Merged as �f0c3eb (#931). The ordinary path now requires the explicit --rt0-write-mask opt-in for uncompressed exports, reports the mask as
t0_write_mask, and the integer draw reads all four channels with separate wrong-PSO-mask and wrong-enabled-word controls. Stage 2's non-pair compressed-mask evidence requirement remains open and out of this change.
AI-assisted.