diff options
| author | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-22 12:11:16 -0300 |
|---|---|---|
| committer | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-22 12:11:16 -0300 |
| commit | a47953b1de2edf52c62b6f4f191ebb6c042d4d7a (patch) | |
| tree | 9f0a420adc0cb36eaf1d4f78e6928f0ecb2422f3 /docs/d3d12_command_objects.md | |
| parent | 6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff) | |
scalar_load: a constant SGPR offset is added as the run-time path adds it (no 32-bit wrap)
#1686 folded a known SGPR offset into the immediate before the 32-bit
truncation (s_buffer_load) or the 21-bit sign extension (s_load), so
s12 = -4 with offset:20 read byte 16 instead of being out of range, and an
s_load sOFF of 2^20 or more turned negative. Hardware does not wrap
(@Pierre-Kookis, gfx1036); the run-time path adds zext(sOFF & ~3) to the
normalised immediate in 64 bits. The fold now does the same. Found and
GPU-reproduced by @Impre-visible.
tests/semantic/test_smem_const_offset.py runs each case with the offset
as a constant and through v_readfirstlane, against the measured rule.
docs/design.md: the row says it (and a duplicated copy of the row goes).
Diffstat (limited to 'docs/d3d12_command_objects.md')
0 files changed, 0 insertions, 0 deletions