Merge "common : Enable ubwc based on hardware support"

This commit is contained in:
Linux Build Service Account 2016-01-14 21:19:06 -08:00 committed by Gerrit - the friendly Code Review server
commit e4974bc849
1 changed files with 16 additions and 0 deletions

View File

@ -270,6 +270,22 @@ do
fi
done
# check for mdp caps
setprop debug.gralloc.gfx_ubwc_disable 1
file=/sys/class/graphics/fb0/mdp/caps
if [ -f "$file" ]
then
cat $file | while read line; do
case "$line" in
*"ubwc"*)
setprop debug.gralloc.enable_fb_ubwc 1
setprop debug.gralloc.gfx_ubwc_disable 0
esac
done
fi
file=/sys/class/graphics/fb0
if [ -d "$file" ]
then