Title: NVIDIA (RTX 5090) support: descriptor heap cap, null buffer views and WaveSize(64) compute pipelines #3411

Open
opened 2026-11-27 01:06:56 +00:00 by github-bot · 0 comments
Owner

@⁠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?

**@⁠tgti44** on GitHub · 2026-11-26 22:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/3411) 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?
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:06:56 +00:00
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/Marvisak--VIctory#3411
No description provided.