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:
Stefanowski, Adam
2018-07-02 13:42:23 +02:00
committed by sys_ocldev
parent 87af7b3c2b
commit 8fd7f6a8ce
3 changed files with 3 additions and 3 deletions

View File

@ -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) {
}

View File

@ -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;

View File

@ -786,7 +786,7 @@ HWTEST_F(WddmDefaultTest, givenFtrWddmHwQueuesFlagWhenCreatingCsrThenPickWddmVer
struct WddmCsrCompressionTests : WddmCommandStreamMockGdiTest {
void setCompressionEnabled(bool enabled) {
RuntimeCapabilityTable capabilityTable = {platformDevices[0]->capabilityTable};
RuntimeCapabilityTable capabilityTable = platformDevices[0]->capabilityTable;
capabilityTable.ftrCompression = enabled;
hwInfo = {*platformDevices[0]};
hwInfo.capabilityTable = capabilityTable;