mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
refactor: correct naming of enum class constants n/n
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f5045348ad
commit
bf60d77e10
@@ -35,13 +35,11 @@ extern const char legacyPlatformName[];
|
||||
struct RuntimeCapabilityTable;
|
||||
|
||||
enum class AILEnumeration : uint32_t {
|
||||
DISABLE_BLITTER,
|
||||
DISABLE_COMPRESSION,
|
||||
ENABLE_FP64,
|
||||
DISABLE_HOST_PTR_TRACKING,
|
||||
ENABLE_LEGACY_PLATFORM_NAME,
|
||||
DISABLE_DIRECT_SUBMISSION,
|
||||
AIL_MAX_OPTIONS_COUNT
|
||||
disableCompression,
|
||||
enableFp64,
|
||||
disableHostPtrTracking,
|
||||
enableLegacyPlatformName,
|
||||
disableDirectSubmission,
|
||||
};
|
||||
|
||||
class AILConfiguration;
|
||||
|
||||
@@ -20,11 +20,11 @@ namespace NEO {
|
||||
*
|
||||
*/
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMap = {{"blender", {AILEnumeration::ENABLE_FP64}},
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMap = {{"blender", {AILEnumeration::enableFp64}},
|
||||
// Modify reported platform name to ensure older versions of Adobe Premiere Pro are able to recognize the GPU device
|
||||
{"Adobe Premiere Pro", {AILEnumeration::ENABLE_LEGACY_PLATFORM_NAME}}};
|
||||
{"Adobe Premiere Pro", {AILEnumeration::enableLegacyPlatformName}}};
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapMTL = {{"svchost", {AILEnumeration::DISABLE_DIRECT_SUBMISSION}}};
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapMTL = {{"svchost", {AILEnumeration::disableDirectSubmission}}};
|
||||
|
||||
const std::set<std::string_view> applicationsContextSyncFlag = {};
|
||||
|
||||
@@ -36,10 +36,10 @@ void AILConfiguration::apply(RuntimeCapabilityTable &runtimeCapabilityTable) {
|
||||
if (search != applicationMap.end()) {
|
||||
for (size_t i = 0; i < search->second.size(); ++i) {
|
||||
switch (search->second[i]) {
|
||||
case AILEnumeration::ENABLE_FP64:
|
||||
case AILEnumeration::enableFp64:
|
||||
runtimeCapabilityTable.ftrSupportsFP64 = true;
|
||||
break;
|
||||
case AILEnumeration::ENABLE_LEGACY_PLATFORM_NAME:
|
||||
case AILEnumeration::enableLegacyPlatformName:
|
||||
runtimeCapabilityTable.preferredPlatformName = legacyPlatformName;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -15,7 +15,7 @@ namespace NEO {
|
||||
static EnableAIL<IGFX_ELKHARTLAKE> enableAILEHL;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapEHL = {
|
||||
{"resolve", {AILEnumeration::DISABLE_HOST_PTR_TRACKING}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
{"resolve", {AILEnumeration::disableHostPtrTracking}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
};
|
||||
|
||||
template <>
|
||||
@@ -24,7 +24,7 @@ inline void AILConfigurationHw<IGFX_ELKHARTLAKE>::applyExt(RuntimeCapabilityTabl
|
||||
if (search != applicationMapEHL.end()) {
|
||||
for (size_t i = 0; i < search->second.size(); ++i) {
|
||||
switch (search->second[i]) {
|
||||
case AILEnumeration::DISABLE_HOST_PTR_TRACKING:
|
||||
case AILEnumeration::disableHostPtrTracking:
|
||||
runtimeCapabilityTable.hostPtrTrackingEnabled = false;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace NEO {
|
||||
static EnableAIL<IGFX_ICELAKE_LP> enableAILICLLP;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapICLLP = {
|
||||
{"resolve", {AILEnumeration::DISABLE_HOST_PTR_TRACKING}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
{"resolve", {AILEnumeration::disableHostPtrTracking}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
};
|
||||
|
||||
template <>
|
||||
@@ -24,7 +24,7 @@ inline void AILConfigurationHw<IGFX_ICELAKE_LP>::applyExt(RuntimeCapabilityTable
|
||||
if (search != applicationMapICLLP.end()) {
|
||||
for (size_t i = 0; i < search->second.size(); ++i) {
|
||||
switch (search->second[i]) {
|
||||
case AILEnumeration::DISABLE_HOST_PTR_TRACKING:
|
||||
case AILEnumeration::disableHostPtrTracking:
|
||||
runtimeCapabilityTable.hostPtrTrackingEnabled = false;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -15,7 +15,7 @@ namespace NEO {
|
||||
static EnableAIL<IGFX_LAKEFIELD> enableAILLKF;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapLKF = {
|
||||
{"resolve", {AILEnumeration::DISABLE_HOST_PTR_TRACKING}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
{"resolve", {AILEnumeration::disableHostPtrTracking}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
};
|
||||
|
||||
template <>
|
||||
@@ -24,7 +24,7 @@ inline void AILConfigurationHw<IGFX_LAKEFIELD>::applyExt(RuntimeCapabilityTable
|
||||
if (search != applicationMapLKF.end()) {
|
||||
for (size_t i = 0; i < search->second.size(); ++i) {
|
||||
switch (search->second[i]) {
|
||||
case AILEnumeration::DISABLE_HOST_PTR_TRACKING:
|
||||
case AILEnumeration::disableHostPtrTracking:
|
||||
runtimeCapabilityTable.hostPtrTrackingEnabled = false;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -15,7 +15,7 @@ namespace NEO {
|
||||
static EnableAIL<IGFX_BROXTON> enableAILBXT;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapBXT = {
|
||||
{"resolve", {AILEnumeration::DISABLE_HOST_PTR_TRACKING}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
{"resolve", {AILEnumeration::disableHostPtrTracking}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
};
|
||||
|
||||
template <>
|
||||
@@ -24,7 +24,7 @@ inline void AILConfigurationHw<IGFX_BROXTON>::applyExt(RuntimeCapabilityTable &r
|
||||
if (search != applicationMapBXT.end()) {
|
||||
for (size_t i = 0; i < search->second.size(); ++i) {
|
||||
switch (search->second[i]) {
|
||||
case AILEnumeration::DISABLE_HOST_PTR_TRACKING:
|
||||
case AILEnumeration::disableHostPtrTracking:
|
||||
runtimeCapabilityTable.hostPtrTrackingEnabled = false;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -15,7 +15,7 @@ namespace NEO {
|
||||
static EnableAIL<IGFX_COFFEELAKE> enableAILCFL;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapCFL = {
|
||||
{"resolve", {AILEnumeration::DISABLE_HOST_PTR_TRACKING}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
{"resolve", {AILEnumeration::disableHostPtrTracking}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
};
|
||||
|
||||
template <>
|
||||
@@ -24,7 +24,7 @@ inline void AILConfigurationHw<IGFX_COFFEELAKE>::applyExt(RuntimeCapabilityTable
|
||||
if (search != applicationMapCFL.end()) {
|
||||
for (size_t i = 0; i < search->second.size(); ++i) {
|
||||
switch (search->second[i]) {
|
||||
case AILEnumeration::DISABLE_HOST_PTR_TRACKING:
|
||||
case AILEnumeration::disableHostPtrTracking:
|
||||
runtimeCapabilityTable.hostPtrTrackingEnabled = false;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -15,7 +15,7 @@ namespace NEO {
|
||||
static EnableAIL<IGFX_GEMINILAKE> enableAILGLK;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapGLK = {
|
||||
{"resolve", {AILEnumeration::DISABLE_HOST_PTR_TRACKING}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
{"resolve", {AILEnumeration::disableHostPtrTracking}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
};
|
||||
|
||||
template <>
|
||||
@@ -24,7 +24,7 @@ inline void AILConfigurationHw<IGFX_GEMINILAKE>::applyExt(RuntimeCapabilityTable
|
||||
if (search != applicationMapGLK.end()) {
|
||||
for (size_t i = 0; i < search->second.size(); ++i) {
|
||||
switch (search->second[i]) {
|
||||
case AILEnumeration::DISABLE_HOST_PTR_TRACKING:
|
||||
case AILEnumeration::disableHostPtrTracking:
|
||||
runtimeCapabilityTable.hostPtrTrackingEnabled = false;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -15,7 +15,7 @@ namespace NEO {
|
||||
static EnableAIL<IGFX_KABYLAKE> enableAILKBL;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapKBL = {
|
||||
{"resolve", {AILEnumeration::DISABLE_HOST_PTR_TRACKING}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
{"resolve", {AILEnumeration::disableHostPtrTracking}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
};
|
||||
|
||||
template <>
|
||||
@@ -24,7 +24,7 @@ inline void AILConfigurationHw<IGFX_KABYLAKE>::applyExt(RuntimeCapabilityTable &
|
||||
if (search != applicationMapKBL.end()) {
|
||||
for (size_t i = 0; i < search->second.size(); ++i) {
|
||||
switch (search->second[i]) {
|
||||
case AILEnumeration::DISABLE_HOST_PTR_TRACKING:
|
||||
case AILEnumeration::disableHostPtrTracking:
|
||||
runtimeCapabilityTable.hostPtrTrackingEnabled = false;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -15,7 +15,7 @@ namespace NEO {
|
||||
static EnableAIL<IGFX_SKYLAKE> enableAILSKL;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapSKL = {
|
||||
{"resolve", {AILEnumeration::DISABLE_HOST_PTR_TRACKING}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
{"resolve", {AILEnumeration::disableHostPtrTracking}} // Disable hostPtrTracking for DaVinci Resolve
|
||||
};
|
||||
|
||||
template <>
|
||||
@@ -24,7 +24,7 @@ inline void AILConfigurationHw<IGFX_SKYLAKE>::applyExt(RuntimeCapabilityTable &r
|
||||
if (search != applicationMapSKL.end()) {
|
||||
for (size_t i = 0; i < search->second.size(); ++i) {
|
||||
switch (search->second[i]) {
|
||||
case AILEnumeration::DISABLE_HOST_PTR_TRACKING:
|
||||
case AILEnumeration::disableHostPtrTracking:
|
||||
runtimeCapabilityTable.hostPtrTrackingEnabled = false;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -29,7 +29,7 @@ void AILConfigurationHw<IGFX_METEORLAKE>::applyExt(RuntimeCapabilityTable &runti
|
||||
if (search != applicationMapMTL.end()) {
|
||||
for (size_t i = 0; i < search->second.size(); ++i) {
|
||||
switch (search->second[i]) {
|
||||
case AILEnumeration::DISABLE_DIRECT_SUBMISSION:
|
||||
case AILEnumeration::disableDirectSubmission:
|
||||
runtimeCapabilityTable.directSubmissionEngines.data[aub_stream::ENGINE_CCS].engineSupported = false;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user