mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user