fix: inherit work partition allocation from primary root csr

Related-To: NEO-8171

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2024-09-16 15:53:10 +00:00
committed by Compute-Runtime-Automation
parent a7a28a5e0b
commit d3d8b5fcc1
5 changed files with 81 additions and 21 deletions

View File

@@ -39,8 +39,8 @@ void populateFactoryTable<CommandStreamReceiverHw<Family>>() {
template <>
void CommandStreamReceiverHw<Family>::programEnginePrologue(LinearStream &csr) {
if (!this->isEnginePrologueSent) {
if (globalFenceAllocation) {
EncodeMemoryFence<Family>::encodeSystemMemoryFence(csr, globalFenceAllocation);
if (getGlobalFenceAllocation()) {
EncodeMemoryFence<Family>::encodeSystemMemoryFence(csr, getGlobalFenceAllocation());
}
this->isEnginePrologueSent = true;
}
@@ -49,7 +49,7 @@ void CommandStreamReceiverHw<Family>::programEnginePrologue(LinearStream &csr) {
template <>
size_t CommandStreamReceiverHw<Family>::getCmdSizeForPrologue() const {
if (!this->isEnginePrologueSent) {
if (globalFenceAllocation) {
if (getGlobalFenceAllocation()) {
return EncodeMemoryFence<Family>::getSystemMemoryFenceSize();
}
}