mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +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:
@@ -32,7 +32,7 @@ class MockCommandQueue : public CommandQueue {
|
||||
}
|
||||
MockCommandQueue() : CommandQueue(nullptr, nullptr, 0) {}
|
||||
MockCommandQueue(Context &context) : MockCommandQueue(&context, context.getDevice(0), nullptr) {}
|
||||
MockCommandQueue(Context *context, Device *device, const cl_queue_properties *props)
|
||||
MockCommandQueue(Context *context, ClDevice *device, const cl_queue_properties *props)
|
||||
: CommandQueue(context, device, props) {
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ class MockCommandQueueHw : public CommandQueueHw<GfxFamily> {
|
||||
using BaseClass::timestampPacketContainer;
|
||||
|
||||
MockCommandQueueHw(Context *context,
|
||||
Device *device,
|
||||
ClDevice *device,
|
||||
cl_queue_properties *properties) : BaseClass(context, device, properties) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user