diff options
-rw-r--r-- | src/tbm_backend_vc4.c | 6 |
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: |