Remove workaround for HWASAN bug.
Bug: 193487656
Change-Id: I642ada653183b4ce2156228dfbb0473774be9d2c
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 81f20ed..02d5b39 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -5452,15 +5452,12 @@
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;