mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
[27/n] Internal 4GB allocator.
- Allow indirect heap to work in 2 modes: first mode is when it will be used as an allocation from 4GB allocator. In such scenario driver will return offset from base of the allocator region. Second mode is the legacy mode which will be used by device enqueue, this will results in heap CPU base address being programmed in State Base Address commands and during programming heap offset base of 0 will be returned. Change-Id: Ica098f3278b6b6ed5036b4c5ab7461dc61d8ee86
This commit is contained in:
committed by
sys_ocldev
parent
e7ab0b2d33
commit
cb06fad983
@@ -637,7 +637,7 @@ TEST_P(CommandQueueIndirectHeapTest, givenCommandQueueWhenGetHeapMemoryIsCalledW
|
||||
const cl_queue_properties props[3] = {CL_QUEUE_PROPERTIES, 0, 0};
|
||||
CommandQueue cmdQ(context.get(), pDevice, props);
|
||||
|
||||
IndirectHeap heap(nullptr, 100);
|
||||
IndirectHeap heap(nullptr, size_t{100});
|
||||
|
||||
IndirectHeap *indirectHeap = &heap;
|
||||
cmdQ.allocateHeapMemory(this->GetParam(), 100, indirectHeap);
|
||||
|
||||
Reference in New Issue
Block a user