Refactor Graphics Allocation paths for Images

Change-Id: Ifa3084b18cac95289bbceeaf3669dd31567fbd3e
This commit is contained in:
Hoppe, Mateusz
2018-12-14 11:24:45 +01:00
committed by sys_ocldev
parent 3dca095ccf
commit f6790c42cf
20 changed files with 452 additions and 82 deletions

View File

@@ -47,8 +47,8 @@ class D3D9Tests : public PlatformFixture, public ::testing::Test {
gmmOwnershipPassed = true;
return alloc;
}
GraphicsAllocation *allocateGraphicsMemoryForImage(ImageInfo &imginfo, Gmm *gmm) override {
delete gmm;
GraphicsAllocation *allocateGraphicsMemoryForImage(ImageInfo &imginfo, const void *hostPtr) override {
auto gmm = std::make_unique<Gmm>(imginfo);
auto alloc = OsAgnosticMemoryManager::createGraphicsAllocationFromSharedHandle(1, false);
alloc->gmm = forceGmm;
gmmOwnershipPassed = true;