From e9225fc7ea7460f8e33833875650ed27bd615180 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 2 Nov 2016 16:13:01 +1300 Subject: [PATCH] layers: Remove one remaining use of mid() in PV Signed-off-by: Chris Forbes --- layers/parameter_validation.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/layers/parameter_validation.cpp b/layers/parameter_validation.cpp index 0cc31a1..e03f49c 100644 --- a/layers/parameter_validation.cpp +++ b/layers/parameter_validation.cpp @@ -86,18 +86,6 @@ static std::unordered_map layer_data_map; static device_table_map pc_device_table_map; static instance_table_map pc_instance_table_map; -// "my instance data" -debug_report_data *mid(VkInstance object) { - dispatch_key key = get_dispatch_key(object); - layer_data *data = get_my_data_ptr(key, layer_data_map); -#if DISPATCH_MAP_DEBUG - fprintf(stderr, "MID: map: 0x%p, object: 0x%p, key: 0x%p, data: 0x%p\n", &layer_data_map, object, key, data); -#endif - assert(data != NULL); - - return data->report_data; -} - // "my device data" debug_report_data *mdd(void *object) { dispatch_key key = get_dispatch_key(object); @@ -1416,7 +1404,7 @@ VKAPI_ATTR void VKAPI_CALL DestroyInstance(VkInstance instance, const VkAllocati my_data->logging_callback.pop_back(); } - layer_debug_report_destroy_instance(mid(instance)); + layer_debug_report_destroy_instance(my_data->report_data); layer_data_map.erase(pTable); pc_instance_table_map.erase(key); -- 2.7.4