Lines Matching +full:unknown +full:- +full:key
1 /* Copyright (c) 2015-2016 The Khronos Group Inc.
2 * Copyright (c) 2015-2016 Valve Corporation
3 * Copyright (c) 2015-2016 LunarG, Inc.
4 * Copyright (c) 2015-2016 Google, Inc.
39 dispatch_key key = get_dispatch_key(object); in device_dispatch_table() local
40 device_table_map::const_iterator it = tableMap.find((void *)key); in device_dispatch_table()
42 return it->second; in device_dispatch_table()
46 dispatch_key key = get_dispatch_key(object); in instance_dispatch_table() local
47 instance_table_map::const_iterator it = tableInstanceMap.find((void *)key); in instance_dispatch_table()
50 …r, "instance_dispatch_table: map: %p, object: %p, key: %p, table: %p\n", &tableInstanceMap, object… in instance_dispatch_table()
51 it->second); in instance_dispatch_table()
53 …"instance_dispatch_table: map: %p, object: %p, key: %p, table: UNKNOWN\n", &tableInstanceMap, obje… in instance_dispatch_table()
57 return it->second; in instance_dispatch_table()
60 void destroy_dispatch_table(device_table_map &map, dispatch_key key) { in destroy_dispatch_table() argument
62 device_table_map::const_iterator it = map.find((void *)key); in destroy_dispatch_table()
64 …fprintf(stderr, "destroy device dispatch_table: map: %p, key: %p, table: %p\n", &map, key, it->sec… in destroy_dispatch_table()
66 … fprintf(stderr, "destroy device dispatch table: map: %p, key: %p, table: UNKNOWN\n", &map, key); in destroy_dispatch_table()
70 map.erase(key); in destroy_dispatch_table()
73 void destroy_dispatch_table(instance_table_map &map, dispatch_key key) { in destroy_dispatch_table() argument
75 instance_table_map::const_iterator it = map.find((void *)key); in destroy_dispatch_table()
77 …printf(stderr, "destroy instance dispatch_table: map: %p, key: %p, table: %p\n", &map, key, it->se… in destroy_dispatch_table()
79 … fprintf(stderr, "destroy instance dispatch table: map: %p, key: %p, table: UNKNOWN\n", &map, key); in destroy_dispatch_table()
83 map.erase(key); in destroy_dispatch_table()
86 void destroy_device_dispatch_table(dispatch_key key) { destroy_dispatch_table(tableMap, key); } in destroy_device_dispatch_table() argument
88 void destroy_instance_dispatch_table(dispatch_key key) { destroy_dispatch_table(tableInstanceMap, k… in destroy_instance_dispatch_table() argument
91 dispatch_key key = get_dispatch_key(object); in get_dispatch_table() local
92 device_table_map::const_iterator it = map.find((void *)key); in get_dispatch_table()
95 …err, "device_dispatch_table: map: %p, object: %p, key: %p, table: %p\n", &tableInstanceMap, object… in get_dispatch_table()
96 it->second); in get_dispatch_table()
98 …, "device_dispatch_table: map: %p, object: %p, key: %p, table: UNKNOWN\n", &tableInstanceMap, obje… in get_dispatch_table()
102 return it->second; in get_dispatch_table()
107 dispatch_key key = get_dispatch_key(object); in get_dispatch_table() local
108 instance_table_map::const_iterator it = map.find((void *)key); in get_dispatch_table()
111 …r, "instance_dispatch_table: map: %p, object: %p, key: %p, table: %p\n", &tableInstanceMap, object… in get_dispatch_table()
112 it->second); in get_dispatch_table()
114 …"instance_dispatch_table: map: %p, object: %p, key: %p, table: UNKNOWN\n", &tableInstanceMap, obje… in get_dispatch_table()
118 return it->second; in get_dispatch_table()
122 VkLayerInstanceCreateInfo *chain_info = (VkLayerInstanceCreateInfo *)pCreateInfo->pNext; in get_chain_info()
123 …while (chain_info && !(chain_info->sType == VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO && chain… in get_chain_info()
124 chain_info = (VkLayerInstanceCreateInfo *)chain_info->pNext; in get_chain_info()
131 VkLayerDeviceCreateInfo *chain_info = (VkLayerDeviceCreateInfo *)pCreateInfo->pNext; in get_chain_info()
132 …while (chain_info && !(chain_info->sType == VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO && chain_i… in get_chain_info()
133 chain_info = (VkLayerDeviceCreateInfo *)chain_info->pNext; in get_chain_info()
141 * as the key to these table maps.
142 * Instance -> PhysicalDevice
143 * Device -> CommandBuffer or Queue
144 * If use the object themselves as key to map then implies Create entrypoints have to be intercepted
145 * and a new key inserted into map */
148 dispatch_key key = get_dispatch_key(instance); in initInstanceTable() local
149 instance_table_map::const_iterator it = map.find((void *)key); in initInstanceTable()
153 map[(void *)key] = pTable; in initInstanceTable()
155 fprintf(stderr, "New, Instance: map: %p, key: %p, table: %p\n", &map, key, pTable); in initInstanceTable()
159 fprintf(stderr, "Instance: map: %p, key: %p, table: %p\n", &map, key, it->second); in initInstanceTable()
161 return it->second; in initInstanceTable()
175 dispatch_key key = get_dispatch_key(device); in initDeviceTable() local
176 device_table_map::const_iterator it = map.find((void *)key); in initDeviceTable()
180 map[(void *)key] = pTable; in initDeviceTable()
182 fprintf(stderr, "New, Device: map: %p, key: %p, table: %p\n", &map, key, pTable); in initDeviceTable()
186 fprintf(stderr, "Device: map: %p, key: %p, table: %p\n", &map, key, it->second); in initDeviceTable()
188 return it->second; in initDeviceTable()