mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Optimize setKernelArgSVMPointer
If same pointer is already set, we don't need to set it again. Related-To: NEO-6737 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
22ed1be1a3
commit
b9d8d8c0fd
@ -273,7 +273,8 @@ TEST_F(BufferSetArgTest, GivenSvmPointerWhenSettingKernelArgThenAddressToPatchIs
|
||||
retVal = pKernel->setArgSvmAlloc(
|
||||
0,
|
||||
ptrSVM,
|
||||
pSvmAlloc);
|
||||
pSvmAlloc,
|
||||
0u);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
auto pKernelArg = (void **)(pKernel->getCrossThreadData() +
|
||||
|
Reference in New Issue
Block a user