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 | 53bc156a5275a60e7b142d98ab660a679a422c0b (patch) | |
tree | 0891b542988398e93a14a018a0f66a54ede76ee1 /hwc/hwc.c | |
parent | 2f1304594486b38dd7df563cad9ceac50322f947 (diff) | |
download | hardware_ti_omap4-53bc156a5275a60e7b142d98ab660a679a422c0b.zip hardware_ti_omap4-53bc156a5275a60e7b142d98ab660a679a422c0b.tar.gz hardware_ti_omap4-53bc156a5275a60e7b142d98ab660a679a422c0b.tar.bz2 |
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/hwc.c')
-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 */ |