mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 14:33:04 +08:00
Move HardwareInfo ownership to ExecutionEnvironment [1/n]
Change-Id: I5e5b4cc45947a8841282c7d431fb69d9c397a2d4 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b2aee82f41
commit
bb80d327c7
@@ -12,15 +12,15 @@
|
||||
typedef OsInterfaceTest OsInterfaceTestCnl;
|
||||
|
||||
GEN10TEST_F(OsInterfaceTestCnl, askKmdIfPreemptionRegisterWhitelisted) {
|
||||
HardwareInfo *hwInfo = nullptr;
|
||||
size_t numDevices = 0;
|
||||
|
||||
ExecutionEnvironment executionEnvironment;
|
||||
bool success = DeviceFactory::getDevices(&hwInfo, numDevices, executionEnvironment);
|
||||
bool success = DeviceFactory::getDevices(numDevices, executionEnvironment);
|
||||
EXPECT_TRUE(success);
|
||||
auto hwInfo = executionEnvironment.getHardwareInfo();
|
||||
|
||||
for (size_t i = 0u; i < numDevices; i++) {
|
||||
if (hwInfo[i].pWaTable->waEnablePreemptionGranularityControlByUMD) {
|
||||
if (hwInfo[i].pWaTable.waEnablePreemptionGranularityControlByUMD) {
|
||||
EXPECT_TRUE(hwInfo[i].capabilityTable.whitelistedRegisters.csChicken1_0x2580);
|
||||
} else {
|
||||
EXPECT_FALSE(hwInfo[i].capabilityTable.whitelistedRegisters.csChicken1_0x2580);
|
||||
|
||||
Reference in New Issue
Block a user