mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 02:18:05 +08:00
Minor cleanup.
Change-Id: I0f345c4fbf49f6464dce7bafd8b8d59347ff2d77 Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
This commit is contained in:
@@ -1138,13 +1138,8 @@ TEST_F(EventTest, hwTimeStampsMemoryIsPlacedInGraphicsAllocation) {
|
||||
void *memoryStorage = allocation->getUnderlyingBuffer();
|
||||
size_t graphicsAllocationSize = allocation->getUnderlyingBufferSize();
|
||||
|
||||
uintptr_t timeStampAddress = reinterpret_cast<uintptr_t>(timeStamps);
|
||||
uintptr_t graphicsAllocationStart = reinterpret_cast<uintptr_t>(memoryStorage);
|
||||
|
||||
if (!((timeStampAddress >= graphicsAllocationStart) &&
|
||||
((timeStampAddress + sizeof(HwTimeStamps)) <= (graphicsAllocationStart + graphicsAllocationSize)))) {
|
||||
EXPECT_TRUE(false);
|
||||
}
|
||||
EXPECT_GE(timeStamps, memoryStorage);
|
||||
EXPECT_LE(timeStamps + 1, ptrOffset(memoryStorage, graphicsAllocationSize));
|
||||
}
|
||||
|
||||
TEST_F(EventTest, getHwPerfCounterReturnsValidPointer) {
|
||||
|
||||
Reference in New Issue
Block a user