Skip to content

vk: Dynamic per-binding IUB/UBO selection based on device limits#337

Merged
kvark merged 2 commits into
mainfrom
claude/nvidia-prime-investigation-wUmwH
Apr 13, 2026
Merged

vk: Dynamic per-binding IUB/UBO selection based on device limits#337
kvark merged 2 commits into
mainfrom
claude/nvidia-prime-investigation-wUmwH

Conversation

@kvark

@kvark kvark commented Apr 13, 2026

Copy link
Copy Markdown
Owner

Instead of a global bool deciding all Plain bindings use inline uniform blocks or all use UBOs, store the device's maxInlineUniformBlockSize and decide per-binding: bindings that fit use IUBs, larger ones fall back to UBOs. This fixes validation errors when binding sizes exceed the device's inline uniform block limits (e.g. light arrays > 256 bytes).

Resolves #334.

https://claude.ai/code/session_01W9jSvpnbXEXmoHFuUVFdUN

claude and others added 2 commits April 13, 2026 06:03
Instead of a global bool deciding all Plain bindings use inline uniform
blocks or all use UBOs, store the device's maxInlineUniformBlockSize and
decide per-binding: bindings that fit use IUBs, larger ones fall back to
UBOs. This fixes validation errors when binding sizes exceed the device's
inline uniform block limits (e.g. light arrays > 256 bytes).

Resolves #334.

https://claude.ai/code/session_01W9jSvpnbXEXmoHFuUVFdUN
@kvark
kvark force-pushed the claude/nvidia-prime-investigation-wUmwH branch from f43f3f6 to 654146b Compare April 13, 2026 06:27
@kvark
kvark enabled auto-merge (rebase) April 13, 2026 06:27
@kvark
kvark merged commit 33d3918 into main Apr 13, 2026
12 checks passed
@kvark
kvark deleted the claude/nvidia-prime-investigation-wUmwH branch April 13, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vk: Take size of current inline uniform blocks into account before using it. Use UBO fallback otherwise, or perhaps support UBOs.

2 participants