diff --git a/runtime/helpers/hw_info.cpp b/runtime/helpers/hw_info.cpp index 947b985206..0cfaf12c54 100644 --- a/runtime/helpers/hw_info.cpp +++ b/runtime/helpers/hw_info.cpp @@ -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) { } diff --git a/runtime/helpers/hw_info.h b/runtime/helpers/hw_info.h index 1ab35c5122..d616e347ab 100644 --- a/runtime/helpers/hw_info.h +++ b/runtime/helpers/hw_info.h @@ -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; diff --git a/unit_tests/os_interface/windows/device_command_stream_tests.cpp b/unit_tests/os_interface/windows/device_command_stream_tests.cpp index 07912d95d2..2a42e6fb59 100644 --- a/unit_tests/os_interface/windows/device_command_stream_tests.cpp +++ b/unit_tests/os_interface/windows/device_command_stream_tests.cpp @@ -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;