diff options
author | Mathias Agopian <mathias@google.com> | 2011-09-06 17:13:29 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-09-06 17:13:29 -0700 |
commit | e0edfd5c677dd606d19ac7b838ce365db131fc8a (patch) | |
tree | 4407c821477fa108ced6f2dcdec3fd8f9b92ef87 /hwc | |
parent | d2a9fdd97d1d78b49e304894fe6face2efa5e353 (diff) | |
download | hardware_ti_omap4xxx-e0edfd5c677dd606d19ac7b838ce365db131fc8a.tar.gz hardware_ti_omap4xxx-e0edfd5c677dd606d19ac7b838ce365db131fc8a.tar.bz2 hardware_ti_omap4xxx-e0edfd5c677dd606d19ac7b838ce365db131fc8a.zip |
configure the overlays with an opaque format when the layer is opaque
previously if a layer was configured as RGBA but was not blended,
hwc would blend the layer anyways (based on the format).
Change-Id: I174d39e9c16f5bf1cc989d94823cb9e4656a61b4
Diffstat (limited to 'hwc')
-rw-r--r-- | hwc/hwc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -273,6 +273,10 @@ omap4_hwc_setup_layer(omap4_hwc_device_t *hwc_dev, struct dss2_ovl_info *ovl, //dump_layer(layer); + if (format == HAL_PIXEL_FORMAT_BGRA_8888 && !is_BLENDED(layer->blending)) { + format = HAL_PIXEL_FORMAT_BGRX_8888; + } + omap4_hwc_setup_layer_base(oc, index, format, width, height); /* convert transformation - assuming 0-set config */ |