feature: add support for secondary contexts in group

Related-To: NEO-7824

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2023-11-15 09:01:43 +00:00
committed by Compute-Runtime-Automation
parent 7bc8424a69
commit 31e9b5e9fa
27 changed files with 652 additions and 8 deletions

View File

@@ -443,6 +443,10 @@ class CommandStreamReceiver {
void preallocateCommandBuffer();
void preallocateInternalHeap();
bool isInitialized() const {
return this->resourcesInitialized;
}
protected:
void cleanupResources();
void printDeviceIndex();

View File

@@ -22,6 +22,7 @@
#include "shared/source/os_interface/os_context.h"
#include "aubstream/aub_manager.h"
#include "aubstream/aubstream.h"
namespace NEO {
@@ -43,6 +44,11 @@ void CommandStreamReceiverSimulatedCommonHw<GfxFamily>::setupContext(OsContext &
uint32_t flags = 0;
getCsTraits(engineType).setContextSaveRestoreFlags(flags);
if (osContext.isPartOfContextGroup()) {
constexpr uint32_t contextGroupBit = aub_stream::hardwareContextFlags::contextGroup;
flags |= contextGroupBit;
}
if (debugManager.flags.AppendAubStreamContextFlags.get() != -1) {
flags |= static_cast<uint32_t>(debugManager.flags.AppendAubStreamContextFlags.get());
}