diff options
author | Emil Velikov <[email protected]> | 2019-04-19 12:11:00 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2019-04-26 11:26:33 +0100 |
commit | bd0c4e360d08dc1b1a1433530b389358623783bb (patch) | |
tree | 3d753d37da7742a0312d22217590bc10aeef75cc /src | |
parent | c962a78f18284e2971301bf68c9c60500ca398e4 (diff) |
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 <[email protected]>
Cc: Keith Packard <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/wsi/wsi_common_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |