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

Open
opened 2026-11-26 22:58:38 +00:00 by tgti44 · 0 comments
tgti44 commented 2026-11-26 22:58:38 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by tgti44 on 2026-11-26T22:58:38Z.


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?

<!-- greyfinch-sync:Marvisak/VIctory:issue:6636456943 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3411). Originally posted by [tgti44](https://github.com/tgti44) on 2026-11-26T22:58:38Z. --- 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?
Sign in to join this conversation.
No labels
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.

Reference
Marvisak/VIctory#3411
No description provided.