Improve EnableTimestampPacket debug variable usage

Change-Id: I864f0dc756a7fe17a08d1bcca2d91e9b78fb730a
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2018-10-18 13:40:53 +02:00
parent de5ed6509f
commit ef65e6433e
8 changed files with 35 additions and 8 deletions

View File

@@ -34,12 +34,20 @@ size_t CommandStreamReceiverHw<GfxFamily>::getSshHeapSize() {
template <typename GfxFamily>
CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiverHw(const HardwareInfo &hwInfoIn, ExecutionEnvironment &executionEnvironment)
: CommandStreamReceiver(executionEnvironment), hwInfo(hwInfoIn),
localMemoryEnabled(HwHelper::get(hwInfo.pPlatform->eRenderCoreFamily).isLocalMemoryEnabled(hwInfo)) {
: CommandStreamReceiver(executionEnvironment), hwInfo(hwInfoIn) {
auto &hwHelper = HwHelper::get(hwInfo.pPlatform->eRenderCoreFamily);
localMemoryEnabled = hwHelper.isLocalMemoryEnabled(hwInfo);
requiredThreadArbitrationPolicy = PreambleHelper<GfxFamily>::getDefaultThreadArbitrationPolicy();
resetKmdNotifyHelper(new KmdNotifyHelper(&(hwInfoIn.capabilityTable.kmdNotifyProperties)));
flatBatchBufferHelper.reset(new FlatBatchBufferHelperHw<GfxFamily>(executionEnvironment));
defaultSshSize = getSshHeapSize();
timestampPacketWriteEnabled = hwHelper.timestampPacketWriteSupported();
if (DebugManager.flags.EnableTimestampPacket.get() != -1) {
timestampPacketWriteEnabled = !!DebugManager.flags.EnableTimestampPacket.get();
}
}
template <typename GfxFamily>