Debian Codegraph @

shared/test/unit_test/direct_submission/dispatchers/dispatcher_fixture.cpp

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