intel bufmgr: reinstate buffer handle tracking
[profile/ivi/libdrm.git] / libdrm / intel / intel_bufmgr_gem.c
index 4ca49d0..70cdca7 100644 (file)
@@ -316,7 +316,7 @@ dri_gem_bo_alloc(dri_bufmgr *bufmgr, const char *name,
 
        ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_CREATE, &create);
        bo_gem->gem_handle = create.handle;
-       //bo_gem->bo.handle = bo_gem->gem_handle;
+       bo_gem->bo.handle = bo_gem->gem_handle;
        if (ret != 0) {
            free(bo_gem);
            return NULL;