Commit bc73bcb3 by Alexis Hetu Committed by Alexis Hétu

Descriptor Pool typo

Fixed typos where end() was used instead of begin() Bug b/137554711 Change-Id: I5faff14d400a644146501a941c35d503535355c4 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/34111Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Presubmit-Ready: Alexis Hétu <sugoi@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 16da2813
......@@ -101,7 +101,7 @@ uint8_t* DescriptorPool::findAvailableMemory(size_t size)
}
// Second, look for space at the beginning of the pool
const auto itBegin = nodes.end();
const auto itBegin = nodes.begin();
freeSpace = itBegin->set - pool;
if(freeSpace >= size)
{
......@@ -215,7 +215,7 @@ size_t DescriptorPool::computeTotalFreeSize() const
totalFreeSize += poolSize - (itLast->set - pool) + itLast->size;
// Compute space at the beginning of the pool
const auto itBegin = nodes.end();
const auto itBegin = nodes.begin();
totalFreeSize += itBegin->set - pool;
// Finally, look between existing pool items
......
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