Check completion fence for AllocationType::DEFERRED_TASKS_LIST

Related-To: NEO-7458

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2022-11-23 13:07:16 +00:00
committed by Compute-Runtime-Automation
parent 44d8a6ae2b
commit f267c34327
2 changed files with 6 additions and 2 deletions

View File

@@ -1668,6 +1668,7 @@ bool DrmMemoryManager::allocationTypeForCompletionFence(AllocationType allocatio
return true;
}
if (allocationType == AllocationType::COMMAND_BUFFER ||
allocationType == AllocationType::DEFERRED_TASKS_LIST ||
allocationType == AllocationType::RING_BUFFER ||
allocationType == AllocationType::SEMAPHORE_BUFFER ||
allocationType == AllocationType::TAG_BUFFER) {

View File

@@ -5315,13 +5315,16 @@ TEST_F(DrmMemoryManagerTest, givenDrmWhenRetrieveMmapOffsetForBufferObjectIsCall
}
TEST_F(DrmMemoryManagerTest, GivenEligbleAllocationTypeWhenCheckingAllocationEligbleForCompletionFenceThenReturnTrue) {
AllocationType validAllocations[] = {
constexpr size_t arraySize = 5;
AllocationType validAllocations[arraySize] = {
AllocationType::COMMAND_BUFFER,
AllocationType::RING_BUFFER,
AllocationType::DEFERRED_TASKS_LIST,
AllocationType::SEMAPHORE_BUFFER,
AllocationType::TAG_BUFFER};
for (size_t i = 0; i < 4; i++) {
for (size_t i = 0; i < arraySize; i++) {
EXPECT_TRUE(memoryManager->allocationTypeForCompletionFence(validAllocations[i]));
}
}