2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "hw_info.h"
|
|
|
|
|
2018-03-15 22:03:51 +08:00
|
|
|
namespace OCLRT {
|
2017-12-21 07:45:38 +08:00
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
|
|
struct EnableGfxProductHw {
|
|
|
|
typedef typename HwMapper<gfxProduct>::GfxProduct GfxProduct;
|
|
|
|
enum { gfxFamily = HwMapper<gfxProduct>::gfxFamily };
|
|
|
|
|
|
|
|
EnableGfxProductHw() {
|
|
|
|
EnableGfxFamilyHw<static_cast<GFXCORE_FAMILY>(gfxFamily)> enableFamily;
|
|
|
|
|
|
|
|
hardwarePrefix[gfxProduct] = HwMapper<gfxProduct>::abbreviation;
|
|
|
|
hardwareInfoTable[gfxProduct] = &GfxProduct::hwInfo;
|
2018-08-27 18:11:07 +08:00
|
|
|
hardwareInfoSetup[gfxProduct] = GfxProduct::setupHardwareInfo;
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
};
|
2018-03-15 22:03:51 +08:00
|
|
|
} // namespace OCLRT
|