mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
546c81af70
commit
9bafefe2bc
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user