performance: Move preemption allocation init to the first submission

Related-To: NEO-12323
Signed-off-by: Krzysztof Sprzaczkowski <krzysztof.sprzaczkowski@intel.com>
This commit is contained in:
Krzysztof Sprzaczkowski
2025-01-15 13:44:10 +00:00
committed by Compute-Runtime-Automation
parent 92ea7ee7a3
commit a17745532c
23 changed files with 117 additions and 48 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022-2024 Intel Corporation
* Copyright (C) 2022-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -37,6 +37,13 @@ void CommandStreamReceiverFixture::setUp() {
requiredStreamProperties.initSupport(pDevice->getRootDeviceEnvironment());
immediateFlushTaskFlags.requiredState = &requiredStreamProperties;
immediateFlushTaskFlags.sshCpuBase = sshBuffer;
if (pDevice->getPreemptionMode() == NEO::PreemptionMode::MidThread) {
auto &commandStreamReceiver = pDevice->getGpgpuCommandStreamReceiver();
if (!commandStreamReceiver.getPreemptionAllocation()) {
ASSERT_TRUE(commandStreamReceiver.createPreemptionAllocation());
}
}
}
void CommandStreamReceiverFixture::tearDown() {