Files
mandy/docs/contracts/dpp.json

18 lines
1.4 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"piece": "DPP",
"status": "gpu_verified",
"rank": 2,
"sentences": [
"VOP1/VOP2 `_dpp` applies to src0.",
"DPP16 controls (`quad_perm`, `row_shl/shr/ror/share/xmask/mirror/half_mirror`) and DPP8 (`dpp8` + `fi`) select the source lane, then `row_mask` (one bit per 16-lane row) and `bank_mask` (one bit per 4-lane bank) decide which destination lanes update.",
"A lane whose row/bank is off is not written.",
"A source lane outside the row is invalid: `bound_ctrl` 1 uses 0 as src0, otherwise the lane is not written.",
"A source lane inactive under EXEC is used when `fi` is 1; otherwise `bound_ctrl` decides.",
"DPP8 always writes an enabled lane: `fi` 1 reads the inactive source, `fi` 0 uses 0.",
"DPP16/8 never leaves its 16/8-lane group, so this is exact on every subgroup at least that wide; under `--wave64-emulate` the exchange goes through the workgroup buffer like the other cross-lane ops.",
"GPU-checked with `runtime/test/shaders/cs_dpp*.asm` on an RTX 3070 and hardware-measured on an RX 6800.",
"On an RX 6700 XT (gfx1031), `tools/crosslane_fuzz.py --dpp-sweep --oracle hw` checks every DPP16 control × `bound_ctrl` × `fi`, every `row_mask`/`bank_mask` pair and the DPP8 selects in wave32 and wave64: 14,412 cases, all matching these rules (BUILD-162, `docs/shader_validation.md` FUZZ-7).",
"Semantics from the RDNA2 ISA, AMD LLVM modifier syntax and the GPUOpen DPP notes."
]
}