mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:51727b1cf5Signed-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> (cherry picked from commit0a2dcd3a8a)
This commit is contained in:
parent
c20881661f
commit
ace01b0459
1 changed files with 1 additions and 1 deletions
|
|
@ -629,7 +629,7 @@ droid_create_image_from_prime_fd_yuv(_EGLDisplay *disp, _EGLContext *ctx,
|
|||
* so they can be interpreted as offsets. */
|
||||
offsets[0] = (size_t)ycbcr.y;
|
||||
/* We assume here that all the planes are located in one DMA-buf. */
|
||||
is_ycrcb = (size_t)ycbcr.cb < (size_t)ycbcr.cr;
|
||||
is_ycrcb = (size_t)ycbcr.cr < (size_t)ycbcr.cb;
|
||||
if (is_ycrcb) {
|
||||
offsets[1] = (size_t)ycbcr.cr;
|
||||
offsets[2] = (size_t)ycbcr.cb;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue