Apply memory flag when creating Gmm with image info

Resolves: NEO-3294

Change-Id: I2702611c5b3b2ccd8d48219b90479a6fd3fbe1f7
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-06-11 16:03:05 +02:00
committed by sys_ocldev
parent cf78aab248
commit b04fc1121e
9 changed files with 14 additions and 13 deletions

View File

@@ -48,7 +48,7 @@ class D3D9Tests : public PlatformFixture, public ::testing::Test {
return alloc;
}
GraphicsAllocation *allocateGraphicsMemoryForImage(const AllocationData &allocationData) override {
auto gmm = std::make_unique<Gmm>(*allocationData.imgInfo);
auto gmm = std::make_unique<Gmm>(*allocationData.imgInfo, StorageInfo{});
AllocationProperties properties(nullptr, false, GraphicsAllocation::AllocationType::SHARED_IMAGE);
auto alloc = OsAgnosticMemoryManager::createGraphicsAllocationFromSharedHandle(1, properties, false);
alloc->setDefaultGmm(forceGmm);