View heap: take a 1,000,000-view heap where 2^21 does not fit #49

Manually merged
github merged 1 commit from github-bot/gh-49 into main 2026-12-01 20:58:45 +00:00 AGit
Owner

@⁠delacor on GitHub · 2026-11-30 23:07 UTC · original
delacor:viewheap-portable → main · +20 −5 · 1 files · 1 commits · merged 2026-12-01 20:55 UTC

The title reads its view records through one shader-visible heap of a little
over a million views plus the dynamic slots. probe_view_limit required a
host that can make a 2^21-view (2,097,152) descriptor heap, and stopped the
run when the creation failed. A Navi 14 (RX 5500 XT, 256 MiB BAR) refuses
that heap, so xmem did not run there at all.

Such a host now takes a 1,000,000-view heap instead; a view index past its
null slot reads the null slot, exactly as every other host clamps. The
fallback comes from delacor/VIctory's PORTABLE_VIEWS, which runs the same
title on this card. The integer twins of typed buffer views stay off where
there is no room (the existing warn path).

Verified on the RX 5500 XT: with the fallback the same build reaches the
world and holds ~10 fps in a 100 s measured window (Series X profile, 1080p,
ray tracing off); without it, the run stops at device setup.

**@⁠delacor** on GitHub · 2026-11-30 23:07 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/49) `delacor:viewheap-portable` → `main` · +20 −5 · 1 files · 1 commits · merged 2026-12-01 20:55 UTC The title reads its view records through one shader-visible heap of a little over a million views plus the dynamic slots. `probe_view_limit` required a host that can make a 2^21-view (2,097,152) descriptor heap, and stopped the run when the creation failed. A Navi 14 (RX 5500 XT, 256 MiB BAR) refuses that heap, so xmem did not run there at all. Such a host now takes a 1,000,000-view heap instead; a view index past its null slot reads the null slot, exactly as every other host clamps. The fallback comes from delacor/VIctory's `PORTABLE_VIEWS`, which runs the same title on this card. The integer twins of typed buffer views stay off where there is no room (the existing warn path). Verified on the RX 5500 XT: with the fallback the same build reaches the world and holds ~10 fps in a 100 s measured window (Series X profile, 1080p, ray tracing off); without it, the run stops at device setup.
The title reads its view records through one shader-visible heap of a
little over a million views plus the dynamic slots, and a host that cannot
make a 2^21-view heap (a Navi 14, whose vkd3d descriptor allocation
refuses it) previously stopped the run. Such a host now takes a 1,000,000-
view heap instead; view indices past its null slot read the null slot, as
they do on every other host. The fallback comes from delacor/VIctory's
PORTABLE_VIEWS, which runs the same title on this card.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 07:42:12 +00:00
github-bot referenced this pull request from a commit 2026-12-01 20:58:42 +00:00
github manually merged commit fc6e895d74 into main 2026-12-01 20:58:45 +00:00
github-bot referenced this pull request from a commit 2026-12-01 21:04:22 +00:00
github-bot referenced this pull request from a commit 2026-12-04 19:05:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.