Fix Win32 Unknown Device function handling
authorCharles Giessen <charles@lunarg.com>
Sat, 12 Feb 2022 03:49:57 +0000 (20:49 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Tue, 15 Feb 2022 17:48:53 +0000 (10:48 -0700)
commit451076dcbe94d585e5eb58c6073287d94edfc21e
treedb5d8642fdf0f677f0129ad99160600c61236c9b
parentf4a52aeeeb023e5aaf8b77b0f341c5cc9cee5e77
Fix Win32 Unknown Device function handling

The handling of unknown device functions queried with vkGetInstanceProcAddr
required an additional pointer dereference to get the dispatch table.

The VkDevice handle is a pointer to the `chain_device` member of
`loader_device`. This member is actually a pointer to `loader_dispatch`, or
put another way, the "start" of `loader_device`. Thus, to get access to the
dispatch table, we need to dereference the VkDevice passed into the function
then dereference the chain_device to get loader_dispatch`.
loader/unknown_ext_chain_masm.asm