set same pitch to all plane of NV format 10/219910/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 11 Dec 2019 10:36:01 +0000 (19:36 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 11 Dec 2019 10:47:47 +0000 (19:47 +0900)
Change-Id: Ie4a140b302170bbb5c55dca5d6bd4d45a9565903

src/tbm_bufmgr_sprd.c

index 6f8059e..2e2dd63 100644 (file)
@@ -956,7 +956,7 @@ tbm_sprd_bufmgr_get_plane_data(tbm_backend_bufmgr_data *bufmgr_data,
 //             else if (plane_idx == 1)
                {
                        _offset = _size;
-                       _pitch = SIZE_ALIGN(width , TBM_SURFACE_ALIGNMENT_PITCH_YUV / 2);
+                       _pitch = SIZE_ALIGN(width , TBM_SURFACE_ALIGNMENT_PITCH_YUV);
                        _align_height = SIZE_ALIGN(height / 2, TBM_SURFACE_ALIGNMENT_PITCH_YUV);
                        _size = SIZE_ALIGN(_pitch * _align_height, TBM_SURFACE_ALIGNMENT_PLANE);
                        _bo_idx = 0;
@@ -978,7 +978,7 @@ tbm_sprd_bufmgr_get_plane_data(tbm_backend_bufmgr_data *bufmgr_data,
                //else if( plane_idx ==1 )
                {
                        _offset += _size;
-                       _pitch = SIZE_ALIGN(width, TBM_SURFACE_ALIGNMENT_PITCH_YUV / 2);
+                       _pitch = SIZE_ALIGN(width, TBM_SURFACE_ALIGNMENT_PITCH_YUV);
                        _size = SIZE_ALIGN(_pitch * height, TBM_SURFACE_ALIGNMENT_PLANE);
                        _bo_idx = 0;
                }