OSDN Git Service

drm_hwcomposer: fix logic error in premult blending
authorHaixia Shi <hshi@chromium.org>
Wed, 14 Oct 2015 01:27:10 +0000 (18:27 -0700)
committerHaixia Shi <hshi@chromium.org>
Wed, 14 Oct 2015 01:27:10 +0000 (18:27 -0700)
commit19742e39efa8658fdb884fa614a695a7ff8c0888
treee36addc63217dbd1e82e3a1025b053a7f38fe8ce
parent3a8773c4747b9e9077bfaea4ab18225077ef90c6
drm_hwcomposer: fix logic error in premult blending

In case of premult blending, the tex.rgb is premultiplied with tex.a,
but it still needs to be multiplied by the plane alpha.

BUG=24914993
TEST=verify the blending artifacts are fixed

Change-Id: I9135f91d52b2d256a71895e13caf2158286de992
glworker.cpp