refactor: correct naming of enum class constants 1/n

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-12-05 12:06:54 +00:00
committed by Compute-Runtime-Automation
parent 1fcafd460a
commit da957d1a37
72 changed files with 458 additions and 457 deletions

View File

@@ -2710,7 +2710,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendWriteGlobalTimestamp(
NEO::MemorySynchronizationCommands<GfxFamily>::addBarrierWithPostSyncOperation(
*commandContainer.getCommandStream(),
NEO::PostSyncMode::Timestamp,
NEO::PostSyncMode::timestamp,
allocationStruct.alignedAllocationPtr,
0,
this->device->getNEODevice()->getRootDeviceEnvironment(),
@@ -3441,7 +3441,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendWriteToMemory(void *desc
NEO::MemorySynchronizationCommands<GfxFamily>::addBarrierWithPostSyncOperation(
*commandContainer.getCommandStream(),
NEO::PostSyncMode::ImmediateData,
NEO::PostSyncMode::immediateData,
gpuAddress,
data,
device->getNEODevice()->getRootDeviceEnvironment(),
@@ -3563,7 +3563,7 @@ void CommandListCoreFamily<gfxCoreFamily>::dispatchPostSyncCommands(const CmdLis
NEO::MemorySynchronizationCommands<GfxFamily>::addBarrierWithPostSyncOperation(
*commandContainer.getCommandStream(),
NEO::PostSyncMode::ImmediateData,
NEO::PostSyncMode::immediateData,
gpuAddress,
value,
device->getNEODevice()->getRootDeviceEnvironment(),

View File

@@ -69,7 +69,7 @@ void programEventL3Flush(Event *event,
NEO::MemorySynchronizationCommands<GfxFamily>::addBarrierWithPostSyncOperation(
cmdListStream,
NEO::PostSyncMode::ImmediateData,
NEO::PostSyncMode::immediateData,
eventAddress,
Event::STATE_SIGNALED,
commandContainer.getDevice()->getRootDeviceEnvironment(),
@@ -427,7 +427,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendComputeBarrierCommand() {
appendMultiTileBarrier(*neoDevice);
} else {
NEO::PipeControlArgs args = createBarrierFlags();
NEO::PostSyncMode postSyncMode = NEO::PostSyncMode::NoWrite;
NEO::PostSyncMode postSyncMode = NEO::PostSyncMode::noWrite;
uint64_t gpuWriteAddress = 0;
uint64_t writeValue = 0;

View File

@@ -1114,7 +1114,7 @@ void CommandQueueHw<gfxCoreFamily>::dispatchTaskCountPostSyncRegular(
args.notifyEnable = this->csr->isUsedNotifyEnableForPostSync();
NEO::MemorySynchronizationCommands<GfxFamily>::addBarrierWithPostSyncOperation(
cmdStream,
NEO::PostSyncMode::ImmediateData,
NEO::PostSyncMode::immediateData,
postSyncAddress,
postSyncData,
device->getNEODevice()->getRootDeviceEnvironment(),

View File

@@ -168,7 +168,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
auto command = reinterpret_cast<void *>(commandToPatch.pCommand);
NEO::MemorySynchronizationCommands<GfxFamily>::setBarrierWithPostSyncOperation(
command,
NEO::PostSyncMode::ImmediateData,
NEO::PostSyncMode::immediateData,
csr->getDebugPauseStateGPUAddress(),
static_cast<uint64_t>(NEO::DebugPauseState::waitingForUserStartConfirmation),
device->getNEODevice()->getRootDeviceEnvironment(),
@@ -183,7 +183,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
auto command = reinterpret_cast<void *>(commandToPatch.pCommand);
NEO::MemorySynchronizationCommands<GfxFamily>::setBarrierWithPostSyncOperation(
command,
NEO::PostSyncMode::ImmediateData,
NEO::PostSyncMode::immediateData,
csr->getDebugPauseStateGPUAddress(),
static_cast<uint64_t>(NEO::DebugPauseState::waitingForUserEndConfirmation),
device->getNEODevice()->getRootDeviceEnvironment(),

View File

@@ -207,7 +207,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
auto command = reinterpret_cast<void *>(commandToPatch.pCommand);
NEO::MemorySynchronizationCommands<GfxFamily>::setBarrierWithPostSyncOperation(
command,
NEO::PostSyncMode::ImmediateData,
NEO::PostSyncMode::immediateData,
csr->getDebugPauseStateGPUAddress(),
static_cast<uint64_t>(NEO::DebugPauseState::waitingForUserStartConfirmation),
device->getNEODevice()->getRootDeviceEnvironment(),
@@ -222,7 +222,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
auto command = reinterpret_cast<void *>(commandToPatch.pCommand);
NEO::MemorySynchronizationCommands<GfxFamily>::setBarrierWithPostSyncOperation(
command,
NEO::PostSyncMode::ImmediateData,
NEO::PostSyncMode::immediateData,
csr->getDebugPauseStateGPUAddress(),
static_cast<uint64_t>(NEO::DebugPauseState::waitingForUserEndConfirmation),
device->getNEODevice()->getRootDeviceEnvironment(),

View File

@@ -884,18 +884,18 @@ ze_result_t ContextImp::setAtomicAccessAttribute(ze_device_handle_t hDevice, con
deviceImp->getMemoryAccessProperties(&memProp);
NEO::AtomicAccessMode mode = NEO::AtomicAccessMode::None;
NEO::AtomicAccessMode mode = NEO::AtomicAccessMode::none;
if (attrEval & ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_DEVICE_ATOMICS) {
if (!(memProp.deviceAllocCapabilities & ZE_MEMORY_ACCESS_CAP_FLAG_ATOMIC)) {
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
}
mode = NEO::AtomicAccessMode::Device;
mode = NEO::AtomicAccessMode::device;
}
if (attrEval & ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_HOST_ATOMICS) {
if (!(memProp.hostAllocCapabilities & ZE_MEMORY_ACCESS_CAP_FLAG_ATOMIC)) {
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
}
mode = NEO::AtomicAccessMode::Host;
mode = NEO::AtomicAccessMode::host;
}
if (attrEval & ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_SYSTEM_ATOMICS) {
@@ -903,7 +903,7 @@ ze_result_t ContextImp::setAtomicAccessAttribute(ze_device_handle_t hDevice, con
(!(memProp.sharedCrossDeviceAllocCapabilities & ZE_MEMORY_ACCESS_CAP_FLAG_CONCURRENT_ATOMIC))) {
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
}
mode = NEO::AtomicAccessMode::System;
mode = NEO::AtomicAccessMode::system;
}
auto alloc = allocData->gpuAllocations.getGraphicsAllocation(deviceImp->getRootDeviceIndex());

View File

@@ -59,7 +59,7 @@ const char *ApiSpecificConfig::getRegistryPath() {
void ApiSpecificConfig::initPrefixes() {
validL0Prefixes = {"NEO_L0_", "NEO_", ""};
validL0PrefixTypes = {DebugVarPrefix::Neo_L0, DebugVarPrefix::Neo, DebugVarPrefix::None};
validL0PrefixTypes = {DebugVarPrefix::neoL0, DebugVarPrefix::neo, DebugVarPrefix::none};
}
const StackVec<const char *, 4> &ApiSpecificConfig::getPrefixStrings() {

View File

@@ -15,7 +15,8 @@
namespace L0 {
constexpr auto I915_SAMPLE_BUSY = NEO::I915::drm_i915_pmu_engine_sample::I915_SAMPLE_BUSY;
constexpr auto I915_SAMPLE_BUSY = NEO::I915::drm_i915_pmu_engine_sample::I915_SAMPLE_BUSY; // NOLINT(readability-identifier-naming)
static const std::multimap<__u16, zes_engine_group_t> i915ToEngineMap = {
{static_cast<__u16>(drm_i915_gem_engine_class::I915_ENGINE_CLASS_RENDER), ZES_ENGINE_GROUP_RENDER_SINGLE},
{static_cast<__u16>(drm_i915_gem_engine_class::I915_ENGINE_CLASS_VIDEO), ZES_ENGINE_GROUP_MEDIA_DECODE_SINGLE},