Simplify DRM allocation constructors.

Change-Id: I2c477ce85f4748f0637451a405f7949aa829ba81
This commit is contained in:
Mrozek, Michal
2019-02-20 15:58:11 +01:00
committed by sys_ocldev
parent cac558b0a9
commit a1d4c07f45
3 changed files with 4 additions and 6 deletions

View File

@@ -707,6 +707,7 @@ TEST_F(DrmMemoryManagerTest, GivenPointerAndSizeWhenAskedToCreateGrahicsAllocati
auto allocation = memoryManager->createGraphicsAllocation(handleStorage, size, ptr);
EXPECT_EQ(reinterpret_cast<void *>(allocation->getGpuAddress()), ptr);
EXPECT_EQ(ptr, allocation->getUnderlyingBuffer());
EXPECT_EQ(size, allocation->getUnderlyingBufferSize());