diff options
author | Changyeon Lee <cyeon.lee@samsung.com> | 2023-11-29 15:22:44 +0900 |
---|---|---|
committer | Changyeon Lee <cyeon.lee@samsung.com> | 2023-12-06 17:40:34 +0900 |
commit | cded634680e37f8a12753c7d5a33c6533e65f15b (patch) | |
tree | a93fcacccadcd16178ee52e7d8b8fd164072a488 | |
parent | a7f07b2691ac5a1333795e24f2aec7d62274d386 (diff) | |
download | libtbm-vc4-cded634680e37f8a12753c7d5a33c6533e65f15b.tar.gz libtbm-vc4-cded634680e37f8a12753c7d5a33c6533e65f15b.tar.bz2 libtbm-vc4-cded634680e37f8a12753c7d5a33c6533e65f15b.zip |
Remove align height at NV12 and NV21 format
Change-Id: I6587b0d1b6490de4d79b36024155b363f7482aad
-rw-r--r-- | src/tbm_backend_vc4.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tbm_backend_vc4.c b/src/tbm_backend_vc4.c index 1dffbeb..29142eb 100644 --- a/src/tbm_backend_vc4.c +++ b/src/tbm_backend_vc4.c @@ -644,8 +644,7 @@ tbm_vc4_bufmgr_get_plane_data(hal_tbm_bufmgr *bufmgr, { _offset = 0; _pitch = SIZE_ALIGN(MAX(width, MIN_WIDTH), TBM_SURFACE_ALIGNMENT_PITCH_YUV); - _align_height = SIZE_ALIGN(MAX(height, MIN_HEIGHT), TBM_SURFACE_ALIGNMENT_HEIGHT_YUV); - _size = SIZE_ALIGN(_pitch * _align_height, TBM_SURFACE_ALIGNMENT_PLANE); + _size = SIZE_ALIGN(_pitch * MAX(height, MIN_HEIGHT), TBM_SURFACE_ALIGNMENT_PLANE); _bo_idx = 0; if (plane_idx == 0) break; @@ -654,8 +653,7 @@ tbm_vc4_bufmgr_get_plane_data(hal_tbm_bufmgr *bufmgr, { _offset += _size; _pitch = SIZE_ALIGN(MAX(width, MIN_WIDTH), TBM_SURFACE_ALIGNMENT_PITCH_YUV); - _align_height = SIZE_ALIGN(MAX(height, MIN_HEIGHT) / 2, TBM_SURFACE_ALIGNMENT_HEIGHT_YUV); - _size = SIZE_ALIGN(_pitch * _align_height, TBM_SURFACE_ALIGNMENT_PLANE); + _size = SIZE_ALIGN(_pitch * MAX(height, MIN_HEIGHT) / 2, TBM_SURFACE_ALIGNMENT_PLANE); _bo_idx = 0; } break; |