hwc: protect on-screen gscaler buffers
authorGreg Hackmann <ghackmann@google.com>
Wed, 10 Oct 2012 23:57:24 +0000 (16:57 -0700)
committerGreg Hackmann <ghackmann@google.com>
Fri, 12 Oct 2012 21:32:08 +0000 (14:32 -0700)
commitde6a087e62a263aab671034fb6f116c83c40a4cf
tree13f9e7eb875600e47fdfc8801d0c9310f68d90be
parenta37db02bd1f444fc949270cd0f8d6a9d178b8965
hwc: protect on-screen gscaler buffers

If the display pipeline gets too far ahead then it may try to reuse a
Gscaler destination buffer while it's still on-screen.  Protect against
by setting the destination buffer's acquire fence, using the fence
obtained when it was sent on-screen.

Bug: 7319537
Change-Id: Ibac5da4b3e4b50c2413214a390abea64c9c56868
Signed-off-by: Greg Hackmann <ghackmann@google.com>
libhwc/hwc.cpp