diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-08-12 22:22:15 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-08-12 22:22:55 -0400 |
commit | b0e68829462aad00ce68be998da6313bca754e9a (patch) | |
tree | 198822cb830d3a82ad16f499068e3ac511eec154 /libdrm | |
parent | 966c783e96b3f8ae0271db3dd6862177c659ab13 (diff) |
[intel_bufmgr_gem] Fix flink buffer name caching (#17085, #17092).
Store the global name in global_name, don't overwrite the gem_handle.
Diffstat (limited to 'libdrm')
-rw-r--r-- | libdrm/intel/intel_bufmgr_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdrm/intel/intel_bufmgr_gem.c b/libdrm/intel/intel_bufmgr_gem.c index 54c800aa..48a47701 100644 --- a/libdrm/intel/intel_bufmgr_gem.c +++ b/libdrm/intel/intel_bufmgr_gem.c @@ -844,10 +844,10 @@ dri_gem_flink(dri_bo *bo, uint32_t *name) ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_GEM_FLINK, &flink); if (ret != 0) return -errno; - bo_gem->gem_handle = flink.name; + bo_gem->global_name = flink.name; } - *name = bo_gem->gem_handle; + *name = bo_gem->global_name; return 0; } |