Remove forced DC flush and disabled out of order execution for shared objects

Change-Id: I0de86c3d5af488a347e83858f5dddbac2ef53c17
This commit is contained in:
Dunajski, Bartosz
2018-03-02 16:32:14 +01:00
committed by sys_ocldev
parent 533afe472a
commit 1fce275542
2 changed files with 6 additions and 6 deletions

View File

@@ -539,7 +539,7 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueNonBlocked(
DispatchFlags dispatchFlags;
dispatchFlags.blocking = blocking;
dispatchFlags.dcFlush = shouldFlushDC(commandType, printfHandler) || multiDispatchInfo.begin()->getKernel()->isUsingSharedObjArgs();
dispatchFlags.dcFlush = shouldFlushDC(commandType, printfHandler);
dispatchFlags.useSLM = slmUsed;
dispatchFlags.guardCommandBufferWithPipeControl = true;
dispatchFlags.GSBA32BitRequired = commandType == CL_COMMAND_NDRANGE_KERNEL;
@@ -549,7 +549,7 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueNonBlocked(
dispatchFlags.implicitFlush = implicitFlush;
dispatchFlags.flushStampReference = this->flushStamp->getStampReference();
dispatchFlags.preemptionMode = PreemptionHelper::taskPreemptionMode(*device, multiDispatchInfo);
dispatchFlags.outOfOrderExecutionAllowed = (!eventBuilder.getEvent() && !multiDispatchInfo.begin()->getKernel()->isUsingSharedObjArgs()) || this->isOOQEnabled();
dispatchFlags.outOfOrderExecutionAllowed = !eventBuilder.getEvent() || this->isOOQEnabled();
DEBUG_BREAK_IF(taskLevel >= Event::eventNotReady);