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

Commit d24a5e7b authored by Florian Mayer's avatar Florian Mayer
Browse files

Remove workaround for HWASAN bug.

Bug: 193487656
Change-Id: I642ada653183b4ce2156228dfbb0473774be9d2c
parent 9666ac59
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -5452,15 +5452,12 @@ status_t SurfaceFlinger::onTransact(uint32_t code, const Parcel& data, Parcel* r
                    mClientColorMatrix = mat4();
                }

                // TODO(b/193487656): Restore once HWASan bug is fixed.
#if 0
                // Check that supplied matrix's last row is {0,0,0,1} so we can avoid
                // the division by w in the fragment shader
                float4 lastRow(transpose(mClientColorMatrix)[3]);
                if (any(greaterThan(abs(lastRow - float4{0, 0, 0, 1}), float4{1e-4f}))) {
                    ALOGE("The color transform's last row must be (0, 0, 0, 1)");
                }
#endif

                updateColorMatrixLocked();
                return NO_ERROR;