54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
/*
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/helpers/preamble.h"
|
|
#include "shared/test/unit_test/cmd_parse/hw_parse.h"
|
|
|
|
#include "opencl/test/unit_test/command_stream/linear_stream_fixture.h"
|
|
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
|
|
#include "opencl/test/unit_test/fixtures/platform_fixture.h"
|
|
|
|
using namespace NEO;
|
|
|
|
struct PreambleFixture : public ClDeviceFixture,
|
|
public LinearStreamFixture,
|
|
public HardwareParse,
|
|
public ::testing::Test {
|
|
void SetUp() override {
|
|
ClDeviceFixture::SetUp();
|
|
HardwareParse::SetUp();
|
|
}
|
|
|
|
void TearDown() override {
|
|
HardwareParse::TearDown();
|
|
ClDeviceFixture::TearDown();
|
|
}
|
|
};
|
|
|
|
class PreambleVfeState : public PlatformFixture,
|
|
public ::testing::Test,
|
|
public LinearStreamFixture,
|
|
public HardwareParse {
|
|
public:
|
|
void SetUp() override {
|
|
::testing::Test::SetUp();
|
|
LinearStreamFixture::SetUp();
|
|
HardwareParse::SetUp();
|
|
PlatformFixture::SetUp();
|
|
testWaTable = &pPlatform->peekExecutionEnvironment()->rootDeviceEnvironments[0]->getMutableHardwareInfo()->workaroundTable;
|
|
}
|
|
void TearDown() override {
|
|
PlatformFixture::TearDown();
|
|
HardwareParse::TearDown();
|
|
LinearStreamFixture::TearDown();
|
|
::testing::Test::TearDown();
|
|
}
|
|
|
|
WorkaroundTable *testWaTable;
|
|
};
|