intel: Set the public handle after opening by name
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Feb 2011 09:27:05 +0000 (09:27 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Feb 2011 10:15:31 +0000 (10:15 +0000)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c

index 72c8731..092b56a 100644 (file)
@@ -816,6 +816,7 @@ drm_intel_bo_gem_create_from_name(drm_intel_bufmgr *bufmgr,
        atomic_set(&bo_gem->refcount, 1);
        bo_gem->validate_index = -1;
        bo_gem->gem_handle = open_arg.handle;
+       bo_gem->bo.handle = open_arg.handle;
        bo_gem->global_name = handle;
        bo_gem->reusable = 0;