mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 04:48:08 +08:00
Passing the capabilityTable as a reference to the constructor
previously we couldn't add new variable to capabilityTable structure becasue then we get too large function argument passed by value Change-Id: I162967ba195ec18fc781d127012f82e8876913a6
This commit is contained in:
committed by
sys_ocldev
parent
87af7b3c2b
commit
8fd7f6a8ce
@@ -25,7 +25,7 @@
|
||||
|
||||
namespace OCLRT {
|
||||
HardwareInfo::HardwareInfo(const PLATFORM *platform, const FeatureTable *skuTable, const WorkaroundTable *waTable,
|
||||
const GT_SYSTEM_INFO *sysInfo, RuntimeCapabilityTable capabilityTable)
|
||||
const GT_SYSTEM_INFO *sysInfo, const RuntimeCapabilityTable &capabilityTable)
|
||||
: pPlatform(platform), pSkuTable(skuTable), pWaTable(waTable), pSysInfo(sysInfo), capabilityTable(capabilityTable) {
|
||||
}
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ struct HardwareCapabilities {
|
||||
struct HardwareInfo {
|
||||
HardwareInfo() = default;
|
||||
HardwareInfo(const PLATFORM *platform, const FeatureTable *skuTable, const WorkaroundTable *waTable,
|
||||
const GT_SYSTEM_INFO *sysInfo, RuntimeCapabilityTable capabilityTable);
|
||||
const GT_SYSTEM_INFO *sysInfo, const RuntimeCapabilityTable &capabilityTable);
|
||||
|
||||
const PLATFORM *pPlatform = nullptr;
|
||||
const FeatureTable *pSkuTable = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user