From 12e39c2ec5e5251bc02c20dc640b17bbcf073d17 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Fri, 24 Jun 2016 09:57:32 -0600 Subject: layers: GH618, Correct WSI exension flag usage Object_tracker had no notion of individual WSI extension flags, and unique_objects was not checking them. Change-Id: I93c1aa0c324aa602717f36e2975120dba8bc364e --- layers/unique_objects.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'layers/unique_objects.h') diff --git a/layers/unique_objects.h b/layers/unique_objects.h index 9abf240c..942724f1 100644 --- a/layers/unique_objects.h +++ b/layers/unique_objects.h @@ -54,7 +54,7 @@ struct layer_data { layer_data() : wsi_enabled(false), gpu(VK_NULL_HANDLE){}; }; -struct instExts { +struct instance_extension_enables { bool wsi_enabled; bool xlib_enabled; bool xcb_enabled; @@ -64,7 +64,7 @@ struct instExts { bool win32_enabled; }; -static std::unordered_map instanceExtMap; +static std::unordered_map instanceExtMap; static std::unordered_map layer_data_map; static device_table_map unique_objects_device_table_map; static instance_table_map unique_objects_instance_table_map; @@ -115,6 +115,7 @@ static void createInstanceRegisterExtensions(const VkInstanceCreateInfo *pCreate #endif // VK_USE_PLATFORM_ANDROID_KHR instanceExtMap[pDisp] = {}; + for (i = 0; i < pCreateInfo->enabledExtensionCount; i++) { if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_SURFACE_EXTENSION_NAME) == 0) instanceExtMap[pDisp].wsi_enabled = true; -- cgit v1.2.3