libgralloc: Disable UBWC output buffers for Writeback displays
While allocating output buffers for writeback display, check video encoder capability for UBWC as well before assigning the format. Change-Id: I1ad84bec7ef5a55527fe67c72ecbb7fe9fe914fb
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
9b50abe92f
commit
f8d1c40258
@@ -280,6 +280,7 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage,
|
||||
grallocFormat = HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS_UBWC;
|
||||
else if(usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) {
|
||||
if(MDPCapabilityInfo::getInstance().isWBUBWCSupportedByMDP() &&
|
||||
!IAllocController::getInstance()->isDisableUBWCForEncoder() &&
|
||||
usage & GRALLOC_USAGE_HW_COMPOSER)
|
||||
grallocFormat = HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS_UBWC;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user