Remove programCount from device

Change-Id: I4edfabadd73166a27db73a120fc1380de52a33a5
This commit is contained in:
Stefanowski, Adam
2018-08-09 10:08:49 +02:00
committed by sys_ocldev
parent 78f505f4f4
commit 8598168355
5 changed files with 0 additions and 69 deletions

View File

@@ -282,12 +282,6 @@ DrmAllocation *DrmMemoryManager::allocate32BitGraphicsMemory(size_t size, const
auto res = allocatorToUse->allocate(allocationSize);
if (!res) {
if (allocationOrigin == AllocationOrigin::EXTERNAL_ALLOCATION && device && device->getProgramCount() == 0) {
this->force32bitAllocations = false;
device->setForce32BitAddressing(false);
return (DrmAllocation *)allocateGraphicsMemoryInPreferredPool(ptr == nullptr, ptr, static_cast<size_t>(size), GraphicsAllocation::AllocationType::BUFFER);
}
return nullptr;
}