mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
Simplify Context method
return if context has multiple sub devices related to a given root device Related-To: NEO-3691 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
21e89b121a
commit
8215395401
@@ -372,7 +372,7 @@ class MockKernelWithInternals {
|
||||
populateKernelDescriptor(kernelInfo.kernelDescriptor, mediaVfeStateSlot1, 1);
|
||||
|
||||
if (context == nullptr) {
|
||||
mockContext = new MockContext;
|
||||
mockContext = new MockContext(deviceVector);
|
||||
context = mockContext;
|
||||
} else {
|
||||
context->incRefInternal();
|
||||
|
||||
Reference in New Issue
Block a user