gralloc: Disable UBWC on FrameBuffer by default
Disable UBWC on FrameBuffer by default. It will be enabled only when
"debug.gralloc.enable_fb_ubwc" system prop is set.
Change-Id: I6f026ca72716fb5c0bd04d756cc44ddd3c14fdd5
diff --git a/libgralloc/gpu.cpp b/libgralloc/gpu.cpp
index 8b512bf..a0d7d8d 100644
--- a/libgralloc/gpu.cpp
+++ b/libgralloc/gpu.cpp
@@ -315,6 +315,7 @@
(!strncasecmp(property,"true", PROPERTY_VALUE_MAX )))) {
useFbMem = true;
} else {
+ usage &= ~GRALLOC_USAGE_PRIVATE_ALLOC_UBWC;
if (property_get("debug.gralloc.enable_fb_ubwc", isUBWC, NULL) > 0){
if ((!strncmp(isUBWC, "1", PROPERTY_VALUE_MAX)) ||
(!strncasecmp(isUBWC, "true", PROPERTY_VALUE_MAX))) {