diff options
| author | Vyral1978 <virgileperrierfreynet@gmail.com> | 2026-11-22 13:06:31 +0100 |
|---|---|---|
| committer | Vyral1978 <virgileperrierfreynet@gmail.com> | 2026-11-22 13:06:51 +0100 |
| commit | ee7c52a102d35618a5816703e9b942261803a72d (patch) | |
| tree | c52c395ca67e7581f5a1b379215ab157c27198d6 /runtime/src/pe_loader.cpp | |
| parent | 99f99890c5ebe186ef2f9fe8ff6d675745d9e621 (diff) | |
Translator: swizzled buffer V#s and ADD_TID_ENABLE (SHADER-231)
MUBUF/MTBUF accesses follow the RDNA2 ISA's swizzled buffer addressing
(8.1.5, tables 33/35/37) with the V# fields of Mesa's gfx10-rsrc.json:
SWIZZLE_ENABLE word1 bit 31, INDEX_STRIDE word3 [22:21], ADD_TID_ENABLE
word3 bit 23, element size fixed at 4 bytes. ADD_TID adds the wave lane to
the index (swizzled or linear), dword k of a swizzled access is 4 * IS bytes
after dword k - 1, and OOB_SELECT 3 with swizzle and a stride checks like
mode 0. Literal V# words fold; run-time ones use IS = 2^(swz * (3 + n)), so
IS = 1 is the linear address. A literal swizzled V# used to be Unsupported
and a run-time one was translated unswizzled.
Tests: tests/semantic/test_buffer_swizzle.py (hand-worked addresses, literal
and run-time V#s) and the GPU fixture cs_buf_swizzle.asm.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions