loader: implement new layer init method
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Fri, 8 Jan 2016 19:18:43 +0000 (12:18 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Fri, 4 May 2018 15:24:22 +0000 (09:24 -0600)
commit1d081fd08da0c010205b34e0e5507c2b83681c10
tree6c7811c77f4609f9e949fcda7044d1cc5a375ab8
parentb5c860c835c15190328685aad96311ac6d31f9e5
loader: implement new layer init method

New layer init method requires the construction of
Link information for CreateInstance and CreateDevice
that is accessible to layers via the CreateInfo.pNext pointer.
The layer can then use the Get*ProcAddr from the Link
structure to initialize their dispatch table if the
call down the chain returns successfully.
This removes the need to do special initialization work
at Get*ProcAddr time.
Layer Get*ProcAddr now return their internal function
pointers regardless of the value of instance or device.
Only need to have valid instance & device when looking
up extensions or when passing the request down the chain.
This mechanism allows us to remove object wrapping used
by the loader previously. Also simplifies the dispatch table
setup.

Conflicts:
layers/device_limits.cpp
layers/draw_state.cpp
loader/loader.c
loader/trampoline.c
include/vulkan/vk_layer.h