From ab46b3609d75079ae5aedba8d7a04e666eab19dd Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Sat, 4 Apr 2015 14:52:07 -0600 Subject: misc: Add create_info struct to CreateInstance() Allows extnesion or layer enablement at CreateInstance Khronos Bug 13637 --- loader/loader.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'loader/loader.c') 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) { -- cgit v1.2.3