return 1;
}
+static int tbm_bufmgr_emulator_bo_lock(tbm_bo bo)
+{
+ TBM_EMULATOR_LOG_DEBUG("bo = %p", bo);
+ return 1;
+}
+
+static int tbm_bufmgr_emulator_bo_unlock(tbm_bo bo)
+{
+ TBM_EMULATOR_LOG_DEBUG("bo = %p", bo);
+ return 1;
+}
+
static int tbm_bufmgr_emulator_bo_get_global_key(tbm_bo bo)
{
struct vigs_drm_surface *sfc;
goto fail;
}
- backend->flags = 0;
+ backend->flags = TBM_CACHE_CTRL_BACKEND|TBM_LOCK_CTRL_BACKEND;
backend->priv = (void*)drm_dev;
backend->bufmgr_deinit = tbm_bufmgr_emulator_deinit;
backend->bo_size = tbm_bufmgr_emulator_bo_size;
backend->bo_unmap = tbm_bufmgr_emulator_bo_unmap;
backend->bo_cache_flush = tbm_bufmgr_emulator_bo_cache_flush;
backend->bo_get_global_key = tbm_bufmgr_emulator_bo_get_global_key;
- backend->bo_lock = NULL;
- backend->bo_unlock = NULL;
+ backend->bo_lock = tbm_bufmgr_emulator_bo_lock;
+ backend->bo_unlock = tbm_bufmgr_emulator_bo_unlock;
if (!tbm_backend_init(bufmgr, backend)) {
TBM_EMULATOR_LOG_ERROR("tbm_backend_init failed");