mesa doesn't need to 3 bos of YUV420 format
Change-Id: I563313058d1847bf9796457e53e73e93a33f8ae7
}
/*else if(plane_idx == 1)*/
{
- _offset = 0;
+ _offset += _size;
_pitch = SIZE_ALIGN(width / 2, TBM_SURFACE_ALIGNMENT_PITCH_YUV / 2);
_size = SIZE_ALIGN(_pitch * (height / 2), TBM_SURFACE_ALIGNMENT_PLANE);
- _bo_idx = 1;
+ _bo_idx = 0;
if (plane_idx == 1)
break;
}
/*else if (plane_idx == 2)*/
{
- _offset = 0;
+ _offset += _size;
_pitch = SIZE_ALIGN(width / 2, TBM_SURFACE_ALIGNMENT_PITCH_YUV / 2);
_size = SIZE_ALIGN(_pitch * (height / 2), TBM_SURFACE_ALIGNMENT_PLANE);
- _bo_idx = 2;
+ _bo_idx = 0;
}
break;
case TBM_FORMAT_YUV422: