Remove reuseBO from createGraphicsAllocationFromSharedHandle

Change-Id: Ia7af1cdd8e3986b8af7c542032d2767303865382
This commit is contained in:
Venevtsev, Igor
2018-08-29 14:50:36 +02:00
committed by sys_ocldev
parent d08aa81a9d
commit f6743ced2a
19 changed files with 46 additions and 55 deletions

View File

@@ -55,15 +55,15 @@ class D3D9Tests : public PlatformFixture, public ::testing::Test {
class MockMM : public OsAgnosticMemoryManager {
public:
GraphicsAllocation *createGraphicsAllocationFromSharedHandle(osHandle handle, bool requireSpecificBitness, bool /*reuseBO*/) override {
auto alloc = OsAgnosticMemoryManager::createGraphicsAllocationFromSharedHandle(handle, requireSpecificBitness, false);
GraphicsAllocation *createGraphicsAllocationFromSharedHandle(osHandle handle, bool requireSpecificBitness) override {
auto alloc = OsAgnosticMemoryManager::createGraphicsAllocationFromSharedHandle(handle, requireSpecificBitness);
alloc->gmm = forceGmm;
gmmOwnershipPassed = true;
return alloc;
}
GraphicsAllocation *allocateGraphicsMemoryForImage(ImageInfo &imginfo, Gmm *gmm) override {
delete gmm;
auto alloc = OsAgnosticMemoryManager::createGraphicsAllocationFromSharedHandle(1, false, false);
auto alloc = OsAgnosticMemoryManager::createGraphicsAllocationFromSharedHandle(1, false);
alloc->gmm = forceGmm;
gmmOwnershipPassed = true;
return alloc;