Commit 58c35d42 by Mohan Maiya Committed by Commit Bot

Vulkan: Unmap buffer when adding to mBufferFreeList

The commit b5af8bde moved the unmap call on a buffer to when it is placed in mBufferFreeList. There was one place that was missed, rectifying that oversight here. Bug: angleproject:5689 Change-Id: Iaed2916de374d55ab59276e2679c23ed7ef9c4e8 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2733476 Commit-Queue: Mohan Maiya <m.maiya@samsung.com> Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 60ad763d
......@@ -1947,6 +1947,7 @@ void DynamicBuffer::releaseInFlightBuffers(ContextVk *contextVk)
}
else
{
toRelease->unmap(contextVk->getRenderer());
mBufferFreeList.push_back(std::move(toRelease));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment