summaryrefslogtreecommitdiff
path: root/gralloc/gr_adreno_info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gralloc/gr_adreno_info.cpp')
-rw-r--r--gralloc/gr_adreno_info.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gralloc/gr_adreno_info.cpp b/gralloc/gr_adreno_info.cpp
index 924020ae..11516a14 100644
--- a/gralloc/gr_adreno_info.cpp
+++ b/gralloc/gr_adreno_info.cpp
@@ -77,6 +77,12 @@ AdrenoMemInfo::AdrenoMemInfo() {
} else {
ALOGE(" Failed to load libadreno_utils.so");
}
+ char property[PROPERTY_VALUE_MAX];
+ property_get(DISABLE_UBWC_PROP, property, "0");
+ if (!(strncmp(property, "1", PROPERTY_VALUE_MAX)) ||
+ !(strncmp(property, "true", PROPERTY_VALUE_MAX))) {
+ gfx_ubwc_disable_ = true;
+ }
}
AdrenoMemInfo::~AdrenoMemInfo() {
@@ -86,7 +92,6 @@ AdrenoMemInfo::~AdrenoMemInfo() {
}
void AdrenoMemInfo::AdrenoSetProperties(gralloc::GrallocProperties props) {
- gfx_ubwc_disable_ = props.ubwc_disable;
gfx_ahardware_buffer_disable_ = props.ahardware_buffer_disable;
}