mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Add ClDevice
Decouple cl_device_id from Device class. Related-To: NEO-3938 Change-Id: I68543a753aea562f3b47ba0d23a059ff3cffa906 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation
|
||||
* Copyright (C) 2019-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -29,13 +29,13 @@ class ImageCompressionTests : public ::testing::Test {
|
||||
};
|
||||
|
||||
void SetUp() override {
|
||||
mockDevice.reset(MockDevice::createWithNewExecutionEnvironment<MockDevice>(*platformDevices));
|
||||
mockDevice = std::make_unique<MockClDevice>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(*platformDevices));
|
||||
myMemoryManager = new MyMemoryManager(*mockDevice->getExecutionEnvironment());
|
||||
mockDevice->injectMemoryManager(myMemoryManager);
|
||||
mockContext = make_releaseable<MockContext>(mockDevice.get());
|
||||
}
|
||||
|
||||
std::unique_ptr<MockDevice> mockDevice;
|
||||
std::unique_ptr<MockClDevice> mockDevice;
|
||||
ReleaseableObjectPtr<MockContext> mockContext;
|
||||
MyMemoryManager *myMemoryManager = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user