backend-drm: Check pixel format before constructing the zpos candidate list
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 24 Oct 2019 11:49:33 +0000 (14:49 +0300)
committerDaniel Stone <daniels@collabora.com>
Mon, 11 Nov 2019 16:51:48 +0000 (16:51 +0000)
commit26dcce06d7e2975ae73599d8fdacb1b6fa38aac3
tree2d932e221be1401330e8c0e61c1a3b0f2d9f3c2a
parent3b13f56a1d0adf7a988026795f23c3572bff1c96
backend-drm: Check pixel format before constructing the zpos candidate list

We can determine if the pixel format used by the clients buffer is
scan-out capable much sooner, so do it when constructing the zpos
candidate list. It also removes the checks in their respective
prepare_ functions.

Avoids the situation where we'd need to retrieve the DRM framebuffer each time
when checking the pixel format.

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