2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-02-27 18:39:32 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2019-12-09 22:29:30 +08:00
|
|
|
#include "core/helpers/options.h"
|
2019-10-03 16:17:22 +08:00
|
|
|
#include "core/helpers/preamble.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "unit_tests/command_stream/linear_stream_fixture.h"
|
|
|
|
#include "unit_tests/fixtures/device_fixture.h"
|
|
|
|
#include "unit_tests/fixtures/platform_fixture.h"
|
|
|
|
#include "unit_tests/helpers/hw_parse.h"
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
using namespace NEO;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
struct PreambleFixture : public DeviceFixture,
|
|
|
|
public LinearStreamFixture,
|
|
|
|
public HardwareParse,
|
|
|
|
public ::testing::Test {
|
|
|
|
void SetUp() override {
|
|
|
|
DeviceFixture::SetUp();
|
|
|
|
HardwareParse::SetUp();
|
|
|
|
}
|
|
|
|
|
|
|
|
void TearDown() override {
|
|
|
|
HardwareParse::TearDown();
|
|
|
|
DeviceFixture::TearDown();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
class PreambleVfeState : public PlatformFixture,
|
|
|
|
public ::testing::Test,
|
|
|
|
public LinearStreamFixture,
|
|
|
|
public HardwareParse {
|
|
|
|
public:
|
|
|
|
void SetUp() override {
|
|
|
|
::testing::Test::SetUp();
|
|
|
|
LinearStreamFixture::SetUp();
|
|
|
|
HardwareParse::SetUp();
|
2018-06-26 16:51:01 +08:00
|
|
|
PlatformFixture::SetUp();
|
2019-05-08 22:00:24 +08:00
|
|
|
testWaTable = &pPlatform->peekExecutionEnvironment()->getMutableHardwareInfo()->workaroundTable;
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
void TearDown() override {
|
|
|
|
PlatformFixture::TearDown();
|
|
|
|
HardwareParse::TearDown();
|
|
|
|
LinearStreamFixture::TearDown();
|
|
|
|
::testing::Test::TearDown();
|
|
|
|
}
|
|
|
|
|
2019-05-06 18:33:44 +08:00
|
|
|
WorkaroundTable *testWaTable;
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|