Register Blit CSR to CommandQueue

Change-Id: Ib22ef934492b702990ca549bab576993b0684e98
Related-To: NEO-3020
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-07-16 09:23:02 +02:00
committed by sys_ocldev
parent e4e5b5ccdf
commit 23e9e9e02e
13 changed files with 77 additions and 47 deletions

View File

@@ -71,6 +71,9 @@ CommandQueue::CommandQueue(Context *context, Device *deviceId, const cl_queue_pr
if (getGpgpuCommandStreamReceiver().peekTimestampPacketWriteEnabled()) {
timestampPacketContainer = std::make_unique<TimestampPacketContainer>();
}
if (device->getExecutionEnvironment()->getHardwareInfo()->capabilityTable.blitterOperationsSupported) {
bcsEngine = &device->getEngine(aub_stream::EngineType::ENGINE_BCS, false);
}
}
processProperties(properties);
@@ -107,6 +110,13 @@ CommandStreamReceiver &CommandQueue::getGpgpuCommandStreamReceiver() const {
return *gpgpuEngine->commandStreamReceiver;
}
CommandStreamReceiver *CommandQueue::getBcsCommandStreamReceiver() const {
if (bcsEngine) {
return bcsEngine->commandStreamReceiver;
}
return nullptr;
}
uint32_t CommandQueue::getHwTag() const {
uint32_t tag = *getHwTagAddress();
return tag;