Adjust gmmHelper decanonize method accessing point in getDumpSurfaceInfo

Accessing decanonize method as a member of GmmHelper class object

Related-To: NEO-6523
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
Krzysztof Gibala
2022-05-12 10:40:45 +00:00
committed by Compute-Runtime-Automation
parent e722afbefb
commit 170d628f57
4 changed files with 27 additions and 4 deletions

View File

@@ -402,7 +402,7 @@ struct AubSurfaceDumpTests : public AubAllocDumpTests,
AubAllocDumpTests::TearDown();
}
bool isCompressed = false;
bool isCompressed = true;
AubAllocDump::DumpFormat dumpFormat = AubAllocDump::DumpFormat::NONE;
};
@@ -413,6 +413,8 @@ HWTEST_P(AubSurfaceDumpTests, givenGraphicsAllocationWhenGetDumpSurfaceIsCalledA
if (AubAllocDump::isBufferDumpFormat(dumpFormat)) {
auto bufferAllocation = memoryManager.allocateGraphicsMemoryWithProperties(MockAllocationProperties{pDevice->getRootDeviceIndex(), MemoryConstants::pageSize});
bufferAllocation->setDefaultGmm(new Gmm(pDevice->executionEnvironment->rootDeviceEnvironments[pDevice->getRootDeviceIndex()]->getGmmHelper(), nullptr, 1, 0, GMM_RESOURCE_USAGE_OCL_BUFFER, false, {}, true));
ASSERT_NE(nullptr, bufferAllocation);
MockBuffer::setAllocationType(bufferAllocation, gmmHelper, isCompressed);