mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> - Added HwInfoConfig getter in RootDeviceEnvironment, which temporarily takes HwInfoConfig from the global array - use HwInfoConfig from RootDeviceEnvironment to call ConfigureHardwareCustom function - Added getHwInfoConfig in DeviceFixture - ConfigureHardwareCustom function and few others changed to const - Small code cleanup
29 lines
672 B
C++
29 lines
672 B
C++
/*
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/test/common/mocks/mock_device.h"
|
|
|
|
namespace NEO {
|
|
struct HardwareInfo;
|
|
|
|
struct DeviceFixture {
|
|
void setUp();
|
|
void setUpImpl(const NEO::HardwareInfo *hardwareInfo);
|
|
void tearDown();
|
|
|
|
MockDevice *createWithUsDeviceIdRevId(unsigned short usDeviceId, unsigned short usRevId);
|
|
|
|
MockDevice *pDevice = nullptr;
|
|
volatile uint32_t *pTagMemory = nullptr;
|
|
HardwareInfo hardwareInfo = {};
|
|
PLATFORM platformHelper = {};
|
|
const uint32_t rootDeviceIndex = 0u;
|
|
const HwInfoConfig &getHwInfoConfig() const;
|
|
};
|
|
} // namespace NEO
|