[21/n] Remove Instruction Heap from enqueue path.

- This removes Instruction Heap allocation from enqueue path
- Blocked path is handled as well
- Heap is no longer allocated on demand it is bind to kernelInfo.

Change-Id: I54545beceed3404ee0330a8bac2b0934944cac30
This commit is contained in:
Mrozek, Michal
2018-03-28 19:21:07 +02:00
parent f2b96fa508
commit 2be5934096
21 changed files with 49 additions and 277 deletions

View File

@@ -39,11 +39,9 @@ TEST(DeviceQueueSimpleTest, setupExecutionModelDispatchDoesNothing) {
memset(buffer, 1, 20);
size_t size = 20;
IndirectHeap ih(buffer, size);
IndirectHeap ssh(buffer, size);
devQueue.setupExecutionModelDispatch(ih, ssh, nullptr, 0, 0, 0);
devQueue.setupExecutionModelDispatch(ssh, nullptr, 0, 0, 0);
EXPECT_EQ(0u, ih.getUsed());
EXPECT_EQ(0u, ssh.getUsed());
for (uint32_t i = 0; i < 20; i++) {