summaryrefslogtreecommitdiff
path: root/libdrm/intel/intel_bufmgr_gem.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2008-09-30 16:35:26 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-09-30 16:35:53 -0700
commitaf2323b4b3b76070fb453531147a8956161b3718 (patch)
treec82d5cbe396980cce516418fd2c2e6aee441108d /libdrm/intel/intel_bufmgr_gem.c
parent7b3aa626482963cc52086da629f682fce2c7322c (diff)
intel bufmgr: reinstate buffer handle tracking
We need a way of getting at the underlying handle for use with mode setting. We can either export it in the dri_bo object or provide a new callback to get it.
Diffstat (limited to 'libdrm/intel/intel_bufmgr_gem.c')
-rw-r--r--libdrm/intel/intel_bufmgr_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm/intel/intel_bufmgr_gem.c b/libdrm/intel/intel_bufmgr_gem.c
index 4ca49d0a..70cdca74 100644
--- a/libdrm/intel/intel_bufmgr_gem.c
+++ b/libdrm/intel/intel_bufmgr_gem.c
@@ -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;