mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 03:01:20 +08:00
Remove createInternalGraphicsAllocation function.
- Route directly to allocate32BitGraphicsMemory Change-Id: Ia6872bae655c530ff06b0ec270f419ca91d005ce
This commit is contained in:
committed by
sys_ocldev
parent
6fdde42289
commit
d2817427af
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user