hwc: rgz: Disable NV12 rotation support for the regionizer
There is a bug when rotating NV12 buffers with the GC driver,
disable this for now until it is fixed.
Rebased from p-ics-mr1:
7c46d80 hwc: rgz: Disable NV12 rotation support for the regionizer
Change-Id: Ia3add3266bd308fec34cb2b9140146d1da07f7ec
Signed-off-by: Gustavo Diaz Prado <a0273371@ti.com>
(cherry picked from commit 86e65069ed99621c0b9d6c46096bb0bf2fbe97ef)
diff --git a/hwc/rgz_2d.c b/hwc/rgz_2d.c
index 8aa0866..444db7f 100644
--- a/hwc/rgz_2d.c
+++ b/hwc/rgz_2d.c
@@ -573,7 +573,7 @@
return 0;
if (is_NV12(handle->iFormat))
- return (handle->iFormat == HAL_PIXEL_FORMAT_TI_NV12);
+ return (!layer->transform && handle->iFormat == HAL_PIXEL_FORMAT_TI_NV12);
/* FIXME: The following must be removed when GC supports vertical/horizontal
* buffer flips, please note having a FLIP_H and FLIP_V means 180 rotation