diff options
author | Ramakant Singh <ramakant@codeaurora.org> | 2020-06-29 09:34:14 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-11-23 21:48:01 -0800 |
commit | 7e5aad28206f62ff4e809373d22174a98472ab76 (patch) | |
tree | 9fe4574184f4e185c627a1cfce00f622c819bf28 | |
parent | 916a061201e4073f975fa14fc462eca2700f7794 (diff) |
gralloc: Check for UBWC support during init
Crs-fixed: 2720776
Change-Id: I78b264d6d533940ba171f5aa3dd7c15907d57150
-rw-r--r-- | gralloc/gr_adreno_info.cpp | 7 |
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; } |