mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Update getKernelInfo method
add root device index parameter to return proper kernel info Related-To: NEO-5001 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
864f069b8f
commit
c8d1e082dd
@ -1367,7 +1367,7 @@ HWTEST_F(PatchTokenTests, givenKernelRequiringConstantAllocationWhenMakeResident
|
||||
auto &residencyVector = pCommandStreamReceiver->getResidencyAllocations();
|
||||
|
||||
//we expect kernel ISA here and constant allocation
|
||||
auto kernelIsa = pKernel->getKernelInfo().getGraphicsAllocation();
|
||||
auto kernelIsa = pKernel->getKernelInfo(rootDeviceIndex).getGraphicsAllocation();
|
||||
auto constantAllocation = pProgram->getConstantSurface(pDevice->getRootDeviceIndex());
|
||||
|
||||
auto element = std::find(residencyVector.begin(), residencyVector.end(), kernelIsa);
|
||||
|
Reference in New Issue
Block a user