@@ -228,6 +228,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
228228 csrSizeRequestFlags.coherencyRequestChanged = this ->lastSentCoherencyRequest != static_cast <int8_t >(dispatchFlags.requiresCoherency );
229229 csrSizeRequestFlags.preemptionRequestChanged = this ->lastPreemptionMode != dispatchFlags.preemptionMode ;
230230 csrSizeRequestFlags.mediaSamplerConfigChanged = this ->lastMediaSamplerConfig != static_cast <int8_t >(dispatchFlags.mediaSamplerRequired );
231+ csrSizeRequestFlags.numGrfRequiredChanged = this ->lastSentNumGrfRequired != dispatchFlags.numGrfRequired ;
231232
232233 size_t requiredScratchSizeInBytes = requiredScratchSize * device.getDeviceInfo ().computeUnitsUsedForScratch ;
233234
@@ -255,7 +256,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
255256 }
256257 initPageTableManagerRegisters (commandStreamCSR);
257258 programPreemption (commandStreamCSR, device, dispatchFlags);
258- programCoherency (commandStreamCSR, dispatchFlags);
259+ programComputeMode (commandStreamCSR, dispatchFlags);
259260 programL3 (commandStreamCSR, dispatchFlags, newL3Config);
260261 programPipelineSelect (commandStreamCSR, dispatchFlags);
261262 programPreamble (commandStreamCSR, device, dispatchFlags, newL3Config);
@@ -628,7 +629,7 @@ size_t CommandStreamReceiverHw<GfxFamily>::getRequiredCmdStreamSize(const Dispat
628629 size += sizeof (typename GfxFamily::MI_BATCH_BUFFER_START);
629630
630631 size += getCmdSizeForL3Config ();
631- size += getCmdSizeForCoherency ();
632+ size += getCmdSizeForComputeMode ();
632633 size += getCmdSizeForMediaSampler (dispatchFlags.mediaSamplerRequired );
633634 size += getCmdSizeForPipelineSelect ();
634635 size += getCmdSizeForPreemption (dispatchFlags);
0 commit comments