@@ -109,7 +109,6 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
109109 LinearStream &commandStreamTask,
110110 size_t commandStreamStartTask,
111111 const LinearStream &dsh,
112- const LinearStream &ih,
113112 const LinearStream &ioh,
114113 const LinearStream &ssh,
115114 uint32_t taskLevel,
@@ -229,11 +228,10 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
229228 programVFEState (commandStreamCSR, dispatchFlags);
230229
231230 bool dshDirty = dshState.updateAndCheck (&dsh);
232- bool ihDirty = ihState.updateAndCheck (&ih);
233231 bool iohDirty = iohState.updateAndCheck (&ioh);
234232 bool sshDirty = sshState.updateAndCheck (&ssh);
235233
236- auto isStateBaseAddressDirty = dshDirty || ihDirty || iohDirty || sshDirty || stateBaseAddressDirty;
234+ auto isStateBaseAddressDirty = dshDirty || iohDirty || sshDirty || stateBaseAddressDirty;
237235
238236 auto requiredL3Index = CacheSettings::l3CacheOn;
239237 if (this ->disableL3Cache ) {
@@ -265,16 +263,16 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
265263 StateBaseAddressHelper<GfxFamily>::programStateBaseAddress (
266264 commandStreamCSR,
267265 dsh,
268- ih,
269266 ioh,
270267 ssh,
271268 newGSHbase,
272- requiredL3Index);
269+ requiredL3Index,
270+ memoryManager->getInternalHeapBaseAddress ());
273271
274272 latestSentStatelessMocsConfig = requiredL3Index;
275273
276274 if (DebugManager.flags .AddPatchInfoCommentsForAUBDump .get ()) {
277- collectStateBaseAddresPatchInfo (commandStream.getGpuBase (), stateBaseAddressCmdOffset, dsh, ih, ioh, ssh, newGSHbase);
275+ collectStateBaseAddresPatchInfo (commandStream.getGpuBase (), stateBaseAddressCmdOffset, dsh, ioh, ssh, newGSHbase, memoryManager-> getInternalHeapBaseAddress () );
278276 }
279277 }
280278
@@ -299,12 +297,10 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
299297 }
300298
301299 auto dshAllocation = dsh.getGraphicsAllocation ();
302- auto ihAllocation = ih.getGraphicsAllocation ();
303300 auto iohAllocation = ioh.getGraphicsAllocation ();
304301 auto sshAllocation = ssh.getGraphicsAllocation ();
305302
306303 this ->makeResident (*dshAllocation);
307- this ->makeResident (*ihAllocation);
308304 this ->makeResident (*iohAllocation);
309305 this ->makeResident (*sshAllocation);
310306
@@ -650,18 +646,18 @@ void CommandStreamReceiverHw<GfxFamily>::collectStateBaseAddresPatchInfo(
650646 uint64_t baseAddress,
651647 uint64_t commandOffset,
652648 const LinearStream &dsh,
653- const LinearStream &ih,
654649 const LinearStream &ioh,
655650 const LinearStream &ssh,
656- uint64_t generalStateBase) {
651+ uint64_t generalStateBase,
652+ uint64_t internalHeapOffset) {
657653
658654 typedef typename GfxFamily::STATE_BASE_ADDRESS STATE_BASE_ADDRESS;
659655
660656 PatchInfoData dynamicStatePatchInfo = {dsh.getGpuBase (), 0u , PatchInfoAllocationType::DynamicStateHeap, baseAddress, commandOffset + STATE_BASE_ADDRESS::PATCH_CONSTANTS::DYNAMICSTATEBASEADDRESS_BYTEOFFSET, PatchInfoAllocationType::Default};
661657 PatchInfoData generalStatePatchInfo = {generalStateBase, 0u , PatchInfoAllocationType::GeneralStateHeap, baseAddress, commandOffset + STATE_BASE_ADDRESS::PATCH_CONSTANTS::GENERALSTATEBASEADDRESS_BYTEOFFSET, PatchInfoAllocationType::Default};
662658 PatchInfoData surfaceStatePatchInfo = {ssh.getGpuBase (), 0u , PatchInfoAllocationType::SurfaceStateHeap, baseAddress, commandOffset + STATE_BASE_ADDRESS::PATCH_CONSTANTS::SURFACESTATEBASEADDRESS_BYTEOFFSET, PatchInfoAllocationType::Default};
663659 PatchInfoData indirectObjectPatchInfo = {ioh.getGpuBase (), 0u , PatchInfoAllocationType::IndirectObjectHeap, baseAddress, commandOffset + STATE_BASE_ADDRESS::PATCH_CONSTANTS::INDIRECTOBJECTBASEADDRESS_BYTEOFFSET, PatchInfoAllocationType::Default};
664- PatchInfoData instructionPatchInfo = {ih. getGpuBase () , 0u , PatchInfoAllocationType::InstructionHeap, baseAddress, commandOffset + STATE_BASE_ADDRESS::PATCH_CONSTANTS::INSTRUCTIONBASEADDRESS_BYTEOFFSET, PatchInfoAllocationType::Default};
660+ PatchInfoData instructionPatchInfo = {internalHeapOffset , 0u , PatchInfoAllocationType::InstructionHeap, baseAddress, commandOffset + STATE_BASE_ADDRESS::PATCH_CONSTANTS::INSTRUCTIONBASEADDRESS_BYTEOFFSET, PatchInfoAllocationType::Default};
665661
666662 setPatchInfoData (dynamicStatePatchInfo);
667663 setPatchInfoData (generalStatePatchInfo);
0 commit comments