vulkan/wsi: don't use DUMB_CLOSE for normal GEM handles
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 19 Apr 2019 11:11:00 +0000 (12:11 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 26 Apr 2019 10:26:33 +0000 (11:26 +0100)
commitbd0c4e360d08dc1b1a1433530b389358623783bb
tree3d753d37da7742a0312d22217590bc10aeef75cc
parentc962a78f18284e2971301bf68c9c60500ca398e4
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 <jason@jlekstrand.net>
Cc: Keith Packard <keithp@keithp.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/vulkan/wsi/wsi_common_display.c