mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
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:
committed by
sys_ocldev
parent
cf78aab248
commit
b04fc1121e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user