summaryrefslogtreecommitdiff
path: root/libdrm/intel
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-08-26 14:28:08 -0400
committerKristian Høgsberg <krh@redhat.com>2008-08-26 14:28:25 -0400
commit0239594fc318c2b55bbfbea27f23218f6d7a4b34 (patch)
tree3ab7f44dce5c97b3f0ffa03b57e8fac892bb5a5e /libdrm/intel
parentc8fd8d3a0d37dc09165ac77c7d38938ef9942011 (diff)
[intel_bufmgr_gem] Remember global name when creating buffer from name.
Diffstat (limited to 'libdrm/intel')
-rw-r--r--libdrm/intel/intel_bufmgr_gem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdrm/intel/intel_bufmgr_gem.c b/libdrm/intel/intel_bufmgr_gem.c
index 48a47701..8634fdf8 100644
--- a/libdrm/intel/intel_bufmgr_gem.c
+++ b/libdrm/intel/intel_bufmgr_gem.c
@@ -369,6 +369,7 @@ intel_bo_gem_create_from_name(dri_bufmgr *bufmgr, const char *name,
bo_gem->refcount = 1;
bo_gem->validate_index = -1;
bo_gem->gem_handle = open_arg.handle;
+ bo_gem->global_name = handle;
DBG("bo_create_from_handle: %d (%s)\n", handle, bo_gem->name);