Allow Device creating multiple CSRs [1/n]

Change-Id: Ie5d8d89aa388c608d5464919059c28a054ac9b1e
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2018-11-20 13:58:15 +01:00
committed by sys_ocldev
parent c4239dcd3d
commit af46d88fc1
23 changed files with 137 additions and 106 deletions

View File

@@ -165,7 +165,7 @@ class Device : public BaseObject<_cl_device_id> {
EngineType engineType;
ExecutionEnvironment *executionEnvironment = nullptr;
uint32_t deviceIndex = 0u;
CommandStreamReceiver *commandStreamReceiver = nullptr;
std::vector<CommandStreamReceiver *> commandStreamReceiver;
};
template <cl_device_info Param>
@@ -177,7 +177,7 @@ inline void Device::getCap(const void *&src,
}
inline CommandStreamReceiver &Device::getCommandStreamReceiver() {
return *this->commandStreamReceiver;
return *this->commandStreamReceiver[0];
}
inline volatile uint32_t *Device::getTagAddress() const {