GloDroid / glodroid_manifest

Android port that aims to bring both user- and developer-friendly experience in using AOSP with a set of single-board computers (SBC), phones and other devices.
472 stars 66 forks source link

RPI4: Color channels swapped in some games when offloaded by KMS #81

Closed rsglobal closed 4 years ago

rsglobal commented 4 years ago

Steps to reproduce

  1. Install Pixel Wheels
  2. Run it.
  3. Roof should be dark-red https://f-droid.org/en/packages/com.agateau.tinywheels.android/
rsglobal commented 4 years ago

Pixelwheels uses HAL_PIXEL_FORMAT_RGB_565

rsglobal commented 4 years ago

Ah. HAL_PIXEL_FORMAT_RGB_565 can't be created/imported using MESA3D GBM interface. Should be fixed in mesa3d first, then in gbm_gralloc.

ADD: for some reason mesa3d can't handle BGR565 correctly, so it uses RGB565.

rsglobal commented 4 years ago

Fixed from drm_hwcomposer side: https://gitlab.freedesktop.org/drm-hwcomposer/drm-hwcomposer/-/merge_requests/128