Title: NVIDIA (RTX 5090) support: descriptor heap cap, null buffer views and WaveSize(64) compute pipelines #3411
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#3411
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@tgti44 on GitHub · 2026-11-26 22:58 UTC · original
Hi, thanks for VIctory! I've been testing it on an NVIDIA RTX 5090 (Windows 11), and a few things block the world on NVIDIA that don't show up on your RX 6700 XT:
Descriptor heap cap. NVIDIA refuses shader-visible CBV/SRV/UAV heaps over 1,000,000 descriptors, but the title's heap has 1,245,184 slots. With the current capping, ~140,000 slots that hold live views end up past the host heap. I worked around it with a view-slot remap table: heap_handle looks up remap[index] (stored after the view strides at VIEW_REMAP = HEAP_VIEWS), and the host hands out slots on demand and frees them on make_null. Peak usage is about 600k, so it fits.
Null buffer views. NULL_BUFFER_VIEW (HEAP_VIEWS - 2) lies past a 1M heap, so computed-index buffer reads hit out-of-range descriptors. The remap fixes that too.
WaveSize(64) compute pipelines. 162 compute pipelines are refused (E_INVALIDARG) because NVIDIA only does 32-wide waves. Translating them without WaveSize (32-wide) lets them run, but some hang the GPU (TDR), and the scene renders as a flat grey/white image (the letterbox and subtitles are fine), probably because of cross-lane reductions such as exposure.
Happy to share the patches. Would you consider emulating wave64 semantics on wave32 hosts, e.g. cross-lane ops through LDS?
HEAP_VIEWS(1 << 21) #3445