Selaa lähdekoodia

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 <andrii_chepurnyi@epam.com>
Andrii Chepurnyi 1 vuosi sitten
vanhempi
commit
5089ffe0de
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      bufferinfo/legacy/BufferInfoImagination.cpp

+ 1 - 1
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: