summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hwc/hwc.c2
-rw-r--r--hwc/rgz_2d.c9
2 files changed, 1 insertions, 10 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index d94d8f2..e27ef00 100644
--- a/hwc/hwc.c
+++ b/hwc/hwc.c
@@ -1532,7 +1532,7 @@ static void blit_reset(omap4_hwc_device_t *hwc_dev)
static int blit_layers(omap4_hwc_device_t *hwc_dev, hwc_layer_list_t *list, int bufoff)
{
/* Do not blit if this frame will be composed entirely by the GPU */
- if (!list || hwc_dev->force_sgx)
+ if (!list || hwc_dev->force_sgx || hwc_dev->ext.mirror.enabled)
goto err_out;
int rgz_in_op;
diff --git a/hwc/rgz_2d.c b/hwc/rgz_2d.c
index bc13119..a9d2130 100644
--- a/hwc/rgz_2d.c
+++ b/hwc/rgz_2d.c
@@ -1224,15 +1224,6 @@ static int rgz_in_hwccheck(rgz_in_params_t *p, rgz_t *rgz)
*/
int l, memidx = 0;
for (l = 0; l < layerno; l++) {
- /*
- * Workaround: If a NV12 layer is present in the list, don't even try
- * to blit. There is a performance degradation while playing video and
- * using GC at the same time.
- */
- IMG_native_handle_t *handle = (IMG_native_handle_t *)layers[l].handle;
- if (!(layers[l].flags & HWC_SKIP_LAYER) && handle && is_NV12(handle->iFormat))
- return -1;
-
if (layers[l].compositionType == HWC_OVERLAY)
memidx++;
}