mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
Store command stream receiver in device.
Change-Id: I133ce4435e189e5bb8473ad4736fe0b02047dffe
This commit is contained in:
committed by
sys_ocldev
parent
2366c41154
commit
1530d7832f
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user