1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
/*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/unit_test/direct_submission/dispatchers/dispatcher_fixture.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/constants.h"
using namespace NEO;
void DispatcherFixture::setUp() {
DeviceFixture::setUp();
bufferAllocation = alignedMalloc(MemoryConstants::pageSize, MemoryConstants::pageSize);
cmdBuffer.replaceBuffer(bufferAllocation, MemoryConstants::pageSize);
}
void DispatcherFixture::tearDown() {
alignedFree(bufferAllocation);
DeviceFixture::tearDown();
}
|