mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
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:
committed by
Compute-Runtime-Automation
parent
92ea7ee7a3
commit
a17745532c
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user