On Wed, 11 Jul 2018 11:41:30 +0100 Daniel Stone <dani...@collabora.com> wrote:
> This will never work, so don't even try to do it. > True, even more generally than just solid surfaces which are a special case of a surface that currently does not have a buffer (anymore). This catches also all wl_shm surfaces with gl-renderer that are larger than possible cursor size. In fact, if we find that we could promote a black solid surface to scanout_plane if it had a buffer, we might be able to do that: turn off the primary plane and let crtc produce black there. But that's for the future. :-) > Signed-off-by: Daniel Stone <dani...@collabora.com> > --- > libweston/compositor-drm.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c > index 65079eac0..c7ca6ef79 100644 > --- a/libweston/compositor-drm.c > +++ b/libweston/compositor-drm.c > @@ -3348,6 +3348,9 @@ drm_output_propose_state(struct weston_output > *output_base, > if (ev->output_mask != (1u << output->base.id)) > force_renderer = true; > > + if (!ev->surface->buffer_ref.buffer) > + force_renderer = true; > + > /* Ignore views we know to be totally occluded. */ > pixman_region32_init(&clipped_view); > pixman_region32_intersect(&clipped_view, Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk> Thanks, pq
pgpEWbKEqd5Fe.pgp
Description: OpenPGP digital signature
_______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel