Enable blitter for platforms without timestamp packet writes

Change-Id: Ib37306ad44b19f57901416f6b2d11be93978b339
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
Related-To: NEO-4233
This commit is contained in:
Maciej Dziuban
2020-05-21 16:35:20 +02:00
committed by sys_ocldev
parent 546c81af70
commit 9bafefe2bc
5 changed files with 58 additions and 6 deletions

View File

@ -1117,3 +1117,18 @@ TEST(CommandQueue, GivenCommandQueueWhenEnqueueInitDispatchGlobalsCalledThenSucc
nullptr);
EXPECT_EQ(CL_SUCCESS, result);
}
TEST(CommandQueue, givenBlitterOperationsSupportedWhenCreatingQueueThenTimestampPacketIsCreated) {
DebugManagerStateRestore restore;
DebugManager.flags.EnableTimestampPacket.set(0);
MockContext context{};
HardwareInfo *hwInfo = context.getDevice(0)->getRootDeviceEnvironment().getMutableHardwareInfo();
if (!HwHelper::get(hwInfo->platform.eDisplayCoreFamily).obtainBlitterPreference(*hwInfo)) {
GTEST_SKIP();
}
hwInfo->capabilityTable.blitterOperationsSupported = true;
MockCommandQueue cmdQ(&context, context.getDevice(0), 0);
EXPECT_NE(nullptr, cmdQ.timestampPacketContainer);
}