android: fix droid_create_image_from_prime_fd_yuv for YV12
authorTapani Pälli <tapani.palli@intel.com>
Thu, 2 Feb 2017 12:05:46 +0000 (14:05 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Fri, 3 Feb 2017 05:44:33 +0000 (07:44 +0200)
commit0a2dcd3a8ac4bf18cd6ec2f778c9ef859ef90a51
tree57cb4b301c2e51ad546fc265504d42de42f9e013
parent38794259175852084532499a09dec85b6c6a4321
android: fix droid_create_image_from_prime_fd_yuv for YV12

Earlier changes introduced is_ycrcb flag which checks the component
order of u and v components. Condition for setting the flag was
incorrect, with ycrcb we are supposed to have cr before cb.

This patch (together with a fix in our gralloc) fixes corrupted
rendering from 'test-opengl-gl2_yuvtex' native test and corrupted
gallery thumbnail in application switcher on Android-IA.

Fixes: 51727b1cf57e8c4630767eb9ead207b102ffa489
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
src/egl/drivers/dri2/platform_android.c