mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
Refactor Graphics Allocation paths for Images
Change-Id: Ifa3084b18cac95289bbceeaf3669dd31567fbd3e
This commit is contained in:
committed by
sys_ocldev
parent
3dca095ccf
commit
f6790c42cf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user