mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
Add support for multiple buffer objects in drm allocation
Resolves: NEO-3364 Change-Id: I05e8b9a05328298dcc578d62b2aa7b56ffbf4ddc Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
@@ -159,6 +159,13 @@ TEST(DrmBufferObjectSimpleTest, givenInvalidBoWhenPinIsCalledThenErrorIsReturned
|
||||
EXPECT_EQ(EFAULT, ret);
|
||||
}
|
||||
|
||||
TEST(DrmBufferObjectSimpleTest, givenBufferObjectWhenConstructedWithASizeThenTheSizeIsInitialized) {
|
||||
std::unique_ptr<DrmMockCustom> drmMock(new DrmMockCustom);
|
||||
std::unique_ptr<BufferObject> bo(new BufferObject(drmMock.get(), 1, 0x1000));
|
||||
|
||||
EXPECT_EQ(0x1000u, bo->peekSize());
|
||||
}
|
||||
|
||||
TEST(DrmBufferObjectSimpleTest, givenArrayOfBosWhenPinnedThenAllBosArePinned) {
|
||||
std::unique_ptr<uint32_t[]> buff(new uint32_t[256]);
|
||||
std::unique_ptr<DrmMockCustom> mock(new DrmMockCustom);
|
||||
|
||||
Reference in New Issue
Block a user