mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Allow to reuse just completed allocation
Change-Id: I7c1ab153178b79348d49209ca09478543d35e197 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
337d374bc5
commit
630a7e1c26
@@ -86,7 +86,7 @@ GraphicsAllocation *AllocationsList::detachAllocationImpl(GraphicsAllocation *,
|
||||
auto currentTagValue = *req->csrTagAddress;
|
||||
if ((req->internalAllocationRequired == curr->is32BitAllocation) &&
|
||||
(curr->getUnderlyingBufferSize() >= req->requiredMinimalSize) &&
|
||||
((currentTagValue > curr->getTaskCount(req->contextId)) || (curr->getTaskCount(req->contextId) == 0))) {
|
||||
(currentTagValue >= curr->getTaskCount(req->contextId))) {
|
||||
return removeOneImpl(curr, nullptr);
|
||||
}
|
||||
curr = curr->next;
|
||||
|
||||
Reference in New Issue
Block a user