compositor-drm: Use drm_fb for cursor buffers
authorDaniel Stone <daniels@collabora.com>
Tue, 4 Apr 2017 16:54:27 +0000 (17:54 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 7 Apr 2017 09:45:12 +0000 (12:45 +0300)
commite42568313c2852c7e58b66ee09dc70fbe66b95f6
tree75e93e53a521d96c451d59ee3b7a5952f11b33cf
parent6e7a961d43ca4f8a4708118c2c770f3ec769c082
compositor-drm: Use drm_fb for cursor buffers

Now that we have better types in drm_fb, use it for cursor buffers as
well. This gives us easier refcounting for our cursors, as well as a
unified buffer-destruction path.

Currently this makes no difference, as the KMS legacy cursor update API
uses GEM names directly, and never touches DRM FBs. However, the cursor
plane becomes a regular KMS plane under atomic, at which point we
require DRM FBs.

Take the opportunity to move to drm_fb ahead of time.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
libweston/compositor-drm.c