loader: make sure createDevice uses ICDs physicalDevice
Trampoline CreateDevice was using the terminator's physicalDevice instead of
the ICDs.
Change-Id: Ifdc6497fe4130e1ac1440b225401e65600b2a999
diff --git a/loader/trampoline.c b/loader/trampoline.c
index f4370a5..a26d8c5 100644
--- a/loader/trampoline.c
+++ b/loader/trampoline.c
@@ -629,8 +629,9 @@
return VK_ERROR_OUT_OF_HOST_MEMORY;
}
+ //TODO handle more than one phys dev per icd (icd->phys_devs[0])
res = loader_add_device_extensions(
- inst, icd, phys_dev->phys_dev,
+ inst, icd, icd->phys_devs[0],
phys_dev->this_icd->this_icd_lib->lib_name, &icd_exts);
if (res != VK_SUCCESS) {
loader_platform_thread_unlock_mutex(&loader_lock);