Files
compute-runtime/unit_tests/helpers/dispatch_flags_helper.h
Mateusz Hoppe b6825933f8 Replace Event::eventNotReady with CompletionStamp::levelNotReady
- move some files to core
- remove unnecessary includes

Related-To: NEO-4175

Change-Id: Ib33dff644452c7cfd6fda7e9bb4b68cd6eb3a61c
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-01-23 16:16:23 +01:00

39 lines
1.6 KiB
C++

/*
* Copyright (C) 2019-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "core/command_stream/csr_definitions.h"
using namespace NEO;
struct DispatchFlagsHelper {
static DispatchFlags createDefaultDispatchFlags() {
return DispatchFlags(
{}, //csrDependencies
nullptr, //barrierTimestampPacketNodes
{}, //pipelineSelectArgs
nullptr, //flushStampReference
QueueThrottle::MEDIUM, //throttle
PreemptionMode::Disabled, //preemptionMode
GrfConfig::DefaultGrfNumber, //numGrfRequired
L3CachingSettings::l3CacheOn, //l3CacheSettings
ThreadArbitrationPolicy::NotPresent, //threadArbitrationPolicy
QueueSliceCount::defaultSliceCount, //sliceCount
false, //blocking
false, //dcFlush
false, //useSLM
false, //guardCommandBufferWithPipeControl
false, //gsba32BitRequired
false, //requiresCoherency
false, //lowPriority
false, //implicitFlush
false, //outOfOrderExecutionAllowed
false //epilogueRequired
);
}
};