compositor-drm: Return FB directly from render
authorDaniel Stone <daniels@collabora.com>
Tue, 4 Apr 2017 16:54:30 +0000 (17:54 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 7 Apr 2017 09:45:12 +0000 (12:45 +0300)
commit95d48a2a88688c01d5a804935e84bd8e02f7905e
tree40f13424c1e169f016e1d21c64706770478051d5
parent4e84f7dd32b54a05eabd23839e1e6ac14459712e
compositor-drm: Return FB directly from render

Instead of setting state members directly in the drm_output_render
functions (to paint using Pixman or GL), just return a drm_fb, and let
the core function place it in state.

This brings damage handling in line with repaint state, so we do not
clear damage if repaint fails.

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