[intel_bufmgr_gem] Fix flink buffer name caching (#17085, #17092).

Store the global name in global_name, don't overwrite the gem_handle.
main
Kristian Høgsberg 2008-08-12 22:22:15 -04:00
parent 966c783e96
commit b0e6882946
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}