11da42b2f8
Extract the code to initialize a single GPU cursor support into its own function. The new function will be used by GPU hotplug in the future. This is a pure refactoring without any behavioral changes. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1097 Backported from 4cc29cfb619102a8e7cd32731205c8018d83544e.