diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 09:18:49 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 09:18:49 -0500 |
| commit | 5668f16b490a182452521fca3ccfc29e682eca2b (patch) | |
| tree | cf495c903c90374f4b8e3e1e50e06bcea90f5e1e /scripts/linux-boot/boot-digest.sh | |
| parent | d0da7dade8b688f2e0f7f23f4155d6cbb438809e (diff) | |
wave64 emulate: a cross-lane read of a missing lane in a partial wave gives 0
Restores old upstream PR 7450, ported onto main.
With --wave64-emulate, every read of another lane's exchange slot (ds_swizzle,
ds_bpermute, ds_permute, readlane, ...) now selects 0 when the source lane does
not exist in a partial last wave (Gen.x_lane_word), instead of relying on the
prologue's zeroed slot. RADV (Mesa 26.3.1) turned the store, barrier and load of
an exchange behind a branch into masked_swizzle_amd with fetch_inactive, so in a
40-thread group lanes 32-39 of a SWAP 8 swizzle read the missing lanes'
registers. Full waves emit the same module as before.
scripts/run_gpu_tests.py now runs the partial-wave fixtures emulated at subgroup
32, as check.py's partial_wave_test does. It left the subgroup size to the
driver, and RADV picks 64 for compute, where the new fixture passed even without
the fix.
GPU test cs_w64x_partial_swizzle (words measured on gfx1036 through
tools/hw_oracle), semantic test test_w64x_partial_swizzle with a hand-written
fixture, and a contract-table row in docs/design.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/linux-boot/boot-digest.sh')
0 files changed, 0 insertions, 0 deletions