mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
[2/N] Make the execution environment adapter agnostic
-add rootDeviceId to the command stream receiver Related-To: NEO-3857 Change-Id: I6c7f334ebe3d19cf0c58a4db65d013b7a8b7f982 Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
60237e1f80
commit
e784ba39fb
@@ -62,7 +62,7 @@ class CommandStreamReceiver {
|
||||
samplerCacheFlushAfter //add sampler cache flush after Walker with redescribed image
|
||||
};
|
||||
using MutexType = std::recursive_mutex;
|
||||
CommandStreamReceiver(ExecutionEnvironment &executionEnvironment);
|
||||
CommandStreamReceiver(ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex);
|
||||
virtual ~CommandStreamReceiver();
|
||||
|
||||
virtual FlushStamp flush(BatchBuffer &batchBuffer, ResidencyContainer &allocationsForResidency) = 0;
|
||||
@@ -244,6 +244,8 @@ class CommandStreamReceiver {
|
||||
uint32_t requiredScratchSize = 0;
|
||||
uint32_t requiredPrivateScratchSize = 0;
|
||||
|
||||
const uint32_t rootDeviceIndex;
|
||||
|
||||
int8_t lastSentCoherencyRequest = -1;
|
||||
int8_t lastMediaSamplerConfig = -1;
|
||||
|
||||
@@ -262,5 +264,5 @@ class CommandStreamReceiver {
|
||||
bool localMemoryEnabled = false;
|
||||
};
|
||||
|
||||
typedef CommandStreamReceiver *(*CommandStreamReceiverCreateFunc)(bool withAubDump, ExecutionEnvironment &executionEnvironment);
|
||||
typedef CommandStreamReceiver *(*CommandStreamReceiverCreateFunc)(bool withAubDump, ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex);
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user