Pass root device environment to get TargetDevice for IGC

Related-To: NEO-6853
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-12-19 18:11:56 +00:00
committed by Compute-Runtime-Automation
parent 893c3cdb53
commit 8f1bdb220f
6 changed files with 19 additions and 16 deletions

View File

@@ -1491,7 +1491,6 @@ using ProgramWithDebugDataTests = Test<ProgramSimpleFixture>;
TEST_F(ProgramWithDebugDataTests, GivenPatchtokensProgramWithDebugSymbolsWhenPackDeviceBinaryThenDebugDataIsAddedToSingleDeviceBinary) {
auto clDevice = pContext->getDevices()[0];
auto &hwInfo = clDevice->getHardwareInfo();
auto rootDeviceIdx = clDevice->getRootDeviceIndex();
pProgram = new PatchtokensProgramWithDebugData(*clDevice);
@@ -1501,7 +1500,7 @@ TEST_F(ProgramWithDebugDataTests, GivenPatchtokensProgramWithDebugSymbolsWhenPac
EXPECT_NE(nullptr, buildInfo.packedDeviceBinary.get());
auto packedDeviceBinary = ArrayRef<const uint8_t>::fromAny(buildInfo.packedDeviceBinary.get(), buildInfo.packedDeviceBinarySize);
TargetDevice targetDevice = NEO::targetDeviceFromHwInfo(hwInfo);
TargetDevice targetDevice = NEO::getTargetDevice(pDevice->getRootDeviceEnvironment());
std::string decodeErrors;
std::string decodeWarnings;
auto singleDeviceBinary = unpackSingleDeviceBinary(packedDeviceBinary, {}, targetDevice,