mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Pass timestamp resolution to scheduler through event pool.
Related-To: NEO-2491 Change-Id: I7fb42441320b2b8a63b65ebe1d7f1f435809c80e Signed-off-by: Piotr Zdunowski <piotr.zdunowski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
bb7c4d9222
commit
5e4362258a
@@ -138,6 +138,17 @@ HWCMDTEST_F(IGFX_GEN8_CORE, DeviceQueueHwTest, addLriWithoutArbCheck) {
|
||||
delete mockDeviceQueueHw;
|
||||
}
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, DeviceQueueHwTest, GivenDeviceQueueHWWhenEventPoolIsCreatedThenTimestampResolutionIsSet) {
|
||||
auto timestampResolution = static_cast<float>(device->getProfilingTimerResolution());
|
||||
|
||||
auto deviceQueue = std::unique_ptr<DeviceQueue>(createQueueObject());
|
||||
ASSERT_NE(deviceQueue, nullptr);
|
||||
|
||||
auto eventPoolBuffer = reinterpret_cast<IGIL_EventPool *>(deviceQueue->getEventPoolBuffer()->getUnderlyingBuffer());
|
||||
|
||||
EXPECT_FLOAT_EQ(timestampResolution, eventPoolBuffer->m_TimestampResolution);
|
||||
}
|
||||
|
||||
class DeviceQueueSlb : public DeviceQueueHwTest {
|
||||
public:
|
||||
template <typename Cmd>
|
||||
|
||||
Reference in New Issue
Block a user