diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-03-31 18:03:56 +1300 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-04-01 14:24:37 -0600 |
| commit | 33793e9abbfb13d554ff0972e6ad42b69571f5f7 (patch) | |
| tree | 2ca75a3c39f2df5f1be737b495ced42335b8d6f1 /layers/core_validation.cpp | |
| parent | 61ca9907114a345afbe234da48ae637805b15d97 (diff) | |
| download | usermoji-33793e9abbfb13d554ff0972e6ad42b69571f5f7.tar.xz | |
layers: Get rid of a bunch of linked list copying when retiring CBs
There was no reason to copy this.
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index dee2e7ac..244ef692 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -579,9 +579,8 @@ static void clear_cmd_buf_and_mem_references(layer_data *dev_data, const VkComma if (pCBNode) { if (pCBNode->pMemObjList.size() > 0) { - list<VkDeviceMemory> mem_obj_list = pCBNode->pMemObjList; - for (list<VkDeviceMemory>::iterator it = mem_obj_list.begin(); it != mem_obj_list.end(); ++it) { - DEVICE_MEM_INFO *pInfo = get_mem_obj_info(dev_data, *it); + for (auto mem : pCBNode->pMemObjList) { + DEVICE_MEM_INFO *pInfo = get_mem_obj_info(dev_data, mem); if (pInfo) { pInfo->commandBufferBindings.erase(cb); } |
