mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Store KernelInfo per root device in Kernel
Related-To: NEO-5001 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
eb97c48844
commit
0d943e95c4
@@ -287,11 +287,14 @@ HWCMDTEST_F(IGFX_GEN8_CORE, DeviceQueueTest, WhenDeviceQueueIsCreatedThenDshBuff
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, DeviceQueueTest, WhenDispatchingSchedulerThenNoAssertsOccur) {
|
||||
DeviceQueue devQueue;
|
||||
MockContext context;
|
||||
MockProgram program(toClDeviceVector(*device));
|
||||
MockCommandQueue cmdQ(nullptr, nullptr, 0);
|
||||
KernelInfo info;
|
||||
MockSchedulerKernel *kernel = new MockSchedulerKernel(&program, info);
|
||||
KernelInfoContainer kernelInfos;
|
||||
auto rootDeviceIndex = device->getRootDeviceIndex();
|
||||
kernelInfos.resize(rootDeviceIndex + 1);
|
||||
kernelInfos[rootDeviceIndex] = &info;
|
||||
MockSchedulerKernel *kernel = new MockSchedulerKernel(&program, kernelInfos);
|
||||
LinearStream cmdStream;
|
||||
|
||||
devQueue.dispatchScheduler(cmdStream, *kernel, device->getPreemptionMode(), nullptr, nullptr, false);
|
||||
|
||||
Reference in New Issue
Block a user