mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
refactor: fix typo Barrierl -> Barrier
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6fb905acb2
commit
5610eae710
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user