From: Emil Velikov Date: Fri, 19 Apr 2019 11:11:00 +0000 (+0100) Subject: vulkan/wsi: don't use DUMB_CLOSE for normal GEM handles X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd0c4e360d08dc1b1a1433530b389358623783bb;p=mesa.git vulkan/wsi: don't use DUMB_CLOSE for normal GEM handles Currently we get normal GEM handles from PrimeFDToHandle, yet we close then with DUMB_CLOSE. Use GEM_CLOSE instead. Fixes: da997ebec92 ("vulkan: Add KHR_display extension using DRM [v10]") Cc: Jason Ekstrand Cc: Keith Packard Reviewed-by: Bas Nieuwenhuizen Signed-off-by: Emil Velikov --- diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c index 2be20e85046..66e191906fc 100644 --- a/src/vulkan/wsi/wsi_common_display.c +++ b/src/vulkan/wsi/wsi_common_display.c @@ -974,8 +974,8 @@ static void wsi_display_destroy_buffer(struct wsi_display *wsi, uint32_t buffer) { - (void) drmIoctl(wsi->fd, DRM_IOCTL_MODE_DESTROY_DUMB, - &((struct drm_mode_destroy_dumb) { .handle = buffer })); + (void) drmIoctl(wsi->fd, DRM_IOCTL_GEM_CLOSE, + &((struct drm_gem_close) { .handle = buffer })); } static VkResult