Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c63aae3e authored by Steve Kondik's avatar Steve Kondik
Browse files

Conditionally revert "Revert "sf: Make sure HWC_BLENDING_NONE is set for opaque layer""

 * This behavior is REQUIRED on newer Qualcomm hardware, or undefined
   behavior such as artifacts or garbage will appear. Scope this revert
   to QCOM_BSP_LEGACY only!

This reverts commit 18161438.

Change-Id: I1f5bb57d1fa8750e854f01884bb675e4b9f2bed5
parent 14c10e3e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -529,7 +529,12 @@ void Layer::setGeometry(

    // this gives us only the "orientation" component of the transform
    const State& s(getDrawingState());
    if (!isOpaque(s) || s.alpha != 0xFF) {
#ifdef QCOM_BSP_LEGACY
    if (!isOpaque(s))
#else
    if (!isOpaque(s) || s.alpha != 0xFF)
#endif
    {
        layer.setBlending(mPremultipliedAlpha ?
                HWC_BLENDING_PREMULT :
                HWC_BLENDING_COVERAGE);