mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
44d8a6ae2b
commit
f267c34327
@@ -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]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user