mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 12:11:31 +08:00
This change prepares infrastructure for pipeline select handling in command lists and queues by optimization of number of commands dispatched. State is synchronized between flush-task immediate and regular command lists. Next step is to add optimization itself which disables legacy hw command dispatch algorithm. This change corrects ADL-P support for systolic mode changes. Related-To: NEO-5019 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
/*
|
|
* Copyright (C) 2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/test/common/fixtures/command_stream_receiver_fixture.h"
|
|
|
|
#include "shared/source/command_stream/preemption.h"
|
|
|
|
using namespace NEO;
|
|
|
|
void CommandStreamReceiverFixture::setUp() {
|
|
DeviceFixture::setUp();
|
|
|
|
commandStream.replaceBuffer(cmdBuffer, bufferSize);
|
|
auto graphicsAllocation = new MockGraphicsAllocation(cmdBuffer, bufferSize);
|
|
commandStream.replaceGraphicsAllocation(graphicsAllocation);
|
|
|
|
dsh.replaceBuffer(dshBuffer, bufferSize);
|
|
graphicsAllocation = new MockGraphicsAllocation(dshBuffer, bufferSize);
|
|
dsh.replaceGraphicsAllocation(graphicsAllocation);
|
|
|
|
ioh.replaceBuffer(iohBuffer, bufferSize);
|
|
graphicsAllocation = new MockGraphicsAllocation(iohBuffer, bufferSize);
|
|
ioh.replaceGraphicsAllocation(graphicsAllocation);
|
|
|
|
ssh.replaceBuffer(sshBuffer, bufferSize);
|
|
graphicsAllocation = new MockGraphicsAllocation(sshBuffer, bufferSize);
|
|
ssh.replaceGraphicsAllocation(graphicsAllocation);
|
|
|
|
flushTaskFlags.preemptionMode = PreemptionHelper::getDefaultPreemptionMode(pDevice->getHardwareInfo());
|
|
}
|
|
void CommandStreamReceiverFixture::tearDown() {
|
|
DeviceFixture::tearDown();
|
|
|
|
delete dsh.getGraphicsAllocation();
|
|
delete ioh.getGraphicsAllocation();
|
|
delete ssh.getGraphicsAllocation();
|
|
delete commandStream.getGraphicsAllocation();
|
|
}
|