summaryrefslogtreecommitdiffstats
path: root/hwc
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-09-06 17:13:29 -0700
committerMathias Agopian <mathias@google.com>2011-09-06 17:13:29 -0700
commite0edfd5c677dd606d19ac7b838ce365db131fc8a (patch)
tree4407c821477fa108ced6f2dcdec3fd8f9b92ef87 /hwc
parentd2a9fdd97d1d78b49e304894fe6face2efa5e353 (diff)
downloadhardware_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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index c4da67d..4d60e9d 100644
--- a/hwc/hwc.c
+++ b/hwc/hwc.c
@@ -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 */