Obtain BCS engine type through helper method
Change-Id: I8a8bf99f3a73a4293013ab3bc73911e25a12b57e Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
parent
f3c7619dc9
commit
b982fb058c
|
@ -16,5 +16,9 @@ bool isCcs(aub_stream::EngineType engineType) {
|
|||
bool isBcs(aub_stream::EngineType engineType) {
|
||||
return engineType == aub_stream::ENGINE_BCS;
|
||||
}
|
||||
|
||||
aub_stream::EngineType getBcsEngineType(const HardwareInfo &hwInfo) {
|
||||
return aub_stream::EngineType::ENGINE_BCS;
|
||||
}
|
||||
} // namespace EngineHelpers
|
||||
} // namespace NEO
|
||||
|
|
|
@ -10,8 +10,11 @@
|
|||
#include "engine_node.h"
|
||||
|
||||
namespace NEO {
|
||||
struct HardwareInfo;
|
||||
|
||||
namespace EngineHelpers {
|
||||
bool isCcs(aub_stream::EngineType engineType);
|
||||
bool isBcs(aub_stream::EngineType engineType);
|
||||
aub_stream::EngineType getBcsEngineType(const HardwareInfo &hwInfo);
|
||||
}; // namespace EngineHelpers
|
||||
} // namespace NEO
|
||||
|
|
|
@ -72,8 +72,9 @@ CommandQueue::CommandQueue(Context *context, Device *deviceId, const cl_queue_pr
|
|||
if (gpgpuEngine->commandStreamReceiver->peekTimestampPacketWriteEnabled()) {
|
||||
timestampPacketContainer = std::make_unique<TimestampPacketContainer>();
|
||||
}
|
||||
if (device->getExecutionEnvironment()->getHardwareInfo()->capabilityTable.blitterOperationsSupported) {
|
||||
bcsEngine = &device->getDeviceById(0)->getEngine(aub_stream::EngineType::ENGINE_BCS, false);
|
||||
auto hwInfo = device->getExecutionEnvironment()->getHardwareInfo();
|
||||
if (hwInfo->capabilityTable.blitterOperationsSupported) {
|
||||
bcsEngine = &device->getDeviceById(0)->getEngine(EngineHelpers::getBcsEngineType(*hwInfo), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue