vulkan/wsi: disable the hardware cursor
authorAndres Rodriguez <andresx7@gmail.com>
Tue, 10 Sep 2019 18:30:35 +0000 (14:30 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jan 2020 17:15:52 +0000 (17:15 +0000)
commit51de5d5ac65ebeaaebe716291be19fd36692f5cb
tree54a58363546f6cd3013a1cb8809df54adae99fca
parentad820d5aca1b5d2133a7e7bd380c91401cd1c1e3
vulkan/wsi: disable the hardware cursor

Ensure the hardware cursor is disabled when we set the mode for a
VkDisplayKHR object. The extension doesn't expose any mechanisms to
program the hardware cursor, so we need to ensure it is hidden.

Currently, it seems like X is responsible for disabling the cursor
before handing over the lease. But that seems a little frail, and we
should be disabling the cursor ourselves so it works correctly
independently of how the lease was prepared for us.

Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1922>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1922>
src/vulkan/wsi/wsi_common_display.c