Add new flag to disable L3 for stateful accesses.

- With this flag resource will not be cached in L3 for stateful accesses.

Change-Id: Icf9a393ab92d55c2cdf30444420ea40da0d5630c
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-08-30 08:18:34 +02:00
parent 08a3046e4d
commit 33f6c7f0da
13 changed files with 97 additions and 8 deletions

View File

@ -1204,8 +1204,8 @@ cl_int Kernel::setArgBuffer(uint32_t argIndex,
if (requiresSshForBuffers()) {
auto surfaceState = ptrOffset(getSurfaceStateHeap(), kernelArgInfo.offsetHeap);
buffer->setArgStateful(surfaceState, forceNonAuxMode, disableL3, isAuxTranslationKernel, kernelArgInfo.isReadOnly);
kernelArguments[argIndex].isUncacheable = buffer->isMemObjUncacheable();
}
kernelArguments[argIndex].isUncacheable = buffer->isMemObjUncacheable();
addAllocationToCacheFlushVector(argIndex, buffer->getGraphicsAllocation());
return CL_SUCCESS;
} else {