perf(vkbridge): client-named descriptor sets, allocated without a round trip

Where the client keeps a pool's books and knows every layout, it names the
sets itself (top bit set) and sends vkbAllocDescSets asynchronously; the
server allocates the driver's sets and translates the names in dispatch
wrappers (updates, template updates, binds, frees) and forgets them on pool
reset/destroy. All-or-nothing; a full pool still answers OUT_OF_POOL_MEMORY.

d3d11_bench 1000 draws: 1.43 -> 1.12 ms/frame (native 0.30); the only
synchronous call left per frame is vkWaitSemaphores. Host suite 14/14.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1U9H1evGNjHRQ3wRUdv5V
This commit is contained in:
Ahmad Sayed Alsayed EbrahimandClaude Opus 5.5 committed 2026-10-10 14:52:59 +03:00
1 parent 850c929967
commit 0e7f8e7170
10 files changed
+689 -289

No files matched your search

+1 -1
View File
@@ -383,7 +383,7 @@ SERVER_DISPATCH_EXTRA = ['vkMapMemory', 'vkUnmapMemory', 'vkGetMemoryHostPointer
'vkUpdateDescriptorSetWithTemplate', 'vkCmdPushDescriptorSetWithTemplateKHR']
dispatch_cmds = sorted(set(wire_cmds) | {reg.canon_cmd(c) for c in SERVER_DISPATCH_EXTRA})
# Wire-only helpers that are not Vulkan commands (handled by hand on both sides).
EXTRA_WIRE = ['vkbHello', 'vkbQueryServer', 'vkbDescUpdateRaw', 'vkbPushDescRaw']
EXTRA_WIRE = ['vkbHello', 'vkbQueryServer', 'vkbDescUpdateRaw', 'vkbPushDescRaw', 'vkbAllocDescSets']
# --------------------------------------------------------------------------------------------
# Struct closure: every struct reachable from wire commands (params, members, pNext extenders).