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

Commit e9abc17a authored by Arne Coucheron's avatar Arne Coucheron
Browse files

surfaceflinger: Add missing code in opaque check

 * Add back the missing code for non QTI_BSP cases. Without it,
   this whole section is skipped, and horrible black screen flashing
   is seen on QCOM A fam, and probably on other platforms as well.

Change-Id: Ie39de7df4f1276be68aa4b1668e687f7a41b5625
parent 66a7233a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -542,8 +542,12 @@ void Layer::setGeometry(
                " %s (%d)", mName.string(), to_string(blendMode).c_str(),
                to_string(error).c_str(), static_cast<int32_t>(error));
    }
#elif defined(QTI_BSP) && !defined(QCOM_BSP_LEGACY)
#else
#if defined(QTI_BSP) && !defined(QCOM_BSP_LEGACY)
    if (!isOpaque(s)) {
#else
    if (!isOpaque(s) || s.alpha != 0xFF) {
#endif
        layer.setBlending(mPremultipliedAlpha ?
                HWC_BLENDING_PREMULT :
                HWC_BLENDING_COVERAGE);