summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjinbong.lee <jinbong.lee@samsung.com>2024-04-26 03:10:52 +0000
committerjinbong.lee <jinbong.lee@samsung.com>2024-04-26 03:10:52 +0000
commit4aba204b07c8ff4acb681306157246f31f326465 (patch)
treedf5d5944d6be468229b6f47cdd95a5364899b2ba
parent922db70fb794e4c18001a82adbc2fd5159392d8b (diff)
downloadlibtbm-vc4-4aba204b07c8ff4acb681306157246f31f326465.tar.gz
libtbm-vc4-4aba204b07c8ff4acb681306157246f31f326465.tar.bz2
libtbm-vc4-4aba204b07c8ff4acb681306157246f31f326465.zip
Add to support for HAL_TBM_FORMAT_C8 in get_plane_data
Change-Id: I40a0c00b11ce739f2a65befae1ec2b4950ea2076
-rw-r--r--src/tbm_backend_vc4.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tbm_backend_vc4.c b/src/tbm_backend_vc4.c
index b610f84..678a0fe 100644
--- a/src/tbm_backend_vc4.c
+++ b/src/tbm_backend_vc4.c
@@ -560,6 +560,12 @@ tbm_vc4_bufmgr_get_plane_data(hal_tbm_bufmgr *bufmgr,
TBM_BACKEND_RETURN_VAL_IF_FAIL(bufmgr_data != NULL, HAL_TBM_ERROR_INVALID_PARAMETER);
switch (format) {
+ case HAL_TBM_FORMAT_C8:
+ _offset = 0;
+ _pitch = SIZE_ALIGN(width, TBM_SURFACE_ALIGNMENT_PITCH_YUV);
+ _size = SIZE_ALIGN(_pitch * height, TBM_SURFACE_ALIGNMENT_PITCH_YUV);
+ _bo_idx = 0;
+ break;
/* 16 bpp RGB */
case HAL_TBM_FORMAT_XRGB4444:
case HAL_TBM_FORMAT_XBGR4444: