mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
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:
committed by
Compute-Runtime-Automation
parent
7bc8424a69
commit
31e9b5e9fa
@@ -443,6 +443,10 @@ class CommandStreamReceiver {
|
||||
void preallocateCommandBuffer();
|
||||
void preallocateInternalHeap();
|
||||
|
||||
bool isInitialized() const {
|
||||
return this->resourcesInitialized;
|
||||
}
|
||||
|
||||
protected:
|
||||
void cleanupResources();
|
||||
void printDeviceIndex();
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user