Add classes for sub devices concept

Related-To: NEO-3007

Change-Id: I27dd4b91e286ba1b75f4b50bec96d98df37983e1
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-08-27 09:34:20 +02:00
committed by sys_ocldev
parent 4503e04083
commit c7c6068d1f
7 changed files with 69 additions and 6 deletions

View File

@ -28,7 +28,7 @@ MockDevice::MockDevice()
}
MockDevice::MockDevice(ExecutionEnvironment *executionEnvironment, uint32_t deviceIndex)
: Device(executionEnvironment, deviceIndex) {
: RootDevice(executionEnvironment, deviceIndex) {
auto &hwInfo = getHardwareInfo();
bool enableLocalMemory = HwHelper::get(hwInfo.platform.eRenderCoreFamily).getEnableLocalMemory(hwInfo);
bool aubUsage = (testMode == TestMode::AubTests) || (testMode == TestMode::AubTestsWithTbx);

View File

@ -6,7 +6,7 @@
*/
#pragma once
#include "runtime/device/device.h"
#include "runtime/device/root_device.h"
#include "runtime/helpers/hw_helper.h"
#include "unit_tests/fixtures/mock_aub_center_fixture.h"
#include "unit_tests/libult/ult_command_stream_receiver.h"
@ -18,7 +18,7 @@ class FailMemoryManager;
extern CommandStreamReceiver *createCommandStream(ExecutionEnvironment &executionEnvironment);
class MockDevice : public Device {
class MockDevice : public RootDevice {
public:
using Device::createDeviceInternals;
using Device::createEngine;