Move GfxCoreHelper ownership to RootDeviceEnvironment

Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2023-01-09 14:59:10 +00:00
committed by Compute-Runtime-Automation
parent d32a7ee7d0
commit eb63f36108
35 changed files with 207 additions and 113 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 Intel Corporation
* Copyright (C) 2018-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -15,10 +15,14 @@
#include <algorithm>
namespace NEO {
GfxCoreHelper *gfxCoreHelperFactory[IGFX_MAX_CORE] = {};
GfxCoreHelper &GfxCoreHelper::get(GFXCORE_FAMILY gfxCore) {
return *gfxCoreHelperFactory[gfxCore];
GfxCoreHelperCreateFunctionType gfxCoreHelperFactory[IGFX_MAX_CORE] = {};
std::unique_ptr<GfxCoreHelper> GfxCoreHelper::create(const GFXCORE_FAMILY gfxCoreFamily) {
auto createFunction = gfxCoreHelperFactory[gfxCoreFamily];
auto gfxCoreHelper = createFunction();
return gfxCoreHelper;
}
bool GfxCoreHelper::compressedBuffersSupported(const HardwareInfo &hwInfo) {