vkback: one sampler per distinct description #167
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory!167
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-167"
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?
@360900 on GitHub · 2026-12-01 23:12 UTC · original
360900:fix/one-sampler→main· +52 −36 · 8 files · 1 commits · merged 2026-12-02 19:38 UTCWhat
A Vulkan sampler is made once per distinct description and kept for the device's life (
layout::sampler,Dev::samplers). Before, every pipeline made the static samplers of its set 2 anew and kept them with it.The reference
vkd3d-proton keeps one sampler per description too (
vkd3d_sampler_state_create_static_sampler, a map on the device).Evidence
maxSamplerAllocationCountis 4,000 there. Validation run (layer 1.4.363, start to the first minutes in the world):VUID-vkCreateSampler-maxSamplerAllocationCount-04110before, gone with this. The driver itself never refused a sampler.one_sampler_a_description(-- --ignored): the same description gives the same sampler, another one another.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rule 29)unsafeblock has a// SAFETY:comment (rule 36): the new block has itTRANSLATOR_VERSION: the translator is not touched (rule 27)@vktory6 on GitHub · 2026-12-02 19:39 UTC · original
Merged, thanks. Checked together with the rest of the NVIDIA set on the reference card (RX 9070 XT): unit tests pass, and a house validation run with all six applied showed no new validation errors, no device loss and the expected counters.