mirror of
https://github.com/intel/compute-runtime.git
synced 2025-06-28 17:58:30 +08:00

- address_patch.h - options.h - registered_method_dispatcher.h - grf_config.h Rename OCL_RUNTIME_PROFILING -> KMD_PROFILING Related-To: NEO-3982 Change-Id: I06cf72729e9d7d7d2ff0bd169fcbada00c4b509a Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "core/helpers/options.h"
|
|
#include "core/helpers/preamble.h"
|
|
#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"
|
|
|
|
using namespace NEO;
|
|
|
|
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();
|
|
PlatformFixture::SetUp();
|
|
testWaTable = &pPlatform->peekExecutionEnvironment()->getMutableHardwareInfo()->workaroundTable;
|
|
}
|
|
void TearDown() override {
|
|
PlatformFixture::TearDown();
|
|
HardwareParse::TearDown();
|
|
LinearStreamFixture::TearDown();
|
|
::testing::Test::TearDown();
|
|
}
|
|
|
|
WorkaroundTable *testWaTable;
|
|
};
|