compositor-drm: Make composite bypass work on secondary outputs
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 17 Jan 2014 22:22:41 +0000 (14:22 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 17 Jan 2014 22:22:41 +0000 (14:22 -0800)
commit1be87e3c8155204852509f47f8e239b479da6feb
treef0919b526b72d76e67d7391baf20ff97f59bf345
parente61d2f481201b51780e284a417071ed655d0bfe8
compositor-drm: Make composite bypass work on secondary outputs

The opaque region is in surface coordinates, which we compare to the
output region, which is in compositor coordinates.  For non-primary
outputs, that means that the output region is not located at 0,0 but
something like 1920,0 instead.  That means that the output region isn't
contained in the surface opaque region and then we decide we can't scan
out from it.

Instead, compare the surface opaque region to the output region
translated to 0,0.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=7348i5
src/compositor-drm.c