aboutsummaryrefslogtreecommitdiff
path: root/layers/param_checker.cpp
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-06-25 18:01:43 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-07-01 21:08:13 -0600
commit58d1fc661197d73b789f5d8628cbf3393529699b (patch)
tree1ab145c993dadbf53b5784752c27c7c8fab1b1a4 /layers/param_checker.cpp
parent2ca7b085fc90c156c6920b3fe9580511ac481ec5 (diff)
downloadusermoji-58d1fc661197d73b789f5d8628cbf3393529699b.tar.xz
loader: Move CreateDevice to device table
Discovered an issue where a layer was doing cleanup in it's DestroyDevice function but the CreateDevice was never called. This happened because the extension was only enabled on the device chain and the device chain doesn't actually call CreateDevice. That happens on the Instance chain. Making it so that we can call down the device chain - which is terminated by the ICD. We need to know the real device object to construct the device chain heiarchy and when calling down the device chain it should end with the ICD doing the actual device object creation. This patch fixes the issue by using the same process as CreateInstance. The loader will call the ICD's CreateDevice and pass that in the *pDevice argument. The layers then ignore the PhysicalDevice parameter and use the *pDevice to access the device chain. To prevent the ICD from being called twice needed to stub in a special loader_GetDeviceChainProcAddr to provide a stub for only CreateDevice as the end of the chain.
Diffstat (limited to 'layers/param_checker.cpp')
0 files changed, 0 insertions, 0 deletions