aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-12-11 10:45:00 -0700
committerJon Ashburn <jon@lunarg.com>2015-12-11 10:45:00 -0700
commite82dc9872f8219cef73784c10a33f614337eaab6 (patch)
tree4294b18c7ccd4c9462b1b8abeef6c621cbc6ff64
parent2b95038afa12b89b2106ade0163cca712d8d55a2 (diff)
downloadusermoji-e82dc9872f8219cef73784c10a33f614337eaab6.tar.xz
loader: Fix bug where dynamic dispatch for layer dev exts needs to come later
GetDeviceProcAddr dynamic dispatch init was happening too soon before layer device extension was enabled. Fix it.
-rw-r--r--loader/loader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/loader.c b/loader/loader.c
index f4ca551b..bc020ee9 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -3506,12 +3506,12 @@ VKAPI_ATTR VkResult VKAPI_CALL loader_CreateDevice(
}
loader_activate_device_layers(inst, dev, *pDevice);
- /* initialize any device extension dispatch entry's from the instance list*/
- loader_init_dispatch_dev_ext(inst, dev);
-
/* finally can call down the chain */
res = dev->loader_dispatch.core_dispatch.CreateDevice(physicalDevice, pCreateInfo, pAllocator, pDevice);
+ /* initialize any device extension dispatch entry's from the instance list*/
+ loader_init_dispatch_dev_ext(inst, dev);
+
/* initialize WSI device extensions as part of core dispatch since loader has
* dedicated trampoline code for these*/
loader_init_device_extension_dispatch_table(&dev->loader_dispatch,