diff options
| author | Jon Ashburn <jon@lunarg.com> | 2016-04-01 11:49:39 -0600 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2016-04-01 11:49:39 -0600 |
| commit | 3d3c488790d74bb21e435ab0976d20fb7409aeac (patch) | |
| tree | 9c1e81b9dc25c892815abd058c987ffae70de37b /loader | |
| parent | 8bc0c51ef3c01a3964f3bcf16ef639aaedf259f7 (diff) | |
| download | usermoji-3d3c488790d74bb21e435ab0976d20fb7409aeac.tar.xz | |
loader: Fix createDev treminator to init the logicalDevs ICD dev
Last commit on physDev detanglement was incompatible with the fix
to simplify the chaining loader_device_info.
Change-Id: I0468178bcffb114a9bf3038c773cf1912ad5ac72
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/loader.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/loader/loader.c b/loader/loader.c index eecbc756..ff793ea1 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -3850,19 +3850,18 @@ terminator_CreateDevice(VkPhysicalDevice physicalDevice, } } - VkDevice localDevice; // TODO: Why does fpCreateDevice behave differently than // this_icd->CreateDevice? // VkResult res = fpCreateDevice(phys_dev->phys_dev, &localCreateInfo, // pAllocator, &localDevice); res = phys_dev->this_icd->CreateDevice(phys_dev->phys_dev, &localCreateInfo, - pAllocator, &localDevice); + pAllocator, &dev->device); if (res != VK_SUCCESS) { return res; } - *pDevice = localDevice; + *pDevice = dev->device; loader_add_logical_device(phys_dev->this_icd->this_instance, phys_dev->this_icd, dev); /* Init dispatch pointer in new device object */ |
