From 5089ffe0de69bc23aeac3601ff5ff1c83ef59254 Mon Sep 17 00:00:00 2001 From: Andrii Chepurnyi Date: Thu, 25 Aug 2022 20:22:39 +0300 Subject: [PATCH] drm_hwcomposer: fix BufferInfoImagination build Commit e9fbd8d626a2 ("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: e9fbd8d626a2 ("drm_hwcomposer: Set return type to std::optional for BufferInfoGetters") Signed-off-by: Andrii Chepurnyi --- bufferinfo/legacy/BufferInfoImagination.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bufferinfo/legacy/BufferInfoImagination.cpp b/bufferinfo/legacy/BufferInfoImagination.cpp index 1858ddb..6d917c2 100644 --- a/bufferinfo/legacy/BufferInfoImagination.cpp +++ b/bufferinfo/legacy/BufferInfoImagination.cpp @@ -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: