Change-Id: I4ae6893bb9e1f168a5046afa375bb7cac103c7dd
if (alloc_size != ret_size)
printf("The alloc_size is different from return value of the tbm_bo_size().");
- for (j = TBM_DEVICE_DEFAULT; j <= TBM_DEVICE_MM; j++) {
+ for (j = TBM_DEVICE_DEFAULT; j <= TBM_DEVICE_3D; j++) {
bo_handle[i] = tbm_bo_get_handle(bo[i], j);
EXPECT_TRUE(bo_handle[i].ptr != NULL);
bo_handle[i] = tbm_bo_map(bo[i], j, TBM_OPTION_READ|TBM_OPTION_WRITE);
ret = tbm_bo_unmap(bo);
ASSERT_TRUE(ret != 0);
+#if 0
bo_handle = tbm_bo_map(bo, TBM_DEVICE_MM, TBM_OPTION_READ);
+ if (!bo_handle.ptr)
ASSERT_TRUE(bo_handle.ptr != NULL);
ret = tbm_bo_unmap(bo);
ASSERT_TRUE(ret != 0);
+#endif
tbm_bo_unref(bo);
}
bo_handle = tbm_bo_get_handle(bo, TBM_DEVICE_3D);
ASSERT_TRUE(bo_handle.ptr != NULL);
+#if 0
bo_handle = tbm_bo_get_handle(bo, TBM_DEVICE_MM);
ASSERT_TRUE(bo_handle.ptr != NULL);
+#endif
tbm_bo_unref(bo);
}