Commit bd0c4e36 authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov
Browse files

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: da997ebe

 ("vulkan: Add KHR_display extension using DRM [v10]")
Cc: Jason Ekstrand <>
Cc: Keith Packard <>
Reviewed-by: Bas Nieuwenhuizen's avatarBas Nieuwenhuizen <>
Signed-off-by: Emil Velikov's avatarEmil Velikov <>
parent c962a78f
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment