2019-09-19 01:32:33 +08:00
|
|
|
/*
|
2021-04-07 21:28:28 +08:00
|
|
|
* Copyright (C) 2019-2021 Intel Corporation
|
2019-09-19 01:32:33 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-23 05:50:57 +08:00
|
|
|
#include "opencl/source/gtpin/gtpin_hw_helper.h"
|
|
|
|
#include "opencl/source/gtpin/gtpin_hw_helper.inl"
|
2021-08-03 19:48:35 +08:00
|
|
|
#include "opencl/source/gtpin/gtpin_hw_helper_bdw_and_later.inl"
|
2020-02-23 05:50:57 +08:00
|
|
|
|
2019-09-19 01:32:33 +08:00
|
|
|
#include "ocl_igc_shared/gtpin/gtpin_ocl_interface.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
extern GTPinHwHelper *gtpinHwHelperFactory[IGFX_MAX_CORE];
|
|
|
|
|
|
|
|
typedef TGLLPFamily Family;
|
|
|
|
static const auto gfxFamily = IGFX_GEN12LP_CORE;
|
|
|
|
|
|
|
|
template <>
|
|
|
|
uint32_t GTPinHwHelperHw<Family>::getGenVersion() {
|
2020-02-24 21:35:50 +08:00
|
|
|
return gtpin::GTPIN_GEN_12_1;
|
2019-09-19 01:32:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
template class GTPinHwHelperHw<Family>;
|
|
|
|
|
|
|
|
struct GTPinEnableGen12LP {
|
|
|
|
GTPinEnableGen12LP() {
|
|
|
|
gtpinHwHelperFactory[gfxFamily] = >PinHwHelperHw<Family>::get();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
static GTPinEnableGen12LP gtpinEnable;
|
|
|
|
|
|
|
|
} // namespace NEO
|