mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Remove programCount from device
Change-Id: I4edfabadd73166a27db73a120fc1380de52a33a5
This commit is contained in:
committed by
sys_ocldev
parent
78f505f4f4
commit
8598168355
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user