Fix CommandPool reallocation bugs 45/268645/3
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 28 Dec 2021 10:49:36 +0000 (19:49 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 5 Jan 2022 07:30:57 +0000 (16:30 +0900)
commit520585587087be72451cbeab7887ddc8132b89da
tree55f1a2c50e53c221d110609eef38ffc36c10ddd8
parent4f04cfc0afef2d4147ec464c8b4cf40af8ea67d7
Fix CommandPool reallocation bugs

When fixedCapacity is > 0 and data.size() == fixedCapacity,
There was some logical bugs when data.size() == offset + count.

We can hold 'data.size()'`s data, and after Allocate(count),
we will hold 'offset + count'`s data.
So we should reallocate only data.size() < offset + count.

+

Furthermore, We just set default Command Pool Increment as 32kb exactly.
Previous code increase 32 * sizeof(Command) kb = 2MB for each command pool.

Change-Id: I5e845839057bc75c40c275e884b7677fe2c4d812
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/graphics/gles-impl/gles-graphics-command-buffer.cpp