mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
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:
committed by
Compute-Runtime-Automation
parent
e722afbefb
commit
170d628f57
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user