refactor: fix typo Barrierl -> Barrier

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-03-21 15:08:01 +00:00
committed by Compute-Runtime-Automation
parent 6fb905acb2
commit 5610eae710
8 changed files with 9 additions and 9 deletions

View File

@@ -1123,7 +1123,7 @@ HWTEST2_F(CommandStreamReceiverFlushTaskTests, givenSpecialPipelineSelectModeCha
size_t size = commandStreamReceiver.getCmdSizeForPipelineSelect(); size_t size = commandStreamReceiver.getCmdSizeForPipelineSelect();
size_t expectedSize = sizeof(PIPELINE_SELECT); size_t expectedSize = sizeof(PIPELINE_SELECT);
if (MemorySynchronizationCommands<FamilyType>::isBarrierlPriorToPipelineSelectWaRequired(pDevice->getRootDeviceEnvironment())) { if (MemorySynchronizationCommands<FamilyType>::isBarrierPriorToPipelineSelectWaRequired(pDevice->getRootDeviceEnvironment())) {
expectedSize += sizeof(PIPE_CONTROL); expectedSize += sizeof(PIPE_CONTROL);
} }
EXPECT_EQ(expectedSize, size); EXPECT_EQ(expectedSize, size);
@@ -1151,7 +1151,7 @@ HWTEST2_F(CommandStreamReceiverFlushTaskTests, givenCsrWhenPreambleSentThenRequi
auto difference = mediaSamplerConfigChangedSize - mediaSamplerConfigNotChangedSize; auto difference = mediaSamplerConfigChangedSize - mediaSamplerConfigNotChangedSize;
size_t expectedDifference = sizeof(PIPELINE_SELECT); size_t expectedDifference = sizeof(PIPELINE_SELECT);
if (MemorySynchronizationCommands<FamilyType>::isBarrierlPriorToPipelineSelectWaRequired(pDevice->getRootDeviceEnvironment())) { if (MemorySynchronizationCommands<FamilyType>::isBarrierPriorToPipelineSelectWaRequired(pDevice->getRootDeviceEnvironment())) {
expectedDifference += sizeof(PIPE_CONTROL); expectedDifference += sizeof(PIPE_CONTROL);
} }

View File

@@ -184,7 +184,7 @@ bool MemorySynchronizationCommands<Family>::isBarrierWaRequired(const RootDevice
} }
template <> template <>
bool MemorySynchronizationCommands<Family>::isBarrierlPriorToPipelineSelectWaRequired(const RootDeviceEnvironment &rootDeviceEnvironment) { bool MemorySynchronizationCommands<Family>::isBarrierPriorToPipelineSelectWaRequired(const RootDeviceEnvironment &rootDeviceEnvironment) {
return MemorySynchronizationCommands<Family>::isBarrierWaRequired(rootDeviceEnvironment); return MemorySynchronizationCommands<Family>::isBarrierWaRequired(rootDeviceEnvironment);
} }

View File

@@ -38,7 +38,7 @@ void PreambleHelper<Family>::programPipelineSelect(LinearStream *pCommandStream,
using PIPELINE_SELECT = typename Family::PIPELINE_SELECT; using PIPELINE_SELECT = typename Family::PIPELINE_SELECT;
if (MemorySynchronizationCommands<Family>::isBarrierlPriorToPipelineSelectWaRequired(rootDeviceEnvironment)) { if (MemorySynchronizationCommands<Family>::isBarrierPriorToPipelineSelectWaRequired(rootDeviceEnvironment)) {
PipeControlArgs args; PipeControlArgs args;
args.renderTargetCacheFlushEnable = true; args.renderTargetCacheFlushEnable = true;
MemorySynchronizationCommands<Family>::addSingleBarrier(*pCommandStream, args); MemorySynchronizationCommands<Family>::addSingleBarrier(*pCommandStream, args);

View File

@@ -442,7 +442,7 @@ struct MemorySynchronizationCommands {
static size_t getSizeForFullCacheFlush(); static size_t getSizeForFullCacheFlush();
static bool isBarrierWaRequired(const RootDeviceEnvironment &rootDeviceEnvironment); static bool isBarrierWaRequired(const RootDeviceEnvironment &rootDeviceEnvironment);
static bool isBarrierlPriorToPipelineSelectWaRequired(const RootDeviceEnvironment &rootDeviceEnvironment); static bool isBarrierPriorToPipelineSelectWaRequired(const RootDeviceEnvironment &rootDeviceEnvironment);
static void setBarrierExtraProperties(void *barrierCmd, PipeControlArgs &args); static void setBarrierExtraProperties(void *barrierCmd, PipeControlArgs &args);
}; };

View File

@@ -548,7 +548,7 @@ bool GfxCoreHelperHw<GfxFamily>::useSystemMemoryPlacementForISA(const HardwareIn
} }
template <typename GfxFamily> template <typename GfxFamily>
bool MemorySynchronizationCommands<GfxFamily>::isBarrierlPriorToPipelineSelectWaRequired(const RootDeviceEnvironment &rootDeviceEnvironment) { bool MemorySynchronizationCommands<GfxFamily>::isBarrierPriorToPipelineSelectWaRequired(const RootDeviceEnvironment &rootDeviceEnvironment) {
return false; return false;
} }

View File

@@ -58,7 +58,7 @@ size_t PreambleHelper<GfxFamily>::getCmdSizeForPipelineSelect(const RootDeviceEn
size_t size = 0; size_t size = 0;
using PIPELINE_SELECT = typename GfxFamily::PIPELINE_SELECT; using PIPELINE_SELECT = typename GfxFamily::PIPELINE_SELECT;
size += sizeof(PIPELINE_SELECT); size += sizeof(PIPELINE_SELECT);
if (MemorySynchronizationCommands<GfxFamily>::isBarrierlPriorToPipelineSelectWaRequired(rootDeviceEnvironment)) { if (MemorySynchronizationCommands<GfxFamily>::isBarrierPriorToPipelineSelectWaRequired(rootDeviceEnvironment)) {
size += sizeof(PIPE_CONTROL); size += sizeof(PIPE_CONTROL);
} }
return size; return size;

View File

@@ -242,7 +242,7 @@ GEN12LPTEST_F(Gen12LpCoherencyRequirements, givenCoherencyRequirementWithoutShar
}; };
flushTask(false); flushTask(false);
if (MemorySynchronizationCommands<FamilyType>::isBarrierlPriorToPipelineSelectWaRequired(device->getRootDeviceEnvironment())) { if (MemorySynchronizationCommands<FamilyType>::isBarrierPriorToPipelineSelectWaRequired(device->getRootDeviceEnvironment())) {
findCmd(true, false, true); // first time findCmd(true, false, true); // first time
} else { } else {
findCmd(true, false, false); // first time findCmd(true, false, false); // first time

View File

@@ -164,7 +164,7 @@ GEN12LPTEST_F(CommandEncodeStatesTest, givenGen12LpPlatformWhenAdjustPipelineSel
using PIPELINE_SELECT = typename FamilyType::PIPELINE_SELECT; using PIPELINE_SELECT = typename FamilyType::PIPELINE_SELECT;
size_t barrierSize = 0; size_t barrierSize = 0;
if (MemorySynchronizationCommands<FamilyType>::isBarrierlPriorToPipelineSelectWaRequired(pDevice->getRootDeviceEnvironment())) { if (MemorySynchronizationCommands<FamilyType>::isBarrierPriorToPipelineSelectWaRequired(pDevice->getRootDeviceEnvironment())) {
barrierSize = MemorySynchronizationCommands<FamilyType>::getSizeForSingleBarrier(false); barrierSize = MemorySynchronizationCommands<FamilyType>::getSizeForSingleBarrier(false);
} }