upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/buffer_bounds.md
diff options
context:
space:
mode:
authorbobcatchris <83428450+bobcatchris@users.noreply.github.com>2026-11-22 20:10:40 +0000
committerbobcatchris <83428450+bobcatchris@users.noreply.github.com>2026-11-22 14:16:03 -0600
commit588c368ce436df6df58b21fafbba231df06a90cb (patch)
tree99e1ef7df10813ab8efc25b5e26701701dbc9c55 /docs/buffer_bounds.md
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
Tools: native RDNA1 MUBUF OOB_SELECT bounds probe (SHADER-341)
Diffstat (limited to 'docs/buffer_bounds.md')
-rw-r--r--docs/buffer_bounds.md17
1 files changed, 14 insertions, 3 deletions
diff --git a/docs/buffer_bounds.md b/docs/buffer_bounds.md
index 033e8c3e3..9326fe517 100644
--- a/docs/buffer_bounds.md
+++ b/docs/buffer_bounds.md
@@ -29,9 +29,20 @@ measured natively on AMD GPUs (SHADER-116). The translator reads this field and
29 ([finding](https://github.com/ItsNotRexed/Leonida/issues/374#issuecomment-7072793165)). The RDNA2 result here 29 ([finding](https://github.com/ItsNotRexed/Leonida/issues/374#issuecomment-7072793165)). The RDNA2 result here
30 agrees with it, plus the `soffset` rule. 30 agrees with it, plus the `soffset` rule.
31 31
32**Open:** the console target is gfx1013 (GFX10.1); gfx1036 is GFX10.3. Mesa uses one GFX10 column for both, and 32**RDNA1 measurement (SHADER-341):** the console target is gfx1013 (GFX10.1); gfx1036 is GFX10.3, and the
33this measurement shows that column is wrong for GFX10.3. Whether GFX10.1 matches GFX10.3 here needs an RDNA1 card 33RDNA2 measurement above shows Mesa's GFX10 column is wrong for GFX10.3. A second native measurement through
34(gfx1010–1012, RX 5000 series). 34`tools/hw_oracle` (Linux libdrm launcher, AMD clang 18) on an **AMD Radeon Pro V540, Navi 12 / gfx1011, RDNA1**
35(`1002:7360`, bare metal, RADV Mesa 25.2.8, Ubuntu 24.04) found the same: `tools/buffer_bounds_probe.py` ran 12
36one-lane cases for a 4-byte `buffer_load_dword` at wave32 and wave64 (24 groups, 0 wave32/64 differences, 0
37launcher errors). Every case followed the RDNA2 / Mesa GFX11 column and **8 of 24 disagreed with Mesa's GFX10
38column**. The witnesses include mode 0 stride 16 at offset 13 (out of range on hardware, in range by the GFX10
39column), mode 3 `NUM_RECORDS` 18 at offset 16 (out of range), mode 3 `NUM_RECORDS` 3 at offset 0 (out of range),
40and mode 3 offset 8 with `soffset` 8 and `NUM_RECORDS` 18 (out of range, confirming that `soffset` is part of the
41RAW check). Swizzled V#s and unaligned addresses were not covered. This makes GFX10.1 follow GFX10.3 here in the
42cases tried, but gfx1013 itself is still unmeasured: the card used was gfx1011 (Navi 12), not the console part.
43
44**Open:** measure the same table on gfx1013 (PS5) itself when a card with that ID is available, and extend the
45probe to swizzled V#s and unaligned accesses.
35 46
36## How it was measured 47## How it was measured
37 48