@@ -438,7 +438,7 @@ void dispatchWalker(
438438 unsigned int commandType = 0 ) {
439439
440440 OCLRT::LinearStream *commandStream = nullptr ;
441- OCLRT::IndirectHeap *dsh = nullptr , *ish = nullptr , * ioh = nullptr , *ssh = nullptr ;
441+ OCLRT::IndirectHeap *dsh = nullptr , *ioh = nullptr , *ssh = nullptr ;
442442 bool executionModelKernel = multiDispatchInfo.begin ()->getKernel ()->isParentKernel ;
443443
444444 for (auto &dispatchInfo : multiDispatchInfo) {
@@ -450,7 +450,6 @@ void dispatchWalker(
450450 }
451451
452452 // Allocate command stream and indirect heaps
453- size_t cmdQInstructionHeapReservedBlockSize = 0 ;
454453 if (blockQueue) {
455454 using KCH = KernelCommandsHelper<GfxFamily>;
456455 commandStream = new LinearStream (alignedMalloc (MemoryConstants::pageSize, MemoryConstants::pageSize), MemoryConstants::pageSize);
@@ -465,13 +464,10 @@ void dispatchWalker(
465464 dsh = allocateIndirectHeap ([&multiDispatchInfo] { return KCH::getTotalSizeRequiredDSH (multiDispatchInfo); });
466465 ioh = allocateIndirectHeap ([&multiDispatchInfo] { return KCH::getTotalSizeRequiredIOH (multiDispatchInfo); });
467466 }
468- ish = allocateIndirectHeap ([&multiDispatchInfo] { return KCH::getTotalSizeRequiredIH (multiDispatchInfo); });
469- cmdQInstructionHeapReservedBlockSize = commandQueue.getInstructionHeapReservedBlockSize ();
470467
471468 ssh = allocateIndirectHeap ([&multiDispatchInfo] { return KCH::getTotalSizeRequiredSSH (multiDispatchInfo); });
472469 using UniqueIH = std::unique_ptr<IndirectHeap>;
473- *blockedCommandsData = new KernelOperation (std::unique_ptr<LinearStream>(commandStream), UniqueIH (dsh),
474- UniqueIH (ish), UniqueIH (ioh), UniqueIH (ssh));
470+ *blockedCommandsData = new KernelOperation (std::unique_ptr<LinearStream>(commandStream), UniqueIH (dsh), UniqueIH (ioh), UniqueIH (ssh));
475471 if (executionModelKernel) {
476472 (*blockedCommandsData)->doNotFreeISH = true ;
477473 }
@@ -481,7 +477,6 @@ void dispatchWalker(
481477 commandQueue.releaseIndirectHeap (IndirectHeap::SURFACE_STATE);
482478 }
483479 dsh = &getIndirectHeap<GfxFamily, IndirectHeap::DYNAMIC_STATE>(commandQueue, multiDispatchInfo);
484- ish = &getIndirectHeap<GfxFamily, IndirectHeap::INSTRUCTION>(commandQueue, multiDispatchInfo);
485480 ioh = &getIndirectHeap<GfxFamily, IndirectHeap::INDIRECT_OBJECT>(commandQueue, multiDispatchInfo);
486481 ssh = &getIndirectHeap<GfxFamily, IndirectHeap::SURFACE_STATE>(commandQueue, multiDispatchInfo);
487482 }
@@ -680,13 +675,12 @@ void dispatchScheduler(
680675 using MI_BATCH_BUFFER_START = typename GfxFamily::MI_BATCH_BUFFER_START;
681676
682677 OCLRT::LinearStream *commandStream = nullptr ;
683- OCLRT::IndirectHeap *dsh = nullptr , *ish = nullptr , * ioh = nullptr , *ssh = nullptr ;
678+ OCLRT::IndirectHeap *dsh = nullptr , *ioh = nullptr , *ssh = nullptr ;
684679
685680 commandStream = &commandQueue.getCS (0 );
686681 // note : below code assumes that caller to dispatchScheduler "preallocated" memory
687682 // required for execution model in below heap managers
688683 dsh = devQueueHw.getIndirectHeap (IndirectHeap::DYNAMIC_STATE);
689- ish = &commandQueue.getIndirectHeap (IndirectHeap::INSTRUCTION);
690684 ssh = &commandQueue.getIndirectHeap (IndirectHeap::SURFACE_STATE);
691685
692686 bool dcFlush = false ;
@@ -919,14 +913,13 @@ IndirectHeap &getIndirectHeap(CommandQueue &commandQueue, const MultiDispatchInf
919913 // clang-format off
920914 switch (heapType) {
921915 case IndirectHeap::DYNAMIC_STATE: expectedSize = KernelCommandsHelper<GfxFamily>::getTotalSizeRequiredDSH (multiDispatchInfo); break ;
922- case IndirectHeap::INSTRUCTION: expectedSize = KernelCommandsHelper<GfxFamily>::getTotalSizeRequiredIH ( multiDispatchInfo); break ;
923916 case IndirectHeap::INDIRECT_OBJECT: expectedSize = KernelCommandsHelper<GfxFamily>::getTotalSizeRequiredIOH (multiDispatchInfo); break ;
924917 case IndirectHeap::SURFACE_STATE: expectedSize = KernelCommandsHelper<GfxFamily>::getTotalSizeRequiredSSH (multiDispatchInfo); break ;
925918 }
926919 // clang-format on
927920
928921 if (multiDispatchInfo.begin ()->getKernel ()->isParentKernel ) {
929- if (heapType == IndirectHeap::INSTRUCTION || heapType == IndirectHeap:: SURFACE_STATE) {
922+ if (heapType == IndirectHeap::SURFACE_STATE) {
930923 expectedSize += KernelCommandsHelper<GfxFamily>::template getSizeRequiredForExecutionModel<heapType>(const_cast <const Kernel &>(*(multiDispatchInfo.begin ()->getKernel ())));
931924 } else // if (heapType == IndirectHeap::DYNAMIC_STATE || heapType == IndirectHeap::INDIRECT_OBJECT)
932925 {
0 commit comments