backend-drm: Pass the drm_fb to each prepare_overlay/scanout_view functions
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 31 Oct 2019 10:48:35 +0000 (12:48 +0200)
committerDaniel Stone <daniels@collabora.com>
Mon, 11 Nov 2019 16:51:48 +0000 (16:51 +0000)
commiteef694547d85e2a0e13cc7a173478072559d616f
treed16f1fe1216508c77d28fecd566b0b3332c9c0fe
parent677e4598d95cb18e81820a4eb7dffcef24fb0c02
backend-drm: Pass the drm_fb to each prepare_overlay/scanout_view functions

Avoids the need to retrieve the DRM framebuffer in each function and
re-uses the one got before constructing the zpos candidate list.

Takes another reference for the scanout as to live the state, like
there's one for the overlay bit.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
libweston/backend-drm/state-propose.c