mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Move GfxCoreHelper ownership to RootDeviceEnvironment
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d32a7ee7d0
commit
eb63f36108
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user