Pass proper dispatch flags.

- add new policy to select L1 caching
- this is when kernel doesn't have any stateless writes

Change-Id: I3948e652797420976159bbfec2c2a154eb9e18ee
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-08-26 17:03:13 +02:00
committed by sys_ocldev
parent ea095418ad
commit cb4e5576cb
6 changed files with 40 additions and 0 deletions

View File

@ -688,6 +688,8 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueNonBlocked(
if (anyUncacheableArgs) {
dispatchFlags.l3CacheSettings = L3CachingSettings::l3CacheOff;
} else if (!kernel->areStatelessWritesUsed()) {
dispatchFlags.l3CacheSettings = L3CachingSettings::l3AndL1On;
}
if (gtpinIsGTPinInitialized()) {