diff options
-rw-r--r-- | src/tbm_bufmgr_exynos.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tbm_bufmgr_exynos.c b/src/tbm_bufmgr_exynos.c index d2bfea2..e5e94ae 100644 --- a/src/tbm_bufmgr_exynos.c +++ b/src/tbm_bufmgr_exynos.c @@ -1111,18 +1111,19 @@ tbm_exynos_bufmgr_get_plane_data(tbm_backend_bufmgr_data *bufmgr_data, */ case TBM_FORMAT_NV12: bpp = 12; - _bo_idx = 0; if (plane_idx == 0) { _offset = 0; _pitch = SIZE_ALIGN(width, TBM_SURFACE_ALIGNMENT_PITCH_YUV); _size = MAX(_calc_yplane_nv12(width, height), _new_calc_yplane_nv12(width, height)); + _bo_idx = 0; } else if (plane_idx == 1) { _offset = MAX(_calc_yplane_nv12(width, height), _new_calc_yplane_nv12(width, height)); _pitch = SIZE_ALIGN(width, TBM_SURFACE_ALIGNMENT_PITCH_YUV / 2); _size = MAX(_calc_uvplane_nv12(width, height), _new_calc_uvplane_nv12(width, height)); + _bo_idx = 1; } break; case TBM_FORMAT_NV21: |