performance: add one time context init system fence to immediate flush task

Related-To: NEO-7808

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2023-06-19 15:40:22 +00:00
committed by Compute-Runtime-Automation
parent a099903ebd
commit 7aff4e1bf4
4 changed files with 67 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ template <>
size_t CommandStreamReceiverHw<Family>::getCmdSizeForPrologue() const {
if (!this->isEnginePrologueSent) {
if (globalFenceAllocation) {
return sizeof(Family::STATE_SYSTEM_MEM_FENCE_ADDRESS);
return EncodeMemoryFence<Family>::getSystemMemoryFenceSize();
}
}
return 0u;