Do implicit flush for blit enqueues

Change-Id: I872f39a0ea3410b09693b2018c0b86a9a127e5a2
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Related-To: NEO-3020
This commit is contained in:
Dunajski, Bartosz
2019-07-19 09:48:52 +02:00
parent b5cbbba234
commit cc617c0f78
3 changed files with 27 additions and 2 deletions

View File

@@ -348,6 +348,7 @@ class CommandQueueHw : public CommandQueue {
LinearStream &commandStream,
size_t commandStreamStart,
bool &blocking,
bool blitEnqueue,
TimestampPacketContainer *previousTimestampPacketNodes,
EventsRequest &eventsRequest,
EventBuilder &eventBuilder,

View File

@@ -312,6 +312,7 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
commandStream,
commandStreamStart,
blocking,
blitEnqueue,
&previousTimestampPacketNodes,
eventsRequest,
eventBuilder,
@@ -836,6 +837,7 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueCommandWithoutKernel(
LinearStream &commandStream,
size_t commandStreamStart,
bool &blocking,
bool blitEnqueue,
TimestampPacketContainer *previousTimestampPacketNodes,
EventsRequest &eventsRequest,
EventBuilder &eventBuilder,
@@ -856,6 +858,7 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueCommandWithoutKernel(
dispatchFlags.blocking = blocking;
dispatchFlags.multiEngineQueue = multiEngineQueue;
dispatchFlags.preemptionMode = device->getPreemptionMode();
dispatchFlags.implicitFlush = blitEnqueue;
if (getGpgpuCommandStreamReceiver().peekTimestampPacketWriteEnabled()) {
dispatchFlags.csrDependencies.fillFromEventsRequestAndMakeResident(eventsRequest, getGpgpuCommandStreamReceiver(), CsrDependencies::DependenciesType::OutOfCsr);
}