mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Rename function
Rename MemorySynchronizationCommands::isDcFlushAllowed to MemorySynchronizationCommands::getDcFlushEnable Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
187120f44e
commit
5be4d89b73
@@ -459,7 +459,7 @@ struct MemorySynchronizationCommands {
|
||||
|
||||
static void addPipeControlWithCSStallOnly(LinearStream &commandStream);
|
||||
|
||||
static bool isDcFlushAllowed(bool isFlushPreferred, const HardwareInfo &hwInfo);
|
||||
static bool getDcFlushEnable(bool isFlushPreferred, const HardwareInfo &hwInfo);
|
||||
|
||||
static void addFullCacheFlush(LinearStream &commandStream, const HardwareInfo &hwInfo);
|
||||
static void setCacheFlushExtraProperties(PipeControlArgs &args);
|
||||
|
||||
@@ -344,7 +344,7 @@ void MemorySynchronizationCommands<GfxFamily>::setPipeControl(typename GfxFamily
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
bool MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed(bool isFlushPreferred, const HardwareInfo &hwInfo) {
|
||||
bool MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable(bool isFlushPreferred, const HardwareInfo &hwInfo) {
|
||||
if (isFlushPreferred) {
|
||||
const auto &hwInfoConfig = *NEO::HwInfoConfig::get(hwInfo.platform.eProductFamily);
|
||||
return hwInfoConfig.isDcFlushAllowed();
|
||||
@@ -553,7 +553,7 @@ void MemorySynchronizationCommands<GfxFamily>::addFullCacheFlush(LinearStream &c
|
||||
PIPE_CONTROL cmd = GfxFamily::cmdInitPipeControl;
|
||||
|
||||
PipeControlArgs args;
|
||||
args.dcFlushEnable = MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed(true, hwInfo);
|
||||
args.dcFlushEnable = MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable(true, hwInfo);
|
||||
args.renderTargetCacheFlushEnable = true;
|
||||
args.instructionCacheInvalidateEnable = true;
|
||||
args.textureCacheInvalidationEnable = true;
|
||||
|
||||
@@ -173,7 +173,7 @@ struct TimestampPacketHelper {
|
||||
auto cacheFlushTimestampPacketGpuAddress = getContextEndGpuAddress(*timestampPacketDependencies->cacheFlushNodes.peekNodes()[0]);
|
||||
|
||||
PipeControlArgs args;
|
||||
args.dcFlushEnable = MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed(true, hwInfo);
|
||||
args.dcFlushEnable = MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable(true, hwInfo);
|
||||
MemorySynchronizationCommands<GfxFamily>::addPipeControlAndProgramPostSyncOperation(
|
||||
cmdStream, GfxFamily::PIPE_CONTROL::POST_SYNC_OPERATION::POST_SYNC_OPERATION_WRITE_IMMEDIATE_DATA,
|
||||
cacheFlushTimestampPacketGpuAddress, 0, hwInfo, args);
|
||||
|
||||
Reference in New Issue
Block a user