Refactor: Dont include os_agnostic_hw_info_config_* files in namespace NEO

use namespace NEO explicitly in these files

Related-To: NEO-4446
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-11-16 12:14:49 +00:00
committed by Compute-Runtime-Automation
parent 7c050291bf
commit 610480b5aa
56 changed files with 107 additions and 91 deletions

View File

@@ -21,15 +21,20 @@
#include "platforms.h"
namespace NEO {
constexpr static auto gfxProduct = IGFX_XE_HP_SDV;
namespace NEO {
const std::map<std::string, std::pair<uint32_t, uint32_t>> guidUuidOffsetMap = {
// add new values for guid in the form of {"guid", {offset, size}} for each platform
{"0xfdc76195", {64u, 8u}}};
#include "shared/source/os_interface/linux/hw_info_config_uuid_xehp_and_later.inl"
} // namespace NEO
#include "shared/source/xe_hp_core/os_agnostic_hw_info_config_xe_hp_core.inl"
namespace NEO {
template <>
int HwInfoConfigHw<gfxProduct>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) const {
if (allowCompression(*hwInfo)) {

View File

@@ -5,8 +5,7 @@
*
*/
using namespace NEO;
namespace NEO {
template <>
uint32_t HwInfoConfigHw<gfxProduct>::getHwRevIdFromStepping(uint32_t stepping, const HardwareInfo &hwInfo) const {
switch (stepping) {
@@ -139,3 +138,4 @@ template <>
bool HwInfoConfigHw<gfxProduct>::isImplicitScalingSupported(const HardwareInfo &hwInfo) const {
return true;
}
} // namespace NEO

View File

@@ -15,11 +15,11 @@
#include "platforms.h"
namespace NEO {
constexpr static auto gfxProduct = IGFX_XE_HP_SDV;
#include "shared/source/xe_hp_core/os_agnostic_hw_info_config_xe_hp_core.inl"
namespace NEO {
template <>
int HwInfoConfigHw<gfxProduct>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) const {
if (allowCompression(*hwInfo)) {