From b0e68829462aad00ce68be998da6313bca754e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 12 Aug 2008 22:22:15 -0400 Subject: [intel_bufmgr_gem] Fix flink buffer name caching (#17085, #17092). Store the global name in global_name, don't overwrite the gem_handle. --- libdrm/intel/intel_bufmgr_gem.c | 4 ++-- 1 file 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; } -- cgit v1.2.3