[PATCH] drm/loongson: Add DRM Driver for Loongson 7A1000 bridge chip

Ilia Mirkin imirkin at alum.mit.edu
Wed Dec 30 15:55:40 UTC 2020


On Wed, Dec 30, 2020 at 6:08 AM Chenyang Li <lichenyang at loongson.cn> wrote:
> +       switch (format->format) {
> +       case DRM_FORMAT_RGB565:
> +               lcrtc->cfg_reg |= 0x3;
> +               break;
> +       case DRM_FORMAT_RGB888:
> +       default:
> +               lcrtc->cfg_reg |= 0x4;
> +               break;
> +       }

How does the scanout engine distinguish between RGB888 (24-bit) and
XRGB8888 (32-bit)? You've listed both as supported below.

Cheers,

  -ilia


More information about the dri-devel mailing list