2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2018-2021 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
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/helpers/preamble.h"
|
2021-01-21 20:10:13 +08:00
|
|
|
#include "shared/test/common/cmd_parse/hw_parse.h"
|
2021-10-13 22:10:39 +08:00
|
|
|
#include "shared/test/common/fixtures/device_fixture.h"
|
2021-10-15 00:53:11 +08:00
|
|
|
#include "shared/test/common/fixtures/linear_stream_fixture.h"
|
2020-02-24 17:22:30 +08:00
|
|
|
|
2020-12-01 23:11:55 +08:00
|
|
|
#include "test.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
using namespace NEO;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2021-10-13 22:10:39 +08:00
|
|
|
struct PreambleFixture : public DeviceFixture,
|
2017-12-21 07:45:38 +08:00
|
|
|
public LinearStreamFixture,
|
|
|
|
public HardwareParse,
|
|
|
|
public ::testing::Test {
|
|
|
|
void SetUp() override {
|
2021-10-13 22:10:39 +08:00
|
|
|
DeviceFixture::SetUp();
|
2017-12-21 07:45:38 +08:00
|
|
|
HardwareParse::SetUp();
|
|
|
|
}
|
|
|
|
|
|
|
|
void TearDown() override {
|
|
|
|
HardwareParse::TearDown();
|
2021-10-13 22:10:39 +08:00
|
|
|
DeviceFixture::TearDown();
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2021-10-13 22:10:39 +08:00
|
|
|
class PreambleVfeState : public DeviceFixture,
|
2017-12-21 07:45:38 +08:00
|
|
|
public ::testing::Test,
|
|
|
|
public LinearStreamFixture,
|
|
|
|
public HardwareParse {
|
|
|
|
public:
|
|
|
|
void SetUp() override {
|
|
|
|
::testing::Test::SetUp();
|
|
|
|
LinearStreamFixture::SetUp();
|
|
|
|
HardwareParse::SetUp();
|
2021-10-13 22:10:39 +08:00
|
|
|
DeviceFixture::SetUp();
|
|
|
|
testWaTable = &pDevice->getExecutionEnvironment()->rootDeviceEnvironments[0]->getMutableHardwareInfo()->workaroundTable;
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
void TearDown() override {
|
2021-10-13 22:10:39 +08:00
|
|
|
DeviceFixture::TearDown();
|
2017-12-21 07:45:38 +08:00
|
|
|
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
|
|
|
};
|