mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +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 {
|
namespace OCLRT {
|
||||||
HardwareInfo::HardwareInfo(const PLATFORM *platform, const FeatureTable *skuTable, const WorkaroundTable *waTable,
|
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) {
|
: pPlatform(platform), pSkuTable(skuTable), pWaTable(waTable), pSysInfo(sysInfo), capabilityTable(capabilityTable) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ struct HardwareCapabilities {
|
|||||||
struct HardwareInfo {
|
struct HardwareInfo {
|
||||||
HardwareInfo() = default;
|
HardwareInfo() = default;
|
||||||
HardwareInfo(const PLATFORM *platform, const FeatureTable *skuTable, const WorkaroundTable *waTable,
|
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 PLATFORM *pPlatform = nullptr;
|
||||||
const FeatureTable *pSkuTable = nullptr;
|
const FeatureTable *pSkuTable = nullptr;
|
||||||
|
@ -786,7 +786,7 @@ HWTEST_F(WddmDefaultTest, givenFtrWddmHwQueuesFlagWhenCreatingCsrThenPickWddmVer
|
|||||||
|
|
||||||
struct WddmCsrCompressionTests : WddmCommandStreamMockGdiTest {
|
struct WddmCsrCompressionTests : WddmCommandStreamMockGdiTest {
|
||||||
void setCompressionEnabled(bool enabled) {
|
void setCompressionEnabled(bool enabled) {
|
||||||
RuntimeCapabilityTable capabilityTable = {platformDevices[0]->capabilityTable};
|
RuntimeCapabilityTable capabilityTable = platformDevices[0]->capabilityTable;
|
||||||
capabilityTable.ftrCompression = enabled;
|
capabilityTable.ftrCompression = enabled;
|
||||||
hwInfo = {*platformDevices[0]};
|
hwInfo = {*platformDevices[0]};
|
||||||
hwInfo.capabilityTable = capabilityTable;
|
hwInfo.capabilityTable = capabilityTable;
|
||||||
|
Reference in New Issue
Block a user