128 GiB title window (06409): needs splittable views, not just segments #58

Open
opened 2026-12-01 09:05:16 +00:00 by github-bot · 1 comment
Owner

@⁠TheRifai on GitHub · 2026-12-01 09:03 UTC · original

Finding (AGENTS.md rule 29)

VUID-VkBufferCreateInfo-size-06409 remains on main. umem's title window is one 128 GiB sparse buffer (WIN_SIZE = 1<<37 in greenfield/umem/src/lib.rs), but the device's maxBufferSize is 4 GiB - 4.

docs/TASKS.md has this on the validation list; opening an issue so the design work can be picked up separately.

Probe result

VKtory-design.md ("128 GiB title window (06409) - probe 2026-12-01"):

  • 64 x 2 GiB and 32 x 4 GiB sparse buffers at contiguous opaque capture addresses come back contiguous with one bias, so segmentation is mechanically sound and window() already iterates windows by WIN_SHIFT.
  • A validation run with WIN_SHIFT = 31 lost 06409 but added VUID-VkDescriptorAddressInfoEXT-range-08045 and VUID-VkDeviceAddress-size-11364: a title storage-buffer view is 2 GiB + 64 KiB, starting exactly at a 2 GiB segment boundary, and crosses the seam. No single buffer can hold it (4 GiB segments exceed maxBufferSize anyway).
  • So the window size is not the whole fix. Do not ship the segment split alone.

Next

Splittable view descriptors: the translator/writer splits a large view into per-segment descriptors (selected from the 64-bit BDA with a bounds check) instead of one VkDescriptorBufferInfo. Keep the segments.rs probe as the regression guard. Validation must lose 06409 without adding 08045/11364, and needs a picture gate.

Seen on: f4dc80f (main after #54).

**@⁠TheRifai** on GitHub · 2026-12-01 09:03 UTC · [original](https://github.com/vktory6/VKtory/issues/58) ## Finding (AGENTS.md rule 29) `VUID-VkBufferCreateInfo-size-06409` remains on main. umem's title window is one 128 GiB sparse buffer (`WIN_SIZE = 1<<37` in `greenfield/umem/src/lib.rs`), but the device's `maxBufferSize` is 4 GiB - 4. `docs/TASKS.md` has this on the validation list; opening an issue so the design work can be picked up separately. ## Probe result `VKtory-design.md` ("128 GiB title window (06409) - probe 2026-12-01"): - 64 x 2 GiB and 32 x 4 GiB sparse buffers at contiguous opaque capture addresses come back contiguous with one bias, so segmentation is mechanically sound and `window()` already iterates windows by `WIN_SHIFT`. - A validation run with `WIN_SHIFT = 31` lost 06409 but added `VUID-VkDescriptorAddressInfoEXT-range-08045` and `VUID-VkDeviceAddress-size-11364`: a title storage-buffer view is 2 GiB + 64 KiB, starting exactly at a 2 GiB segment boundary, and crosses the seam. No single buffer can hold it (4 GiB segments exceed `maxBufferSize` anyway). - So the window size is not the whole fix. Do **not** ship the segment split alone. ## Next Splittable view descriptors: the translator/writer splits a large view into per-segment descriptors (selected from the 64-bit BDA with a bounds check) instead of one `VkDescriptorBufferInfo`. Keep the `segments.rs` probe as the regression guard. Validation must lose 06409 without adding 08045/11364, and needs a picture gate. Seen on: `f4dc80f` (main after #54).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 09:05:16 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-01 09:08 UTC · original

Thanks, that's an important result: it shows that splitting the window alone would trade one error for two. I added it to the 06409 line on the validation list in github.com/vktory6/VKtory@a2d52e2 (views must be splittable as well; the split alone is not a fix).

**@⁠vktory6** on GitHub · 2026-12-01 09:08 UTC · [original](https://github.com/vktory6/VKtory/issues/58#issuecomment-7306267051) Thanks, that's an important result: it shows that splitting the window alone would trade one error for two. I added it to the 06409 line on the validation list in https://github.com/vktory6/VKtory/commit/a2d52e2 (views must be splittable as well; the split alone is not a fix).
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/vktory6--VKtory#58
No description provided.