Remove createInternalGraphicsAllocation function.

- Route directly to allocate32BitGraphicsMemory

Change-Id: Ia6872bae655c530ff06b0ec270f419ca91d005ce
This commit is contained in:
Mrozek, Michal
2018-05-19 04:48:54 -07:00
committed by sys_ocldev
parent 6fdde42289
commit d2817427af
15 changed files with 13 additions and 29 deletions

View File

@@ -504,7 +504,7 @@ uint32_t KernelInfo::getConstantBufferSize() const {
bool KernelInfo::createKernelAllocation(MemoryManager *memoryManager) {
UNRECOVERABLE_IF(kernelAllocation);
auto kernelIsaSize = heapInfo.pKernelHeader->KernelHeapSize;
kernelAllocation = memoryManager->createInternalGraphicsAllocation(nullptr, kernelIsaSize);
kernelAllocation = memoryManager->allocate32BitGraphicsMemory(kernelIsaSize, nullptr, AllocationOrigin::INTERNAL_ALLOCATION);
if (kernelAllocation) {
memcpy_s(kernelAllocation->getUnderlyingBuffer(), kernelIsaSize, heapInfo.pKernelHeap, kernelIsaSize);
} else {