Allow Device creating multiple CSRs [3/n]

Add CSR from Device to CommandQueue

Change-Id: Iaccf3c73d25e357242837677777d0513e81f520e
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2018-11-22 13:57:10 +01:00
committed by sys_ocldev
parent fbf0d44fff
commit 3ad33bf1b8
72 changed files with 239 additions and 242 deletions

View File

@@ -250,4 +250,10 @@ GFXCORE_FAMILY Device::getRenderCoreFamily() const {
bool Device::isSourceLevelDebuggerActive() const {
return deviceInfo.sourceLevelDebuggerActive;
}
void Device::initMaxPowerSavingMode() {
for (auto &engine : engines) {
engine.commandStreamReceiver->peekKmdNotifyHelper()->initMaxPowerSavingMode();
}
}
} // namespace OCLRT

View File

@@ -67,13 +67,14 @@ class Device : public BaseObject<_cl_device_id> {
return engineType;
}
void initMaxPowerSavingMode();
void *getSLMWindowStartAddress();
void prepareSLMWindow();
void setForce32BitAddressing(bool value) {
deviceInfo.force32BitAddressess = value;
}
CommandStreamReceiver &getCommandStreamReceiver();
EngineControl &getEngine(size_t engineId);
volatile uint32_t *getTagAddress() const;
@@ -176,8 +177,8 @@ inline void Device::getCap(const void *&src,
retSize = size = DeviceInfoTable::Map<Param>::size;
}
inline CommandStreamReceiver &Device::getCommandStreamReceiver() {
return *engines[0].commandStreamReceiver;
inline EngineControl &Device::getEngine(size_t engineId) {
return engines[engineId];
}
inline volatile uint32_t *Device::getTagAddress() const {