Store command stream receiver in device.

Change-Id: I133ce4435e189e5bb8473ad4736fe0b02047dffe
This commit is contained in:
Mrozek, Michal
2018-09-11 10:43:50 +02:00
committed by sys_ocldev
parent 2366c41154
commit 1530d7832f
7 changed files with 18 additions and 25 deletions

View File

@@ -88,7 +88,6 @@ class Device : public BaseObject<_cl_device_id> {
}
CommandStreamReceiver &getCommandStreamReceiver();
CommandStreamReceiver *peekCommandStreamReceiver();
volatile uint32_t *getTagAddress() const;
@@ -179,6 +178,7 @@ class Device : public BaseObject<_cl_device_id> {
PreemptionMode preemptionMode;
EngineType engineType;
ExecutionEnvironment *executionEnvironment = nullptr;
CommandStreamReceiver *commandStreamReceiver = nullptr;
};
template <cl_device_info Param>
@@ -190,11 +190,7 @@ inline void Device::getCap(const void *&src,
}
inline CommandStreamReceiver &Device::getCommandStreamReceiver() {
return *executionEnvironment->commandStreamReceiver;
}
inline CommandStreamReceiver *Device::peekCommandStreamReceiver() {
return executionEnvironment->commandStreamReceiver.get();
return *this->commandStreamReceiver;
}
inline volatile uint32_t *Device::getTagAddress() const {