mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Change-Id: Ib61e987388ba14b721a573e3e84332a7f6c9ef9c Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
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;
|
|
};
|