vulkan: Copy pNext structures when enqueuing commands
There is enough information in vk.xml to figure how to copy the chain of extensions, so use it.
Otherwise, the caller might have released the structs after recording the command but before it executes.
Closes #5314 (closed).
Signed-off-by: Tomeu Vizoso tomeu.vizoso@collabora.com Reported-by: Mike Blumenkrantz michael.blumenkrantz@gmail.com