summaryrefslogtreecommitdiffstats
path: root/hwc/hwc.c
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
commit53bc156a5275a60e7b142d98ab660a679a422c0b (patch)
tree0891b542988398e93a14a018a0f66a54ede76ee1 /hwc/hwc.c
parent2f1304594486b38dd7df563cad9ceac50322f947 (diff)
downloadhardware_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.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 */