libgralloc: Enable UBWC output buffers for Writeback displays

While allocating output buffers for writeback display, check MDP
support for writeback UBWC format before assigning the format.

Change-Id: I97bb320ec89d60453c4c7e3dc5a2b5c2a18394dd
This commit is contained in:
Jeykumar Sankaran
2015-12-14 18:36:27 -08:00
committed by Gerrit - the friendly Code Review server
parent 13f964b7b8
commit 9bc1a783bf
5 changed files with 20 additions and 5 deletions

View File

@@ -61,11 +61,12 @@ int querySDEInfo(HWQueryType type, int *value) {
case HAS_MACRO_TILE:
featureName = "tile_format";
break;
case HAS_UBWC:
featureName = "ubwc";
break;
case HAS_WB_UBWC:
featureName = "wb_ubwc";
break;
default:
ALOGE("Invalid query type %d", type);
return -EINVAL;