layers: GH897, Add VK_KHR_display stubs to OT
Added extension enable and function stubs for VK_KHR_display
extension functions to object_tracker.
Change-Id: Iaee862efaadf4657271b74d75a289dbaf13af26c
diff --git a/layers/object_tracker.h b/layers/object_tracker.h
index 8f852f8..078e7f0 100644
--- a/layers/object_tracker.h
+++ b/layers/object_tracker.h
@@ -96,6 +96,7 @@
std::vector<VkDebugReportCallbackEXT> logging_callback;
bool wsi_enabled;
bool wsi_display_swapchain_enabled;
+ bool wsi_display_extension_enabled;
bool objtrack_extensions_enabled;
// The following are for keeping track of the temporary callbacks that can
@@ -117,13 +118,13 @@
// Default constructor
layer_data()
: instance(nullptr), physical_device(nullptr), num_objects{}, num_total_objects(0), report_data(nullptr),
- wsi_enabled(false), wsi_display_swapchain_enabled(false), objtrack_extensions_enabled(false), num_tmp_callbacks(0),
- tmp_dbg_create_infos(nullptr), tmp_callbacks(nullptr), object_map{}, dispatch_table{} {
+ wsi_enabled(false), wsi_display_swapchain_enabled(false), wsi_display_extension_enabled(false),
+ objtrack_extensions_enabled(false), num_tmp_callbacks(0), tmp_dbg_create_infos(nullptr), tmp_callbacks(nullptr),
+ object_map{}, dispatch_table{} {
object_map.resize(VK_DEBUG_REPORT_OBJECT_TYPE_RANGE_SIZE_EXT + 1);
}
};
-
static std::unordered_map<void *, struct instance_extension_enables> instanceExtMap;
static std::unordered_map<void *, layer_data *> layer_data_map;
static device_table_map ot_device_table_map;