Disable NonAux to Aux translation for Parent Kernel

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Change-Id: I863608fe3652e7e777a1e841d79b5b56e7362a3f
This commit is contained in:
Dunajski, Bartosz
2018-08-20 15:17:48 +02:00
committed by sys_ocldev
parent e84ea0ffa0
commit 931b462ee1
5 changed files with 66 additions and 2 deletions

View File

@@ -106,7 +106,13 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface *(&surfaces)[surfaceCount
}
}
if (kernel->isAuxTranslationRequired()) {
dispatchAuxTranslation(multiDispatchInfo, buffersForAuxTranslation, AuxTranslationDirection::NonAuxToAux);
if (kernel->isParentKernel) {
for (auto &buffer : buffersForAuxTranslation) {
buffer->getGraphicsAllocation()->setAllocationType(GraphicsAllocation::AllocationType::BUFFER);
}
} else {
dispatchAuxTranslation(multiDispatchInfo, buffersForAuxTranslation, AuxTranslationDirection::NonAuxToAux);
}
}
}