Skip to content

vk: size descriptor pool for all sampler consumers - #66

Merged
0lvin merged 1 commit into
yquake2:masterfrom
devnexen:vk_pool_upd
Jun 27, 2026
Merged

vk: size descriptor pool for all sampler consumers#66
0lvin merged 1 commit into
yquake2:masterfrom
devnexen:vk_pool_upd

Conversation

@devnexen

Copy link
Copy Markdown
Contributor

The combined-image-sampler pool was sized MAX_VKTEXTURES + 1, ignoring the lightmap (MAX_LIGHTMAPS * 2), colorbuffer and raw-texture sets that draw from the same pool. On texture- and lightmap-heavy maps the peak demand exceeds the pool, so vkAllocateDescriptorSets in QVk_CreateTexture returns VK_ERROR_OUT_OF_POOL_MEMORY and the renderer aborts. Size both the sampler count and maxSets for the real worst case.

Reported in yquake2/yquake2#1323.

The combined-image-sampler pool was sized MAX_VKTEXTURES + 1, ignoring the
lightmap (MAX_LIGHTMAPS * 2), colorbuffer and raw-texture sets that draw
from the same pool. On texture- and lightmap-heavy maps the peak demand
exceeds the pool, so vkAllocateDescriptorSets in QVk_CreateTexture returns
VK_ERROR_OUT_OF_POOL_MEMORY and the renderer aborts. Size both the sampler
count and maxSets for the real worst case.

Reported in yquake2/yquake2#1323.
@0lvin
0lvin merged commit dcca9c3 into yquake2:master Jun 27, 2026
9 checks passed
@0lvin

0lvin commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Thank you, merged.

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.

2 participants