Lines Matching refs:pMemObjInfo

626 static VkBool32 reportMemReferencesAndCleanUp(layer_data *dev_data, DEVICE_MEM_INFO *pMemObjInfo) {  in reportMemReferencesAndCleanUp()  argument
628 size_t cmdBufRefCount = pMemObjInfo->pCommandBufferBindings.size(); in reportMemReferencesAndCleanUp()
629 size_t objRefCount = pMemObjInfo->pObjBindings.size(); in reportMemReferencesAndCleanUp()
631 if ((pMemObjInfo->pCommandBufferBindings.size()) != 0) { in reportMemReferencesAndCleanUp()
633 (uint64_t)pMemObjInfo->mem, __LINE__, MEMTRACK_FREED_MEM_REF, "MEM", in reportMemReferencesAndCleanUp()
636 (uint64_t)pMemObjInfo->mem, (cmdBufRefCount + objRefCount)); in reportMemReferencesAndCleanUp()
639 if (cmdBufRefCount > 0 && pMemObjInfo->pCommandBufferBindings.size() > 0) { in reportMemReferencesAndCleanUp()
640 for (list<VkCommandBuffer>::const_iterator it = pMemObjInfo->pCommandBufferBindings.begin(); in reportMemReferencesAndCleanUp()
641 it != pMemObjInfo->pCommandBufferBindings.end(); ++it) { in reportMemReferencesAndCleanUp()
645 …and Buffer %p still has a reference to mem obj %#" PRIxLEAST64, (*it), (uint64_t)pMemObjInfo->mem); in reportMemReferencesAndCleanUp()
648 pMemObjInfo->pCommandBufferBindings.clear(); in reportMemReferencesAndCleanUp()
651 if (objRefCount > 0 && pMemObjInfo->pObjBindings.size() > 0) { in reportMemReferencesAndCleanUp()
652 … for (auto it = pMemObjInfo->pObjBindings.begin(); it != pMemObjInfo->pObjBindings.end(); ++it) { in reportMemReferencesAndCleanUp()
655 it->handle, (uint64_t)pMemObjInfo->mem); in reportMemReferencesAndCleanUp()
658 pMemObjInfo->pObjBindings.clear(); in reportMemReferencesAndCleanUp()
767 DEVICE_MEM_INFO *pMemObjInfo = get_mem_obj_info(dev_data, pObjBindInfo->mem); in clear_object_binding() local
770 if (pMemObjInfo) { in clear_object_binding()
775 … for (auto it = pMemObjInfo->pObjBindings.begin(); it != pMemObjInfo->pObjBindings.end(); ++it) { in clear_object_binding()
777 pMemObjInfo->refCount--; in clear_object_binding()
778 pMemObjInfo->pObjBindings.erase(it); in clear_object_binding()
788 object_type_to_string(type), handle, (uint64_t)pMemObjInfo->mem); in clear_object_binding()