From bd0c4e360d08dc1b1a1433530b389358623783bb Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 19 Apr 2019 12:11:00 +0100 Subject: 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 --- src/vulkan/wsi/wsi_common_display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vulkan') 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 -- cgit v1.2.3