Skip to content

Commit 444b959

Browse files
Jaime ArteagaCompute-Runtime-Automation
authored andcommitted
Expand adjustPipelineSelect parameters
Signed-off-by: Jaime Arteaga <[email protected]>
1 parent 5c63929 commit 444b959

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

shared/source/command_container/cmdcontainer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ void CommandContainer::reset() {
147147
iddBlock = nullptr;
148148
nextIddInBlock = this->getNumIddPerBlock();
149149
lastSentNumGrfRequired = 0;
150+
lastPipelineSelectModeRequired = false;
150151
}
151152

152153
void *CommandContainer::getHeapSpaceAllowGrow(HeapType heapType,

shared/source/command_container/cmdcontainer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class CommandContainer : public NonCopyableOrMovableClass {
8686
uint32_t slmSize = std::numeric_limits<uint32_t>::max();
8787
uint32_t nextIddInBlock = 0;
8888
uint32_t lastSentNumGrfRequired = 0;
89+
bool lastPipelineSelectModeRequired = false;
8990

9091
Device *getDevice() const { return device; }
9192

shared/source/command_container/command_encoder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020 Intel Corporation
2+
* Copyright (C) 2020-2021 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -256,7 +256,7 @@ struct EncodeComputeMode {
256256
using STATE_COMPUTE_MODE = typename GfxFamily::STATE_COMPUTE_MODE;
257257
static void adjustComputeMode(LinearStream &csr, uint32_t numGrfRequired, void *const stateComputeModePtr, bool isMultiOsContextCapable);
258258

259-
static void adjustPipelineSelect(CommandContainer &container, uint32_t numGrfRequired);
259+
static void adjustPipelineSelect(CommandContainer &container, const NEO::KernelDescriptor &kernelDescriptor);
260260
};
261261

262262
template <typename GfxFamily>

shared/test/unit_test/fixtures/command_container_fixture.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#pragma once
99
#include "shared/source/command_container/command_encoder.h"
10+
#include "shared/source/kernel/kernel_descriptor.h"
1011
#include "shared/test/unit_test/fixtures/device_fixture.h"
1112

1213
#include "test.h"
@@ -31,6 +32,7 @@ class CommandEncodeStatesFixture : public DeviceFixture {
3132
DeviceFixture::TearDown();
3233
}
3334
std::unique_ptr<MyMockCommandContainer> cmdContainer;
35+
KernelDescriptor descriptor;
3436
};
3537

3638
} // namespace NEO

0 commit comments

Comments
 (0)