diff options
| author | Jon Ashburn <jon@lunarg.com> | 2015-04-04 14:52:07 -0600 |
|---|---|---|
| committer | Chia-I Wu <olv@lunarg.com> | 2015-04-16 17:33:29 +0800 |
| commit | ab46b3609d75079ae5aedba8d7a04e666eab19dd (patch) | |
| tree | 402fe078662793a962db536313ebe48c55250417 /loader | |
| parent | 3d98fec8d8c5b9a1e9b45c32ba50ca4ab651754c (diff) | |
| download | usermoji-ab46b3609d75079ae5aedba8d7a04e666eab19dd.tar.xz | |
misc: Add create_info struct to CreateInstance()
Allows extnesion or layer enablement at CreateInstance
Khronos Bug 13637
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/loader.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/loader/loader.c b/loader/loader.c index 556c2b3c..7ea486a8 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -858,9 +858,8 @@ extern uint32_t loader_activate_layers(XGL_PHYSICAL_GPU gpu, const XGL_DEVICE_CR } LOADER_EXPORT XGL_RESULT XGLAPI xglCreateInstance( - const XGL_APPLICATION_INFO* pAppInfo, - const XGL_ALLOC_CALLBACKS* pAllocCb, - XGL_INSTANCE* pInstance) + const XGL_INSTANCE_CREATE_INFO* pCreateInfo, + XGL_INSTANCE* pInstance) { static LOADER_PLATFORM_THREAD_ONCE_DECLARATION(once_icd); static LOADER_PLATFORM_THREAD_ONCE_DECLARATION(once_layer); @@ -888,7 +887,7 @@ LOADER_EXPORT XGL_RESULT XGLAPI xglCreateInstance( while (scanned_icds) { icd = loader_icd_add(ptr_instance, scanned_icds); if (icd) { - res = scanned_icds->CreateInstance(pAppInfo, pAllocCb, + res = scanned_icds->CreateInstance(pCreateInfo, &(scanned_icds->instance)); if (res != XGL_SUCCESS) { |
