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) {
|
bool isBcs(aub_stream::EngineType engineType) {
|
||||||
return engineType == aub_stream::ENGINE_BCS;
|
return engineType == aub_stream::ENGINE_BCS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aub_stream::EngineType getBcsEngineType(const HardwareInfo &hwInfo) {
|
||||||
|
return aub_stream::EngineType::ENGINE_BCS;
|
||||||
|
}
|
||||||
} // namespace EngineHelpers
|
} // namespace EngineHelpers
|
||||||
} // namespace NEO
|
} // namespace NEO
|
||||||
|
|
|
@ -10,8 +10,11 @@
|
||||||
#include "engine_node.h"
|
#include "engine_node.h"
|
||||||
|
|
||||||
namespace NEO {
|
namespace NEO {
|
||||||
|
struct HardwareInfo;
|
||||||
|
|
||||||
namespace EngineHelpers {
|
namespace EngineHelpers {
|
||||||
bool isCcs(aub_stream::EngineType engineType);
|
bool isCcs(aub_stream::EngineType engineType);
|
||||||
bool isBcs(aub_stream::EngineType engineType);
|
bool isBcs(aub_stream::EngineType engineType);
|
||||||
|
aub_stream::EngineType getBcsEngineType(const HardwareInfo &hwInfo);
|
||||||
}; // namespace EngineHelpers
|
}; // namespace EngineHelpers
|
||||||
} // namespace NEO
|
} // namespace NEO
|
||||||
|
|
|
@ -72,8 +72,9 @@ CommandQueue::CommandQueue(Context *context, Device *deviceId, const cl_queue_pr
|
||||||
if (gpgpuEngine->commandStreamReceiver->peekTimestampPacketWriteEnabled()) {
|
if (gpgpuEngine->commandStreamReceiver->peekTimestampPacketWriteEnabled()) {
|
||||||
timestampPacketContainer = std::make_unique<TimestampPacketContainer>();
|
timestampPacketContainer = std::make_unique<TimestampPacketContainer>();
|
||||||
}
|
}
|
||||||
if (device->getExecutionEnvironment()->getHardwareInfo()->capabilityTable.blitterOperationsSupported) {
|
auto hwInfo = device->getExecutionEnvironment()->getHardwareInfo();
|
||||||
bcsEngine = &device->getDeviceById(0)->getEngine(aub_stream::EngineType::ENGINE_BCS, false);
|
if (hwInfo->capabilityTable.blitterOperationsSupported) {
|
||||||
|
bcsEngine = &device->getDeviceById(0)->getEngine(EngineHelpers::getBcsEngineType(*hwInfo), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue