1
0
Fork 0

drm_hwcomposer: fix BufferInfoImagination build

Commit e9fbd8d626 ("drm_hwcomposer: Set return type to std::optional for
BufferInfoGetters") changed the BufferInfo variable name, but missed the case
defined under HAL_PIXEL_FORMAT_BGRX_8888. This results in build failures.

This patch fixes the build issue by completing the variable renaming.

Fixes: e9fbd8d626 ("drm_hwcomposer: Set return type to std::optional for BufferInfoGetters")

Signed-off-by: Andrii Chepurnyi <andrii_chepurnyi@epam.com>
This commit is contained in:
Andrii Chepurnyi 2022-08-25 20:22:39 +03:00
parent 9f4e3dbb3b
commit 5089ffe0de

View file

@ -51,7 +51,7 @@ auto BufferInfoImagination::GetBoInfo(buffer_handle_t handle)
switch (hnd->iFormat) {
#ifdef HAL_PIXEL_FORMAT_BGRX_8888
case HAL_PIXEL_FORMAT_BGRX_8888:
bo->format = DRM_FORMAT_XRGB8888;
bi.format = DRM_FORMAT_XRGB8888;
break;
#endif
default: