release-request-e2e4ef47-6e2d-4fd3-aa91-845ba8826fbc-for-git_pi-release-4349279 snap-temp-L58700000104420312

Change-Id: Ifbd671fa38ac2cfbad6a434de19099133e33cd0b
This commit is contained in:
android-build-team Robot 2017-09-20 08:24:41 +00:00
commit 1b4647f292
2 changed files with 4 additions and 5 deletions

View File

@ -54,8 +54,7 @@ bool AdrenoMemInfo::Init() {
*reinterpret_cast<void **>(&LINK_adreno_get_gpu_pixel_alignment) =
::dlsym(libadreno_utils_, "get_gpu_pixel_alignment");
} else {
ALOGE(" Failed to load libadreno_utils.so");
return false;
ALOGW(" Failed to load libadreno_utils.so");
}
// Check if the overriding property debug.gralloc.gfx_ubwc_disable_
@ -141,6 +140,8 @@ void AdrenoMemInfo::AlignCompressedRGB(int width, int height, int format, unsign
width, height, format, 0, raster_mode, padding_threshold,
reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel);
} else {
*aligned_w = (unsigned int)ALIGN(width, 32);
*aligned_h = (unsigned int)ALIGN(height, 32);
ALOGW("%s: Warning!! compute_compressedfmt_aligned_width_and_height not found", __FUNCTION__);
}
}

View File

@ -84,9 +84,7 @@ bool Allocator::Init() {
}
adreno_helper_ = new AdrenoMemInfo();
if (!adreno_helper_->Init()) {
return false;
}
adreno_helper_->Init();
return true;
}