Lines Matching refs:object
78 void startWrite(debug_report_data *report_data, T object) { in startWrite() argument
82 if (uses.find(object) == uses.end()) { in startWrite()
84 struct object_use_data *use_data = &uses[object]; in startWrite()
89 struct object_use_data *use_data = &uses[object]; in startWrite()
93 … skipCall |= log_msg(report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, objectType, (uint64_t)(object), in startWrite()
99 while (uses.find(object) != uses.end()) { in startWrite()
103 struct object_use_data *use_data = &uses[object]; in startWrite()
120 … skipCall |= log_msg(report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, objectType, (uint64_t)(object), in startWrite()
126 while (uses.find(object) != uses.end()) { in startWrite()
130 struct object_use_data *use_data = &uses[object]; in startWrite()
148 void finishWrite(T object) { in finishWrite() argument
151 uses[object].writer_count -= 1; in finishWrite()
152 if ((uses[object].reader_count == 0) && (uses[object].writer_count == 0)) { in finishWrite()
153 uses.erase(object); in finishWrite()
160 void startRead(debug_report_data *report_data, T object) { in startRead() argument
164 if (uses.find(object) == uses.end()) { in startRead()
166 struct object_use_data *use_data = &uses[object]; in startRead()
170 } else if (uses[object].writer_count > 0 && uses[object].thread != tid) { in startRead()
172 … skipCall |= log_msg(report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, objectType, (uint64_t)(object), in startRead()
175 uses[object].thread, tid); in startRead()
178 while (uses.find(object) != uses.end()) { in startRead()
182 struct object_use_data *use_data = &uses[object]; in startRead()
187 uses[object].reader_count += 1; in startRead()
191 uses[object].reader_count += 1; in startRead()
194 void finishRead(T object) { in finishRead() argument
196 uses[object].reader_count -= 1; in finishRead()
197 if ((uses[object].reader_count == 0) && (uses[object].writer_count == 0)) { in finishRead()
198 uses.erase(object); in finishRead()
285 …static void startWriteObject(struct layer_data *my_data, type object) { …
286 …my_data->c_##type.startWrite(my_data->report_data, object); …
288 …d finishWriteObject(struct layer_data *my_data, type object) { my_data->c_##type.finishWrite(objec…
289 …static void startReadObject(struct layer_data *my_data, type object) { …
290 …my_data->c_##type.startRead(my_data->report_data, object); …
292 …oid finishReadObject(struct layer_data *my_data, type object) { my_data->c_##type.finishRead(objec…
328 static void startWriteObject(struct layer_data *my_data, VkCommandBuffer object, bool lockPool = tr…
331 VkCommandPool pool = command_pool_map[object];
335 my_data->c_VkCommandBuffer.startWrite(my_data->report_data, object);
337 static void finishWriteObject(struct layer_data *my_data, VkCommandBuffer object, bool lockPool = t…
338 my_data->c_VkCommandBuffer.finishWrite(object);
341 VkCommandPool pool = command_pool_map[object];
346 static void startReadObject(struct layer_data *my_data, VkCommandBuffer object) { in startReadObject() argument
348 VkCommandPool pool = command_pool_map[object]; in startReadObject()
351 my_data->c_VkCommandBuffer.startRead(my_data->report_data, object); in startReadObject()
353 static void finishReadObject(struct layer_data *my_data, VkCommandBuffer object) { in finishReadObject() argument
354 my_data->c_VkCommandBuffer.finishRead(object); in finishReadObject()
356 VkCommandPool pool = command_pool_map[object]; in finishReadObject()