Use GPU pointers for HwPerfCounter.

Related-To: NEO-2872

Change-Id: Ia30f2ee0d96a3da05b8e5ecf55e9b7fb5a34ace7
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
This commit is contained in:
Piotr Fusik
2019-04-18 12:25:29 +02:00
committed by sys_ocldev
parent 086ef7c461
commit 603eee76e5
11 changed files with 209 additions and 190 deletions

View File

@ -1194,13 +1194,8 @@ TEST_F(EventTest, hwPerfCounterMemoryIsPlacedInGraphicsAllocation) {
void *memoryStorage = allocation->getUnderlyingBuffer();
size_t graphicsAllocationSize = allocation->getUnderlyingBufferSize();
uintptr_t perfCounterAddress = reinterpret_cast<uintptr_t>(perfCounter);
uintptr_t graphicsAllocationStart = reinterpret_cast<uintptr_t>(memoryStorage);
if (!((perfCounterAddress >= graphicsAllocationStart) &&
((perfCounterAddress + sizeof(HwPerfCounter)) <= (graphicsAllocationStart + graphicsAllocationSize)))) {
EXPECT_TRUE(false);
}
EXPECT_GE(perfCounter, memoryStorage);
EXPECT_LE(perfCounter + 1, ptrOffset(memoryStorage, graphicsAllocationSize));
}
TEST_F(EventTest, IsPerfCounter_DisabledByNullQueue) {